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

18490 Add displayLedger flag #2351

Merged
merged 6 commits into from
Jan 4, 2024
Merged

18490 Add displayLedger flag #2351

merged 6 commits into from
Jan 4, 2024

Conversation

kzdev420
Copy link
Collaborator

@kzdev420 kzdev420 commented Dec 8, 2023

Issue #: /bcgov/entity#18490

Description of changes:
Screenshot 2023-12-08 at 9 08 14 AM

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

@kzdev420 kzdev420 self-assigned this Dec 8, 2023
@severinbeauvais
Copy link
Collaborator

severinbeauvais commented Dec 8, 2023

Do not merge until we decide whether to proceed with this or not (per Thor / Mihai). Yes, we need this.

@kzdev420 kzdev420 marked this pull request as draft December 8, 2023 22:30
@kzdev420 kzdev420 requested a review from argush3 January 3, 2024 16:03
@severinbeauvais
Copy link
Collaborator

Kevin, there are no changed files atm.

@kzdev420
Copy link
Collaborator Author

kzdev420 commented Jan 3, 2024

Kevin, there are no changed files atm.

Yeah, I think we don't need to changes the legal-API for this

Copy link

codecov bot commented Jan 3, 2024

Codecov Report

Attention: 223 lines in your changes are missing coverage. Please review.

Comparison is base (79511cd) 77.37% compared to head (e65de48) 76.66%.
Report is 63 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2351      +/-   ##
==========================================
- Coverage   77.37%   76.66%   -0.72%     
==========================================
  Files         202      168      -34     
  Lines       11602    10516    -1086     
  Branches     1961     1785     -176     
==========================================
- Hits         8977     8062     -915     
+ Misses       2043     1969      -74     
+ Partials      582      485      -97     
Flag Coverage Δ
entityfiler ?
legalapi 76.66% <58.70%> (-0.18%) ⬇️

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

Files Coverage Δ
legal-api/src/legal_api/config.py 95.16% <100.00%> (+0.28%) ⬆️
legal-api/src/legal_api/core/meta/filing.py 89.78% <ø> (-1.34%) ⬇️
legal-api/src/legal_api/models/__init__.py 100.00% <100.00%> (ø)
legal-api/src/legal_api/models/dc_definition.py 90.69% <100.00%> (ø)
...l-api/src/legal_api/models/dc_revocation_reason.py 100.00% <100.00%> (ø)
legal-api/src/legal_api/models/filing.py 92.41% <ø> (ø)
...s/v2/business/business_filings/business_filings.py 65.60% <100.00%> (+6.32%) ⬆️
...gal_api/services/filings/validations/alteration.py 83.01% <100.00%> (ø)
...gal_api/services/filings/validations/validation.py 77.95% <100.00%> (+1.09%) ⬆️
...al-api/src/legal_api/utils/legislation_datetime.py 84.12% <100.00%> (+0.79%) ⬆️
... and 13 more

... and 49 files with indirect coverage changes

Copy link
Collaborator

@severinbeauvais severinbeauvais left a comment

Choose a reason for hiding this comment

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

Do you have a test that the value is True for all filings except Admin Freeze?

@kzdev420
Copy link
Collaborator Author

kzdev420 commented Jan 3, 2024

Do you have a test that the value is True for all filings except Admin Freeze?

Yes, I checked

@severinbeauvais
Copy link
Collaborator

Do you have a test that the value is True for all filings except Admin Freeze?

Yes, I checked

Great. How about a unit test?

@kzdev420
Copy link
Collaborator Author

kzdev420 commented Jan 3, 2024

Do you have a test that the value is True for all filings except Admin Freeze?

Yes, I checked

Great. How about a unit test?

I updated the unit test too. The current 4 failed cases don't relate to my updates.

@severinbeauvais
Copy link
Collaborator

Do you have a test that the value is True for all filings except Admin Freeze?

Yes, I checked

Great. How about a unit test?

I updated the unit test too. The current 4 failed cases don't relate to my updates.

I don't see a unit test that verifies that displayLedger is True for all filings except Admin Freeze...?

Copy link

sonarcloud bot commented Jan 4, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

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

See analysis details on SonarCloud

Copy link
Collaborator

@severinbeauvais severinbeauvais left a comment

Choose a reason for hiding this comment

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

Thanks for the extra unit test.

This looks good to me.

@vysakh-menon-aot
Copy link
Collaborator

@kzdev420 can you change this pr to ready for review?

@kzdev420 kzdev420 marked this pull request as ready for review January 4, 2024 00:24
@kzdev420 kzdev420 merged commit 3e0b6f9 into bcgov:main Jan 4, 2024
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants