Skip to content
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

17930 - AGM Extensions Emailer #2327

Merged
merged 6 commits into from
Nov 27, 2023

Conversation

JazzarKarim
Copy link
Collaborator

@JazzarKarim JazzarKarim commented Nov 23, 2023

Issue #: /bcgov/entity#17930

Description of changes:

  • Implemented the emailer for AGM Extensions
  • Fixed lint issues from previous work
  • Added unit tests

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the lear license (Apache 2.0).

@JazzarKarim JazzarKarim self-assigned this Nov 23, 2023
@JazzarKarim JazzarKarim marked this pull request as draft November 23, 2023 21:52
@@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="referrer" content="origin-when-cross-origin"/>
<meta name="author" content="BC Registries and Online Services">
<title>Confirmation of continuation out</title>
<title>Confirmation of AGM Location Change</title>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Found this small typo.

Copy link

codecov bot commented Nov 24, 2023

Codecov Report

Merging #2327 (9eaa7a1) into main (79511cd) will decrease coverage by 6.71%.
Report is 36 commits behind head on main.
The diff coverage is 58.78%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2327      +/-   ##
==========================================
- Coverage   77.37%   70.66%   -6.71%     
==========================================
  Files         202       26     -176     
  Lines       11602     1524   -10078     
  Branches     1961      227    -1734     
==========================================
- Hits         8977     1077    -7900     
+ Misses       2043      373    -1670     
+ Partials      582       74     -508     
Flag Coverage Δ
entityemailer 70.66% <58.78%> (?)
entityfiler ?
legalapi ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...rvices/entity-emailer/src/entity_emailer/config.py 100.00% <100.00%> (ø)
...iler/src/entity_emailer/message_tracker/tracker.py 83.96% <100.00%> (ø)
...vices/entity-emailer/src/entity_emailer/version.py 100.00% <100.00%> (ø)
...rvices/entity-emailer/src/entity_emailer/worker.py 68.61% <0.00%> (ø)
...ler/email_processors/agm_extension_notification.py 65.38% <65.38%> (ø)
...ail_processors/agm_location_change_notification.py 65.38% <65.38%> (ø)
...entity_emailer/email_processors/nr_notification.py 69.23% <36.66%> (ø)

... and 221 files with indirect coverage changes

@JazzarKarim JazzarKarim marked this pull request as ready for review November 24, 2023 00:06
@JazzarKarim
Copy link
Collaborator Author

JazzarKarim commented Nov 24, 2023

Argus, can you please suppress the SC code smell? I don't think it's an issue right? This is since I see the table tag in all the templates.


society_list = ['SO', 'XSO']
return legal_type in society_list

Copy link
Collaborator Author

@JazzarKarim JazzarKarim Nov 24, 2023

Choose a reason for hiding this comment

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

Lint errors from previous PRs (not ours).

@argush3
Copy link
Collaborator

argush3 commented Nov 24, 2023

Looks good!

Just the two things I mentioned in the comments.

Copy link
Collaborator

@chenhongjing chenhongjing left a comment

Choose a reason for hiding this comment

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

LGTM 🐱

@JazzarKarim JazzarKarim force-pushed the 17930-agm-extensions-emailer branch from 8ea69f6 to 9bdf113 Compare November 27, 2023 20:22
@JazzarKarim JazzarKarim force-pushed the 17930-agm-extensions-emailer branch from 9bdf113 to 9eaa7a1 Compare November 27, 2023 20:57
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
21.5% 21.5% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@JazzarKarim JazzarKarim merged commit 16e5417 into bcgov:main Nov 27, 2023
6 of 8 checks passed
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