-
Notifications
You must be signed in to change notification settings - Fork 52
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
Conversation
- allowed Annual Report corrections for specified legal types only (per FF) - added new FF with default value
Quality Gate passedIssues Measures |
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -18,6 +18,7 @@ const defaultFlagSet: LDFlagSet = { | |||
'supported-agm-location-chg-entities': [], | |||
'supported-amalgamation-entities': [], | |||
'supported-amalgamation-out-entities': [], | |||
'supported-ar-correction-entities': [], |
There was a problem hiding this comment.
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 ""
/gcbrun |
Temporary Url for review: https://business-filings-dev--pr-687-2aewcl50.web.app SB says, try this: https://business-filings-dev--pr-687-2aewcl50.web.app/CP1002537 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Issue #: bcgov/entity#22446
Description of changes:
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).