-
Notifications
You must be signed in to change notification settings - Fork 17
feat: bulk remind for lcr #854
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
base: main
Are you sure you want to change the base?
Conversation
b6570d7 to
3cdb5a9
Compare
| ``` | ||
| """ | ||
| # A request is only remindable if it is in the 'APPROVED' state. | ||
| base_queryset = self.get_queryset().filter( |
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.
does get_queryset() return only the requests belonging to a specific budget?
| LearnerCreditRequestActions.create_action( | ||
| learner_credit_request=assignment.credit_request, | ||
| recent_action=get_action_choice(LearnerCreditAdditionalActionStates.REMINDED), | ||
| status=get_user_message_choice(LearnerCreditAdditionalActionStates.REMINDED), | ||
| ) | ||
| logger.info( | ||
| f'Created REMINDED action for LearnerCreditRequest {assignment.credit_request.uuid}' | ||
| ) |
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.
are we logging an action in case of failure with correct state?
f0450cb to
60eb906
Compare
7bc17d6 to
d64ee69
Compare
sameenfatima78
left a comment
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.
ok - once tests pass
| logger.info(f'Queueing reminders for {len(remindable_requests)} learner credit requests.') | ||
|
|
||
| for req in remindable_requests: | ||
| send_reminder_email_for_pending_learner_credit_request.delay(req.assignment.uuid) |
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.
this statement seems like it's not indented correctly, kindly check
d64ee69 to
dea2c43
Compare
Description:
Add a description of your changes here.
Jira:
ENT-XXXX
Merge checklist:
./manage.py makemigrationshas been runPost merge: