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(api): Resolve circular import issue for workflow update validation #7151

Merged
merged 9 commits into from
Nov 28, 2024

Conversation

tatarco
Copy link
Contributor

@tatarco tatarco commented Nov 27, 2024

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

Copy link

netlify bot commented Nov 27, 2024

Deploy Preview for novu-stg-vite-dashboard-poc ready!

Name Link
🔨 Latest commit 6a68ce1
🔍 Latest deploy log https://app.netlify.com/sites/novu-stg-vite-dashboard-poc/deploys/674841dd12b7260008f18d2b
😎 Deploy Preview https://deploy-preview-7151.dashboard-v2.novu-staging.co
📱 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.

NotificationStep,
} from '../..';
} from './upsert-validation-constants';
import { ContentIssue, IStepControl, NotificationStep } from '../..';
Copy link
Collaborator

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.

Copy link
Contributor

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.

Copy link
Collaborator

@rifont rifont left a comment

Choose a reason for hiding this comment

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

💯

@rifont rifont changed the title Validation not working in update fix(api): Resolve circular import issue for workflow update validation Nov 28, 2024
NotificationStep,
} from '../..';
} from './upsert-validation-constants';
import { ContentIssue, IStepControl, NotificationStep } from '../..';
Copy link
Contributor

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.

Copy link

pkg-pr-new bot commented Nov 28, 2024

Open in Stackblitz

@novu/client

npm i https://pkg.pr.new/novuhq/novu/@novu/client@7151

@novu/framework

npm i https://pkg.pr.new/novuhq/novu/@novu/framework@7151

@novu/headless

npm i https://pkg.pr.new/novuhq/novu/@novu/headless@7151

@novu/js

npm i https://pkg.pr.new/novuhq/novu/@novu/js@7151

@novu/nest

npm i https://pkg.pr.new/novuhq/novu/@novu/nest@7151

@novu/nextjs

npm i https://pkg.pr.new/novuhq/novu/@novu/nextjs@7151

@novu/node

npm i https://pkg.pr.new/novuhq/novu/@novu/node@7151

@novu/notification-center

npm i https://pkg.pr.new/novuhq/novu/@novu/notification-center@7151

novu

npm i https://pkg.pr.new/novuhq/novu@7151

@novu/providers

npm i https://pkg.pr.new/novuhq/novu/@novu/providers@7151

@novu/react

npm i https://pkg.pr.new/novuhq/novu/@novu/react@7151

@novu/react-native

npm i https://pkg.pr.new/novuhq/novu/@novu/react-native@7151

@novu/shared

npm i https://pkg.pr.new/novuhq/novu/@novu/shared@7151

@novu/stateless

npm i https://pkg.pr.new/novuhq/novu/@novu/stateless@7151

commit: 6a68ce1

@SokratisVidros SokratisVidros merged commit 98bc719 into next Nov 28, 2024
32 checks passed
@SokratisVidros SokratisVidros deleted the validation-not-working-in-update branch November 28, 2024 10:32
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.

6 participants