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
HXCS-3659 copy feature-flags lib #9655
HXCS-3659 copy feature-flags lib #9655
Conversation
Adriano Costa seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
lib/core/feature-flags/src/lib/components/feature-overridability-indicator.component.ts
Outdated
Show resolved
Hide resolved
@wideLandscape the corresponding JIRA is empty |
lib/core/feature-flags/src/lib/services/storage-features.service.ts
Outdated
Show resolved
Hide resolved
lib/core/feature-flags/src/lib/components/flags/flags.component.html
Outdated
Show resolved
Hide resolved
Sorry, I forgot to click the save button 😅 you should see the description now |
lib/core/feature-flags/src/lib/services/debug-features.service.ts
Outdated
Show resolved
Hide resolved
lib/core/feature-flags/src/lib/services/dummy-features.service.ts
Outdated
Show resolved
Hide resolved
lib/core/feature-flags/src/lib/providers/debug-feature-flags.provider.ts
Outdated
Show resolved
Hide resolved
lib/core/feature-flags/src/lib/providers/debug-feature-flags.provider.ts
Outdated
Show resolved
Hide resolved
lib/core/feature-flags/src/lib/providers/dummy-feature-flags.provider.ts
Outdated
Show resolved
Hide resolved
Please don't forget to provide the documentation and tests for the feature |
|
||
@Directive({ | ||
/* eslint-disable-next-line @angular-eslint/directive-selector */ | ||
selector: '[forFeatures]', |
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.
Should I rename forFeatures and notForFeatures directives
adf-for-feature
and adf-not-for-features
?
@DenysVuika
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.
I'm not sure about this, what do you think @DenysVuika . Sometimes the ADF prefix for directives is more bothering then helping, I think this is a similar case.
From my side, I would leave it as they are, since this way they are quite easy to read and self-explanatory.
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.
can be adfForFeatures
, similar to how we have all cdkFeature
directives from material
f119f88
to
1ae8785
Compare
|
||
storageFeaturesService.mergeFlags(newFlags); | ||
|
||
expect(storageFeaturesService.getFlagsSnapshot()).toEqual({ |
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.
to be honest I didn't fully grasp how the method works, I did make it fail to have the expected result and edit the test accordingly.
I have added the unit tests, will update readme with further info asap. |
1ae8785
to
0ca17b6
Compare
lib/core/feature-flags/src/lib/components/feature-flags-wrapper.ts
Outdated
Show resolved
Hide resolved
lib/core/feature-flags/src/lib/components/feature-override-indicator.component.ts
Outdated
Show resolved
Hide resolved
03d8e94
to
8418766
Compare
Quality Gate passedIssues Measures |
* HXCS-3659 copy feature-flags lib * HXCS-3659 remove hxps reference * HXCS-3659 update component selectors * HXCS-3659 replace word overridability with override * HXCS-3659 remove commented/dead code * HXCS-3659 rename files * HXCS-3659 fix imports after renaming files * HXCS-3659 update names to not refer ng 14 * HXCS-3659 update license header * HXCS-3659 remove unused param * HXCS-3659 test StorageFesturesService * HXCS-3659 test DummyFesturesService * HXCS-3659 test DebugFeaturesService in debug mode * HXCS-3659 test DebugFeaturesService in debug mode * HXCS-3659 test DebugFeaturesService not in debug mode * HXCS-3659 test FlagSetParser * HXCS-3659 test feature flags directives * HXCS-3659 test flags component * HXCS-3659 update readme * HXCS-3659 link docs into readme * HXCS-3659 update adf-feature-flags-wrapper css rules * HXCS-3659 update Directive selectors * HXCS-3659 add i18n * HXCS-3659 update FlagsComponent css * HXCS-3659 update directives @input property names * HXCS-3659 provides guards in the root * HXCS-3659 remove deprecated method getFlagsSnapshot --------- Co-authored-by: Adriano Costa <Adriano.Costa@hyland.comgit>
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x")
What is the current behaviour? (You can also link to an open issue here)
https://hyland.atlassian.net/browse/HXCS-3659
What is the new behaviour?
https://hyland.atlassian.net/browse/HXCS-3659
Does this PR introduce a breaking change? (check one with "x")
If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
Other information: