Closed StephenYu2018 closed 1 week ago
Hi @StephenYu2018 please assign the required reviewer(s) for this PR. Thanks!
Hi @StephenYu2018. Due to recent changes in the "develop" branch, this PR now has a merge conflict. Please follow this link if you need help resolving the conflict, so that the PR can be merged. Thanks!
@kevintab95 @chris7716 PTAL for codeowners, thanks!
@kevintab95 @chris7716 PTAL!
Unassigning @chris7716 since they have already approved the PR.
Overview
This PR fixes #19664 and fixes part of #15948.
This PR does the following:
GeneralSuggestionModel.get_in_review_translation_suggestion_target_ids
method that runs a projection query to fetch only the target_idsuggestion_services.get_reviewable_translation_suggestion_target_ids
method that calls the above datastore model methodReviewableOpportunitiesHandler._get_reviewable_exploration_opportunity_summaries
method flow to call the above service-layer function. This reduces server response wait times as we're fetching onlytarget_id
instead of the entire model from datastore.The purpose of these changes is to reduce server response wait times. These results can be found in this comment of mine.
Essential Checklist
Please follow the instructions for making a code change.
Proof that changes are correct
Before:
After:
Proof of changes on desktop with slow/throttled network
Proof of changes on mobile phone
Proof of changes in Arabic language
PR Pointers