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

22446 Allow AR corrections (depending on FF) #687

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

severinbeauvais
Copy link
Collaborator

Issue #: bcgov/entity#22446

Description of changes:

  • app version = 7.3.18
  • allowed Annual Report corrections for specified legal types only (per FF)
  • added new FF with default value

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

- allowed Annual Report corrections for specified legal types only (per FF)
- added new FF with default value
Copy link

sonarcloud bot commented Jul 25, 2024

case EnumUtilities.isTypeAnnualReport(this.filing):
// enable AR corrections for specified legal types only
if (GetFeatureFlag('supported-ar-correction-entities').includes(this.getLegalType)) return false
return true
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If the feature flag include the current legal type (eg, "CP") then don't disable the "File a Correction" menu item.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Screenshot (from Dev):

image

@@ -18,6 +18,7 @@ const defaultFlagSet: LDFlagSet = {
'supported-agm-location-chg-entities': [],
'supported-amalgamation-entities': [],
'supported-amalgamation-out-entities': [],
'supported-ar-correction-entities': [],
Copy link
Collaborator Author

@severinbeauvais severinbeauvais Jul 25, 2024

Choose a reason for hiding this comment

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

Default value for the FF if LaunchDarkly cannot be reached: no entities are allowed to do AR corrections (which is safe -- we don't accidentally allow the feature).

Currently:

  • in Dev, the FF is "CP"
  • in Test, the FF is "CP"
  • in Prod, the FF is ""

@severinbeauvais
Copy link
Collaborator Author

/gcbrun

@bcregistry-sre
Copy link
Collaborator

bcregistry-sre commented Jul 25, 2024

Copy link
Collaborator

@ArwenQin ArwenQin 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!

@severinbeauvais severinbeauvais merged commit c0c023b into bcgov:main Jul 25, 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