Skip to content

[MDS-6527] Email/notification updates for final applications#3751

Merged
taraepp merged 7 commits intodevelopfrom
mds-6527-project-notifications
Dec 3, 2025
Merged

[MDS-6527] Email/notification updates for final applications#3751
taraepp merged 7 commits intodevelopfrom
mds-6527-project-notifications

Conversation

@taraepp
Copy link
Contributor

@taraepp taraepp commented Dec 2, 2025

Objective

  • summary of changes uploaded as word doc on ticket

MDS-6527

Why are you making this change? Provide a short explanation and/or screenshots


return errors_found

def send_status_notification(self, prev_status, mine):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just moved this from the resource file, basically, and then added the bit with noun and final elif if in there

info_block('Mine Number', project.mine_no) +
info_block('Project Title', project.project_title) +
info_block('Submitted', project.submitted), align='center', brand=brand) }}
info_block('Submitted', project.submitted), brand=brand) }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like the centre align. 🤷‍♀️

class Params:
minimal = factory.Trait(
mine_no=None,
mine_no='123456',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also never like how test emails go out like "Mine No: " because I'm not sure if it's working properly, so put in a default value here. And made the AmsFinalApplication factory use the correct authorization type below. 😅

assert put_resp.status_code == 200
assert put_resp_data['editable'] == False

put_data2 = {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was getting all test emails with the ams application being locked which was throwing me off, so added in this bit to make sure it worked right when it's unlocked.

Copy link
Collaborator

@matbusby-fw matbusby-fw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Just noticed one tiny grammar thing

@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 3, 2025

Please retry analysis of this Pull-Request directly on SonarQube Cloud

2 similar comments
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 3, 2025

Please retry analysis of this Pull-Request directly on SonarQube Cloud

@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 3, 2025

Please retry analysis of this Pull-Request directly on SonarQube Cloud

@taraepp taraepp requested a review from matbusby-fw December 3, 2025 19:04
@taraepp taraepp merged commit 95f53bb into develop Dec 3, 2025
14 of 17 checks passed
@taraepp taraepp deleted the mds-6527-project-notifications branch December 3, 2025 20:14
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