-
Notifications
You must be signed in to change notification settings - Fork 4k
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(api): Resolve circular import issue for workflow update validation #7151
Conversation
✅ Deploy Preview for novu-stg-vite-dashboard-poc ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
NotificationStep, | ||
} from '../..'; | ||
} from './upsert-validation-constants'; | ||
import { ContentIssue, IStepControl, NotificationStep } from '../..'; |
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.
These import statements from index files ('../..'
) are usually the problematic ones for creating circular import dependencies. I think changing the line above to include an absolute path reference will be all that's required here.
That said, having the validation constants in a separate file is much cleaner.
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 pushed a fix for this so that we can merge it asap.
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.
💯
…env variable (#7105) Co-authored-by: Dima Grossman <dima@grossman.io>
NotificationStep, | ||
} from '../..'; | ||
} from './upsert-validation-constants'; | ||
import { ContentIssue, IStepControl, NotificationStep } from '../..'; |
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 pushed a fix for this so that we can merge it asap.
@novu/client
@novu/framework
@novu/headless
@novu/js
@novu/nest
@novu/nextjs
@novu/node
@novu/notification-center
novu
@novu/providers
@novu/react
@novu/react-native
@novu/shared
@novu/stateless
commit: |
What changed? Why was the change needed?
update call was not validating as expected
Screenshots
Expand for optional sections
Related enterprise PR
Special notes for your reviewer