-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Wipeout 2.8: Add has_reference_to_user_id to remainig models #7893
Conversation
…-models � Conflicts: � core/storage/question/gae_models_test.py � core/storage/user/gae_models_test.py
…-models � Conflicts: � core/storage/storage_models_test.py
Hi, @vojtechjelinek. This pull request does not have a "CHANGELOG: ..." label as mentioned in the PR checkbox list. Please add this label. PRs without this label will not be merged. If you are unsure of which label to add, please ask the reviewers for guidance. Thanks! |
@vojtechjelinek the backend tests are failing. |
Codecov Report
@@ Coverage Diff @@
## develop #7893 +/- ##
===========================================
- Coverage 84.03% 84.02% -0.01%
===========================================
Files 1128 1128
Lines 67783 67745 -38
Branches 3805 3805
===========================================
- Hits 56961 56922 -39
- Misses 9543 9544 +1
Partials 1279 1279
|
Assigning @seanlip for the first-pass review of this pull request. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of comments, but no real concerns (though please see if you can figure out why some changes from previous PRs are still being shown here).
Thanks!
core/domain/activity_jobs_one_off.py
Outdated
@@ -47,3 +55,34 @@ def map(item): | |||
@staticmethod | |||
def reduce(key, values): | |||
pass | |||
|
|||
|
|||
class SnapshotMetadataModelsIndexesJob(jobs.BaseMapReduceOneOffJobManager): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Er, this is weird. Haven't I already reviewed this in #7874? I don't understand why it's showing up again here?
|
||
def _run_one_off_job(self): | ||
"""Runs the one-off MapReduce job.""" | ||
job_id = (email_jobs_one_off.EmailModelsIndexesOneOffJob.create_new()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: You don't need the outer parens.
def test_has_reference_to_user_id(self): | ||
self.assertFalse( | ||
topic_models.TopicSummaryModel.has_reference_to_user_id('any_id')) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Drop one of these newlines (there should only be two newlines above top-level class definitions).
@aks681 @ankita240796 @nithusha21 PTAL as codeowners. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM from code-owner's perspective, Thanks @vojtechjelinek!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm as codeowner
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM as a codeowner. Thanks!
Explanation
has_reference_to_user_id
to remaining modelsindexed=True
toSendEmailModel
andBulkEmailModel
EmailModelsIndexesOneOffJob
to reindexSendEmailModel
andBulkEmailModel
ReviewerRotationTrackingModel
Checklist
python -m scripts.pre_commit_linter
andpython -m scripts.run_frontend_tests
.