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

21476 update good standing logic to include transition filing criteria #2756

Conversation

eason-pan-bc
Copy link
Collaborator

Issue #: /bcgov/entity#21476

Description of changes:
Implemented the logic to include transition filing logic used in involuntary dissolution eligibility check in business.good_standing.
(enable_involuntary_dissolution feature flag)

The main logic is same as the _has_no_transition_filed_after_restoration() method in involuntary dissolution.
Differences are:

  • instead of checking with a given Business, this implementation checks with itself.
  • instead of returning a SQLAlchemy clause, this implementation returns a boolean value, implemented using .scalar() after the query.

Also added unit tests to check 4 situations:

  • New established business
  • In limited restoration, not expired, no need for transition
  • Transition filed and completed
  • Transition not filed

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

Copy link

Quality Gate Passed Quality Gate passed

Issues
4 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

codecov bot commented Jun 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.77%. Comparing base (81aac8e) to head (b1bbc39).
Report is 160 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2756      +/-   ##
==========================================
+ Coverage   75.49%   76.77%   +1.28%     
==========================================
  Files         196      177      -19     
  Lines       12264    11257    -1007     
  Branches     2054     1931     -123     
==========================================
- Hits         9259     8643     -616     
+ Misses       2442     2103     -339     
+ Partials      563      511      -52     
Flag Coverage Δ
entityemailer ?
legalapi 76.77% <100.00%> (+0.36%) ⬆️

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

Files Coverage Δ
legal-api/src/legal_api/models/business.py 93.36% <100.00%> (-1.44%) ⬇️

... and 208 files with indirect coverage changes

Copy link
Collaborator

@AimeeGao AimeeGao left a comment

Choose a reason for hiding this comment

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

Except for the issues mentioned by hongjing, everything else is fine for me.

@eason-pan-bc
Copy link
Collaborator Author

Except for the issues mentioned by hongjing, everything else is fine for me.

they are all addressed now 😄

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 🐱

Copy link
Collaborator

@AimeeGao AimeeGao left a comment

Choose a reason for hiding this comment

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

All changes look good to me.

@eason-pan-bc eason-pan-bc merged commit 1dacd68 into bcgov:main Jun 19, 2024
7 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.

4 participants