Skip to content

Conversation

@ahmad-hassan-dev
Copy link
Contributor

Description:
Add a description of your changes here.

Jira:
ENT-XXXX

Merge checklist:

  • ./manage.py makemigrations has been run
    • Note: This must be run if you modified any models.
      • It may or may not make a migration depending on exactly what you modified, but it should still be run.

Post merge:

  • Ensure that your changes went out to the stage instance
  • Deploy to prod instance

@ahmad-hassan-dev ahmad-hassan-dev force-pushed the ahmad-hassan-dev/ENT-10857 branch from b6570d7 to 3cdb5a9 Compare September 25, 2025 11:33
```
"""
# A request is only remindable if it is in the 'APPROVED' state.
base_queryset = self.get_queryset().filter(
Copy link
Member

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?

Comment on lines 404 to 411
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}'
)
Copy link
Member

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?

@ahmad-hassan-dev ahmad-hassan-dev force-pushed the ahmad-hassan-dev/ENT-10857 branch 2 times, most recently from f0450cb to 60eb906 Compare September 29, 2025 04:49
@ahmad-hassan-dev ahmad-hassan-dev force-pushed the ahmad-hassan-dev/ENT-10857 branch 4 times, most recently from 7bc17d6 to d64ee69 Compare October 20, 2025 09:00
Copy link
Member

@sameenfatima78 sameenfatima78 left a 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)
Copy link
Member

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

@ahmad-hassan-dev ahmad-hassan-dev force-pushed the ahmad-hassan-dev/ENT-10857 branch from d64ee69 to dea2c43 Compare October 21, 2025 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants