-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
feat(api-service): polish attrs process #7477
Conversation
✅ Deploy Preview for dev-web-novu ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for dashboard-v2-novu-staging ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -65,6 +85,10 @@ function processAttributes( | |||
attrs[attr] as string, | |||
attrs.fallback as string, | |||
); | |||
if (!MAILY_FIRST_CITIZEN_VARIABLE_KEY.includes(flag)) { | |||
// eslint-disable-next-line no-param-reassign | |||
attrs[flag] = false; |
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.
this is the main change, the other changes are reuse enum
@@ -65,6 +85,10 @@ function processAttributes( | |||
attrs[attr] as string, | |||
attrs.fallback as string, | |||
); | |||
if (!MAILY_FIRST_CITIZEN_VARIABLE_KEY.includes(flag)) { |
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.
we do not want to update the id
and idShowKey
, because mainly hold the actual value in them and not the flag. as with other attributes.
so for example isUrlVariable=true/false
is a flag, while id=payload.foo
is a value.
What changed? Why was the change needed?
Screenshots
Expand for optional sections
Related enterprise PR
Special notes for your reviewer