Commit 9e5dbc9
PIL-2854 Add amendMultipleAccountingPeriods feature flag (#644)
## Summary
Adds feature flag `amendMultipleAccountingPeriods` for the Change
Accounting period feature (V2 endpoints for Display Subscription and
Amend Subscription).
## Changes
- **conf/application.conf**: Add `amendMultipleAccountingPeriods =
false` under `features`
- **app/config/FrontendAppConfig.scala**: Expose
`amendMultipleAccountingPeriods` for injection in controllers/connector
- **test/config/FrontendAppConfigSpec.scala**: Test that flag defaults
to false
## Acceptance criteria
- [x] Flag exists in config, defaults to false
- [x] Flag can be toggled per environment (same mechanism as other
feature flags)
- [x] Flag is injectable into controllers that handle accounting period
display and amendment flows (via existing FrontendAppConfig injection)
## Out of scope (follow-up)
- V2 endpoint switching logic; this ticket is feature-flag setup only.
Co-authored-by: Mannkaur2 <211959528+Mannkaur2@users.noreply.github.com>1 parent bae88d2 commit 9e5dbc9
File tree
3 files changed
+12
-4
lines changed- app/config
- conf
- test/config
3 files changed
+12
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| 176 | + | |
176 | 177 | | |
177 | 178 | | |
178 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
127 | 133 | | |
128 | 134 | | |
129 | 135 | | |
| |||
0 commit comments