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

fix(announcements): directive update handling of nonexistent feature flags #27709

Merged

Conversation

manuelrojas
Copy link
Contributor

Proposed Changes

This pull request updates the feature flag directive to accommodate scenarios where the flag is not explicitly specified. In such cases, the directive now defaults to displaying the content.

Checklist

  • Tests
  • Translations
  • Security Implications Contemplated (add notes if applicable)

Additional Info

** any additional useful context or info **

Screenshots

Original Updated
** original screenshot ** ** updated screenshot **

@rjvelazco
Copy link
Contributor

shouldAlwaysShow sounds like it should be displayed even when the FF returns false. In this case, we want to show the feature if the feature flag is not set. @zJaaal

P.S.: This is what I understand from the issue.

@zJaaal
Copy link
Contributor

zJaaal commented Feb 26, 2024

shouldAlwaysShow sounds like it should be displayed even when the FF returns false. In this case, we want to show the feature if the feature flag is not set. @zJaaal

P.S.: This is what I understand from the issue.

Maybe we can find another name to it. My concern is that onNotFound sounds more like a callback than to a boolean, which can be confusing.

@manuelrojas manuelrojas added this pull request to the merge queue Feb 27, 2024
@manuelrojas manuelrojas removed this pull request from the merge queue due to a manual request Feb 27, 2024
@nollymar nollymar added this pull request to the merge queue Feb 27, 2024
Merged via the queue into master with commit 0cf70da Feb 27, 2024
40 checks passed
@nollymar nollymar deleted the 27708-directive-update-handling-of-nonexistent-feature-flags branch February 27, 2024 18:39
spbolton pushed a commit to spbolton/core that referenced this pull request Feb 28, 2024
…flags (dotCMS#27709)

* dotCMS#27708 Updating directive

* dotCMS#27708 Updating directive

* dotCMS#27708 PR feedback

* dotCMS#27708 PR feedback

* dotCMS#27708 PR feedback

* dotCMS#27708 PR feedback

* Adding feature flag
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.

Directive Update: Handling of Nonexistent Feature Flags
7 participants