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

refactor order confirmed event #1601

Merged
merged 5 commits into from
Oct 1, 2024
Merged

refactor order confirmed event #1601

merged 5 commits into from
Oct 1, 2024

Conversation

lkostrowski
Copy link
Member

Scope of the PR

Related issues

Checklist

Copy link

changeset-bot bot commented Sep 30, 2024

⚠️ No Changeset found

Latest commit: 4ef9154

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Sep 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
saleor-app-avatax ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 1, 2024 7:12am
6 Skipped Deployments
Name Status Preview Comments Updated (UTC)
saleor-app-cms ⬜️ Skipped (Inspect) Oct 1, 2024 7:12am
saleor-app-data-importer ⬜️ Skipped (Inspect) Oct 1, 2024 7:12am
saleor-app-klaviyo ⬜️ Skipped (Inspect) Oct 1, 2024 7:12am
saleor-app-products-feed ⬜️ Skipped (Inspect) Oct 1, 2024 7:12am
saleor-app-search ⬜️ Skipped (Inspect) Oct 1, 2024 7:12am
saleor-app-smtp ⬜️ Skipped (Inspect) Oct 1, 2024 7:12am

@vercel vercel bot temporarily deployed to Preview – saleor-app-klaviyo September 30, 2024 17:39 Inactive
@vercel vercel bot temporarily deployed to Preview – saleor-app-search September 30, 2024 17:39 Inactive
@vercel vercel bot temporarily deployed to Preview – saleor-app-products-feed September 30, 2024 17:39 Inactive
@vercel vercel bot temporarily deployed to Preview – saleor-app-data-importer September 30, 2024 17:39 Inactive
@vercel vercel bot temporarily deployed to Preview – saleor-app-smtp September 30, 2024 17:39 Inactive
@vercel vercel bot temporarily deployed to Preview – saleor-app-cms September 30, 2024 17:39 Inactive
@lkostrowski lkostrowski marked this pull request as ready for review September 30, 2024 17:39
@lkostrowski lkostrowski requested a review from a team as a code owner September 30, 2024 17:39
@vercel vercel bot temporarily deployed to Preview – saleor-app-cms September 30, 2024 17:40 Inactive
@vercel vercel bot temporarily deployed to Preview – saleor-app-products-feed September 30, 2024 17:40 Inactive
@vercel vercel bot temporarily deployed to Preview – saleor-app-klaviyo September 30, 2024 17:40 Inactive
@vercel vercel bot temporarily deployed to Preview – saleor-app-search September 30, 2024 17:40 Inactive
@vercel vercel bot temporarily deployed to Preview – saleor-app-data-importer September 30, 2024 17:40 Inactive
@vercel vercel bot temporarily deployed to Preview – saleor-app-smtp September 30, 2024 17:40 Inactive
@lkostrowski lkostrowski added the skip changeset Attach this label to PRs which does not need changes description for the release notes. label Sep 30, 2024
};

getChannelSlug = () => this.data.order.channel.slug;
getChannelSlug = () => this.rawPayload.order!.channel.slug;
Copy link
Member

Choose a reason for hiding this comment

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

Question: I'm wondering if we can have private method that either gets this.rawPayload.order or rejects as having a bunch of ! means we stop checking for nulls - I'm a bit afraid down the road we introduce some change that TypeScript won't catch because of it 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

Yea, probably we should somehow fix that. I technically "know" that it's defined - you check this in the factory - but then we assign a type that is too loose.

Will check it again

@vercel vercel bot temporarily deployed to Preview – saleor-app-klaviyo October 1, 2024 07:10 Inactive
@vercel vercel bot temporarily deployed to Preview – saleor-app-products-feed October 1, 2024 07:10 Inactive
@vercel vercel bot temporarily deployed to Preview – saleor-app-data-importer October 1, 2024 07:10 Inactive
@vercel vercel bot temporarily deployed to Preview – saleor-app-smtp October 1, 2024 07:10 Inactive
@vercel vercel bot temporarily deployed to Preview – saleor-app-cms October 1, 2024 07:10 Inactive
@vercel vercel bot temporarily deployed to Preview – saleor-app-search October 1, 2024 07:10 Inactive
@lkostrowski lkostrowski enabled auto-merge (squash) October 1, 2024 07:12
@lkostrowski lkostrowski merged commit 4fc1062 into main Oct 1, 2024
17 checks passed
@lkostrowski lkostrowski deleted the order-event branch October 1, 2024 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
App: AvaTax skip changeset Attach this label to PRs which does not need changes description for the release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants