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

HXCS-3659 copy feature-flags lib #9655

Merged
merged 35 commits into from May 22, 2024

Conversation

wideLandscape
Copy link
Contributor

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (check one with "x")

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation
  • Other... Please describe:

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

  • Yes
  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information:

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


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.

@DenysVuika
Copy link
Contributor

@wideLandscape the corresponding JIRA is empty

cspell.json Outdated Show resolved Hide resolved
cspell.json Outdated Show resolved Hide resolved
cspell.json Show resolved Hide resolved
@wideLandscape
Copy link
Contributor Author

@wideLandscape the corresponding JIRA is empty

Sorry, I forgot to click the save button 😅 you should see the description now

@DenysVuika
Copy link
Contributor

Please don't forget to provide the documentation and tests for the feature


@Directive({
/* eslint-disable-next-line @angular-eslint/directive-selector */
selector: '[forFeatures]',
Copy link
Contributor Author

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

Copy link
Contributor

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.

Copy link
Contributor

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

@wideLandscape wideLandscape force-pushed the feature/HXCS-3659-adf-core-feature-flags branch 2 times, most recently from f119f88 to 1ae8785 Compare May 10, 2024 10:26
@wideLandscape wideLandscape marked this pull request as ready for review May 10, 2024 10:27

storageFeaturesService.mergeFlags(newFlags);

expect(storageFeaturesService.getFlagsSnapshot()).toEqual({
Copy link
Contributor Author

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.

@wideLandscape
Copy link
Contributor Author

I have added the unit tests, will update readme with further info asap.
I did my best to cover the most relevant code of the lib, sometimes I had to make tests fail to have the expected result as I didn't fully understand some methods.
I'd like to merge it by eod if possible, as the goal of the PR was to copy the lib from a repo to another, and the code is already running in prod (from the hxp-frontend-apps repo).
thanks
@popovicsandras @DenysVuika

@wideLandscape wideLandscape force-pushed the feature/HXCS-3659-adf-core-feature-flags branch from 1ae8785 to 0ca17b6 Compare May 10, 2024 11:27
@wideLandscape wideLandscape force-pushed the feature/HXCS-3659-adf-core-feature-flags branch from 03d8e94 to 8418766 Compare May 22, 2024 08:09
Copy link

sonarcloud bot commented May 22, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
1.3% Duplication on New Code

See analysis details on SonarCloud

@wideLandscape wideLandscape merged commit 2d347ac into develop May 22, 2024
32 of 33 checks passed
@wideLandscape wideLandscape deleted the feature/HXCS-3659-adf-core-feature-flags branch May 22, 2024 09:28
DaryaBalvanovich pushed a commit that referenced this pull request May 23, 2024
* 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>
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.

None yet

5 participants