Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Refactor prod validators to be split into individual validators #10415
Comments
|
@vojtechjelinek PTAL to confirm if this looks fine, Thanks! |
* Refactor activity validators * Fix import * Fix import * Address review comments * Fix braces
|
Assigning @savithakj to the |
* refractored oppportunity validators * fixed linter error * refractored oppportunity validators * fixed linter error * removed collection_models * reverting local linter error based changes * reverted local linter error changes
|
I would like to try to work on the classifier model; thanks. @ankita240796, @DubeySandeep |
|
@rlhouser I have assigned you |
|
I would like to try to work on the recommendations model. Thanks @ankita240796 @DubeySandeep |
|
@sunny1401 I have assigned you. |
|
Can I try to work on audit? |
|
@sf11047 absolutely! Assigned the task to you. Let us know if you have any questions! |
|
@vcamari2-bit sorry! Audit just got assigned -- do you want to take a stab at one of the other modules? |
|
Sure. How about config or email? |
|
@vcamari2-bit - Go for config! |
|
Hi! I would like to work on the job module! As a part of GHC OSD |
|
@shujingl-2020 awesome! Assigning you to the job module. DM me with questions! |
|
Hi! Could I work on the email module? |
|
@pseyla absolutely! |
|
Hey, can I work on the exploration module as part of GHC OSD? |
|
Hey, Can I get feedback module? I am a part of GHC OSD. |
|
Hi, can I work on Suggestion as a part of GHC OSD? |
|
@Salset @kiranmayee-dobbali @ajin46 yes yes and yes! Let us know if you have any questions |
Overview
This PR fixes or fixes part of oppia#10415.
This PR does the following: Refactors config classifier validator to a separate file.
Overview
This PR fixes or fixes part of oppia#10415.
This PR does the following: Refactors config classifier validator to a separate file.
|
Hi @vojtechjelinek, could I pick up "Question" validators? :) |
|
@JoelWee I have assigned you |
|
Hi @vojtechjelinek |
* Extract validators for audit models to new module * Fix lint errors: unused imports and EOL whitespace * Put floating parameter inside function call Co-authored-by: Sandeep Dubey <dubeysandeep.in@gmail.com> * Remove unused constant * Format to span fewer lines Co-authored-by: Sandeep Dubey <dubeysandeep.in@gmail.com> * Update accidentally reverted code * Undo accidental reverts & remove unused constant * Undo accidental reversion missed on first pass * Fix typo and add json.dumps missed on first pass * Fix lint errors * Fix merge error: add changes from #10981 * Unpack tuple correctly Co-authored-by: Vojtěch Jelínek <vojtin.j@gmail.com> * Match tuple unpacking notation in similar modules Co-authored-by: Vojtěch Jelínek <vojtin.j@gmail.com> Co-authored-by: Sandeep Dubey <dubeysandeep.in@gmail.com> Co-authored-by: Vojtěch Jelínek <vojtin.j@gmail.com>
|
Hi @vojtechjelinek. Could I work on the suggestion model? |
|
@MahmoudAmmar-96 Yes, I have assigned you. |
|
Hi, @vojtechjelinek! I was hoping to be assigned the job models. |
|
@nskirkey I have assigned you. |
|
@nskirkey Btw, you will need to follow these instructions in order to contribute to Oppia https://github.com/oppia/oppia/wiki/Contributing-code-to-Oppia please go throught them. |
* validators: Refactor topic and subtopic validators into individual validators * validators: Refactor topic and resolve backend test coverage * validators: Remove recommendations validator from topic validators file * validators: Remove unused variable * validators: Fix docstring naming and update copyright date * validators: Define model vars in alphabetical order * validators: Include topic test changes from #10981 * Fix topic validators * Fix backend tests * Fix tests Co-authored-by: Matt Higgins <matt@matthiggins.dev> Co-authored-by: Vojtěch Jelínek <vojtin.j@gmail.com>
Fixes part of oppia#10415: Topic validator refractor (oppia#10967)
|
Assigning @mozammel to the |
* Refactor classifier validators * Refactor classifier validators * Refactor classifier validators * refactor classifier validators * refactor classifier validators * Refactor classifier validators Co-authored-by: Rebekah Houser <rlhouser@Rebekahs-MacBook-Pro.local>
Refactor prod_validators.py such that there is one validator module per model module in
core/storage/.List of model categories
TODO
In progress
Done
Steps to refactor
activityinto a new file named as<model-type>_validators.pyfor exampleactivity_validators.pyfromprod_validators.py. Make sure you name the validators file exactly as<folder-name-in-above-list>_validators.pyprod_validators_test.pyto<model-type>_validators_test.py.Example PR: #10416 #10360