Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor prod validators to be split into individual validators #10415

Open
ankita240796 opened this issue Aug 22, 2020 · 30 comments
Open

Refactor prod validators to be split into individual validators #10415

ankita240796 opened this issue Aug 22, 2020 · 30 comments

Comments

@ankita240796
Copy link
Member

@ankita240796 ankita240796 commented Aug 22, 2020

Refactor prod_validators.py such that there is one validator module per model module in core/storage/.

List of model categories

Steps to refactor

  • Extract all the validators related to a given model type for example activity into a new file named as <model-type>_validators.py for example activity_validators.py from prod_validators.py. Make sure you name the validators file exactly as <folder-name-in-above-list>_validators.py
  • Extract all the test related to the model type from prod_validators_test.py to <model-type>_validators_test.py.
  • Clean up the unused imports from the new validators file and existing prod validators file.
  • Clean up the unused variables from the new validators file and existing prod validators file.
  • Fix the file overview to have the correct explanation and copyright year.

Example PR: #10416 #10360

@ankita240796
Copy link
Member Author

@ankita240796 ankita240796 commented Aug 22, 2020

@vojtechjelinek PTAL to confirm if this looks fine, Thanks!

ankita240796 added a commit that referenced this issue Aug 24, 2020
* Refactor activity validators

* Fix import

* Fix import

* Address review comments

* Fix braces
@DubeySandeep
Copy link
Member

@DubeySandeep DubeySandeep commented Sep 19, 2020

Assigning @savithakj to the opportunity module. (As per offline discussion.)

@vojtechjelinek vojtechjelinek added this to To do in Data handling Sep 23, 2020
seanlip pushed a commit that referenced this issue Sep 26, 2020
* 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
@rlhouser
Copy link

@rlhouser rlhouser commented Sep 30, 2020

I would like to try to work on the classifier model; thanks. @ankita240796, @DubeySandeep

@vojtechjelinek
Copy link
Member

@vojtechjelinek vojtechjelinek commented Sep 30, 2020

@rlhouser I have assigned you

@sunny1401
Copy link

@sunny1401 sunny1401 commented Sep 30, 2020

I would like to try to work on the recommendations model. Thanks @ankita240796 @DubeySandeep

@vojtechjelinek
Copy link
Member

@vojtechjelinek vojtechjelinek commented Oct 1, 2020

@sunny1401 I have assigned you.

@vcamari2-bit
Copy link

@vcamari2-bit vcamari2-bit commented Oct 1, 2020

Can I try to work on audit?

@EricZLou
Copy link
Collaborator

@EricZLou EricZLou commented Oct 1, 2020

@sf11047 absolutely! Assigned the task to you. Let us know if you have any questions!

@EricZLou
Copy link
Collaborator

@EricZLou EricZLou commented Oct 1, 2020

@vcamari2-bit sorry! Audit just got assigned -- do you want to take a stab at one of the other modules?

@vcamari2-bit
Copy link

@vcamari2-bit vcamari2-bit commented Oct 1, 2020

Sure. How about config or email?

@dchen97
Copy link
Collaborator

@dchen97 dchen97 commented Oct 1, 2020

@vcamari2-bit - Go for config!

@shujingl-2020
Copy link

@shujingl-2020 shujingl-2020 commented Oct 1, 2020

Hi! I would like to work on the job module! As a part of GHC OSD

@EricZLou
Copy link
Collaborator

@EricZLou EricZLou commented Oct 1, 2020

@shujingl-2020 awesome! Assigning you to the job module. DM me with questions!

@pseyla
Copy link

@pseyla pseyla commented Oct 1, 2020

Hi! Could I work on the email module?

@EricZLou
Copy link
Collaborator

@EricZLou EricZLou commented Oct 1, 2020

@pseyla absolutely!

@Salset
Copy link

@Salset Salset commented Oct 1, 2020

Hey, can I work on the exploration module as part of GHC OSD?

@kiranmayee-dobbali
Copy link

@kiranmayee-dobbali kiranmayee-dobbali commented Oct 1, 2020

Hey, Can I get feedback module? I am a part of GHC OSD.

@ajin46
Copy link

@ajin46 ajin46 commented Oct 1, 2020

Hi, can I work on Suggestion as a part of GHC OSD?

@EricZLou
Copy link
Collaborator

@EricZLou EricZLou commented Oct 1, 2020

@Salset @kiranmayee-dobbali @ajin46 yes yes and yes! Let us know if you have any questions

vcamari2-bit added a commit to vcamari2-bit/oppia that referenced this issue Oct 1, 2020
Overview

    This PR fixes or fixes part of oppia#10415.
    This PR does the following: Refactors config classifier validator to a separate file.
vcamari2-bit added a commit to vcamari2-bit/oppia that referenced this issue Oct 1, 2020
Overview

    This PR fixes or fixes part of oppia#10415.
    This PR does the following: Refactors config classifier validator to a separate file.
@purvimisal
Copy link

@purvimisal purvimisal commented Oct 6, 2020

Hi, I'd like to work on the story model.

@sajalasati
Copy link
Member

@sajalasati sajalasati commented Oct 6, 2020

@purvimisal I've assigned you to it! Let us know if you have any questions.

@sajalasati
Copy link
Member

@sajalasati sajalasati commented Oct 6, 2020

@ankita240796 I've assigned the skill model to myself.

purvimisal added a commit to purvimisal/oppia that referenced this issue Oct 9, 2020
purvimisal added a commit to purvimisal/oppia that referenced this issue Oct 9, 2020
purvimisal added a commit to purvimisal/oppia that referenced this issue Oct 9, 2020
purvimisal added a commit to purvimisal/oppia that referenced this issue Oct 9, 2020
purvimisal added a commit to purvimisal/oppia that referenced this issue Oct 9, 2020
purvimisal added a commit to purvimisal/oppia that referenced this issue Oct 9, 2020
purvimisal added a commit to purvimisal/oppia that referenced this issue Oct 9, 2020
purvimisal added a commit to purvimisal/oppia that referenced this issue Oct 9, 2020
@KhushiGangopadhyay
Copy link

@KhushiGangopadhyay KhushiGangopadhyay commented Oct 10, 2020

hello, i would like to work on collection module, can anyone assign me that

@sajalasati
Copy link
Member

@sajalasati sajalasati commented Oct 10, 2020

@KhushiGangopadhyay I've assigned you! Let us know if you have any questions.

@arora-ria
Copy link

@arora-ria arora-ria commented Oct 11, 2020

Hey, I would like to work on stats_model (statistics). Thank you!

@sajalasati
Copy link
Member

@sajalasati sajalasati commented Oct 12, 2020

@arora-ria I've assigned you! Let us know if you have any questions.

@MeetVys
Copy link

@MeetVys MeetVys commented Oct 12, 2020

I would like to work on the improvements, if possible. @vojtechjelinek

@vojtechjelinek vojtechjelinek moved this from TODO (critical) to TODO (improvement/feature) in Data handling Oct 13, 2020
@vojtechjelinek vojtechjelinek moved this from TODO (improvement/feature) to TODO (keep for new contributors) in Data handling Oct 13, 2020
purvimisal added a commit to purvimisal/oppia that referenced this issue Oct 13, 2020
purvimisal added a commit to purvimisal/oppia that referenced this issue Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Data handling
  
TODO (for new contributors)
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
You can’t perform that action at this time.