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

Nv 2906 remove the is topic notification enabled feature flag #5493

Conversation

denis-kralj-novu
Copy link
Contributor

@denis-kralj-novu denis-kralj-novu commented May 3, 2024

What changed? Why was the change needed?

A feature flag that is always set to true has been removed, along with all associated 'false' code paths. Additionally, dead code was also removed and used helpers moved to more appropriate places

Special notes for your reviewer

I've placed 2 options in this MR and we should agree on what option we want to use. I'm leaning more towards Option 1 as it complains right away, not only when tests are run. Option 2 also seems a bit ugly, but that is more personal preference.

Copy link

linear bot commented May 3, 2024

Copy link

netlify bot commented May 3, 2024

Deploy Preview for novu-design ready!

Name Link
🔨 Latest commit f294347
🔍 Latest deploy log https://app.netlify.com/sites/novu-design/deploys/6639e005567cee0008a5ec6e
😎 Deploy Preview https://deploy-preview-5493--novu-design.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented May 3, 2024

Deploy Preview for dev-web-novu ready!

Name Link
🔨 Latest commit f294347
🔍 Latest deploy log https://app.netlify.com/sites/dev-web-novu/deploys/6639e0054ac3d100087106fd
😎 Deploy Preview https://deploy-preview-5493--dev-web-novu.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@denis-kralj-novu denis-kralj-novu force-pushed the nv-2906-remove-the-is_topic_notification_enabled-feature-flag branch from 97236a7 to 7bddb39 Compare May 3, 2024 19:09
Remove unused injections
Move single use helper to class using it
Remove unused imports
Tidy up imports
Remove map-trigger-recipients use case
Remove associated e2e tests
Remove setting of feature flag in e2e tests
Remove feature flag from env validator
Remove feature flag from env configurations
Remove feature flag from list of feature flags
Remove feature flag read and false handling from trigger-multicast use case
Add (ugly) solution to verify matching of enum name and value
@denis-kralj-novu denis-kralj-novu force-pushed the nv-2906-remove-the-is_topic_notification_enabled-feature-flag branch from 7bddb39 to d03423e Compare May 6, 2024 07:10
ignore example env config for spell check
Add alternative checking of flag name match check
Remove non typescript check option
Name variable underscore to imply non-use
Refactor tests for flag test specs
@denis-kralj-novu denis-kralj-novu force-pushed the nv-2906-remove-the-is_topic_notification_enabled-feature-flag branch from 8cd7b84 to b0c9be8 Compare May 6, 2024 09:14
@denis-kralj-novu denis-kralj-novu marked this pull request as ready for review May 6, 2024 11:21
Copy link
Contributor

@ainouzgali ainouzgali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@denis-kralj-novu looks great💃🏼
Just note my comment about removing the launch darkly env variable in the test files

Remove Remove flag setting as per MR suggestion
Remove additional occurrences of feature flag that isn't required
Copy link
Contributor

@ainouzgali ainouzgali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💃🏼

@denis-kralj-novu denis-kralj-novu merged commit 531ba2d into next May 7, 2024
26 checks passed
@denis-kralj-novu denis-kralj-novu deleted the nv-2906-remove-the-is_topic_notification_enabled-feature-flag branch May 7, 2024 11:36
antonjoel82 pushed a commit that referenced this pull request May 9, 2024
Remove unused injections
Move single use helper to class using it
Remove unused imports
Tidy up imports
Remove map-trigger-recipients use case
Remove associated e2e tests
Remove setting of feature flag in e2e tests
Remove feature flag from env validator
Remove feature flag from env configurations
Remove feature flag from list of feature flags
Remove feature flag read and false handling from trigger-multicast use case
Add (ugly) solution to verify matching of enum name and value
Ignore example env config for spell check
Ensure feature flag enum keys match values
Name variable underscore to imply non-use
Refactor tests for flag test specs
Remove additional occurrences of feature flag that isn't required
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants