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

21475 Filer - Update Change of Address filing processor to delay dissolution #2750

Merged
merged 10 commits into from
Jun 20, 2024

Conversation

chenhongjing
Copy link
Collaborator

@chenhongjing chenhongjing commented Jun 10, 2024

Issue #: /bcgov/entity#21475

Description of changes:

  • Added feature flag to filer
  • Updated COA filing processor to delay business in dissolution
  • Added unit tests
  • Fixed linting

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).

@chenhongjing chenhongjing self-assigned this Jun 10, 2024
@chenhongjing
Copy link
Collaborator Author

chenhongjing commented Jun 11, 2024

Local testing results

  • test_change_of_address.py

image

  • other tests

There are only two failed tests. Not sure if it because of different version of testcontainers or just the code implementation Looks like it's caused by the different version of testcontainers

image

@chenhongjing chenhongjing marked this pull request as ready for review June 11, 2024 16:06
Copy link
Collaborator

@leodube-aot leodube-aot 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 to me!

if flag_on:
if business.in_dissolution:
batch_processinges = BatchProcessing.find_by(business_id=business.id)
for batch_processing in batch_processinges:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Plural would be batch_processings

Copy link

sonarcloud bot commented Jun 12, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
6.8% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

Copy link

codecov bot commented Jun 20, 2024

Codecov Report

Attention: Patch coverage is 91.30435% with 2 lines in your changes missing coverage. Please review.

Project coverage is 81.54%. Comparing base (81aac8e) to head (2baf877).
Report is 167 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2750      +/-   ##
==========================================
+ Coverage   75.49%   81.54%   +6.04%     
==========================================
  Files         196       42     -154     
  Lines       12264     1913   -10351     
  Branches     2054      351    -1703     
==========================================
- Hits         9259     1560    -7699     
+ Misses       2442      197    -2245     
+ Partials      563      156     -407     
Flag Coverage Δ
entityemailer ?
entityfiler 81.54% <91.30%> (?)
legalapi ?

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

Files Coverage Δ
...e_services/entity-filer/src/entity_filer/config.py 100.00% <100.00%> (ø)
...ntity_filer/filing_processors/change_of_address.py 100.00% <100.00%> (ø)
...e_services/entity-filer/src/entity_filer/worker.py 82.01% <71.42%> (ø)

... and 235 files with indirect coverage changes

@chenhongjing chenhongjing merged commit 3aca194 into bcgov:main Jun 20, 2024
6 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