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

bump graphql-generator dependency version for model-generator #2215

Merged
merged 3 commits into from
Nov 11, 2024

Conversation

atierian
Copy link
Member

Problem

model-generator depends on graphql-generator with a versioning rule of ^0.4.0.
graphql-generator has released 0.5.0 and 0.5.1 with updates that model-generator needs to consume.

Issue number, if available:

Changes

  • Bumps model-generators dependency on graphql-generator to ^0.5.1.

Note

I don't know why graphql-generator is still in 0.
I'll find out and, if appropriate, will bump it to 1. in a follow up so we don't have this issue anymore.

Corresponding docs PR, if applicable:

Validation

Checklist

  • If this PR includes a functional change to the runtime behavior of the code, I have added or updated automated test coverage for this change.
  • If this PR requires a change to the Project Architecture README, I have included that update in this PR.
  • If this PR requires a docs update, I have linked to that docs PR above.
  • If this PR modifies E2E tests, makes changes to resource provisioning, or makes SDK calls, I have run the PR checks with the run-e2e label set.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@atierian atierian added the run-e2e Label that will include e2e tests in PR checks workflow label Nov 11, 2024
@atierian atierian requested review from a team as code owners November 11, 2024 13:59
Copy link

changeset-bot bot commented Nov 11, 2024

🦋 Changeset detected

Latest commit: 8e33f10

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@aws-amplify/model-generator Patch

Not sure what this means? Click here to learn what changesets are.

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

@@ -48,7 +47,7 @@ export type AuthProps = {
externalProviders?: ExternalProviderOptions;
};
senders?: {
email: Pick<UserPoolSESOptions, 'fromEmail' | 'fromName' | 'replyTo'> | CustomEmailSender;
email: Pick<UserPoolSESOptions, 'fromEmail' | 'fromName' | 'replyTo'>;
Copy link
Member

Choose a reason for hiding this comment

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

The changes in API.md files should be in this PR.

Please either revert them or rebase PR with current main.

Copy link
Member Author

Choose a reason for hiding this comment

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

The branch's parent is the current HEAD of main.

> git rev-parse HEAD~2
06e4def3eded2e4127c4501a4dce669abba900db

I'm assuming the API changes were necessary because running npm i to update the package-lock after bumping the graphql-generator version pulled in newer versions of other packages that aren't in main.

What do you suggest?

Copy link
Member

Choose a reason for hiding this comment

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

That's not possible.
The changes in API.md files are related to code in the repo that was added recently.

npm run clean && npm install && npm run build && npm run update:api should help. (gonna push the change since I have it locally).

API.md files are generated from build artifacts. If local workspace is stale then it may give unexpected deltas.

Copy link
Member Author

Choose a reason for hiding this comment

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

That makes a lot more sense. Thanks!

Copy link
Member

@sobolk sobolk Nov 11, 2024

Choose a reason for hiding this comment

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

If local workspace is stale then it may give unexpected deltas.

that is the reason we have check in PR build. we haven't found better way to enforce consistency.

@sobolk sobolk enabled auto-merge (squash) November 11, 2024 16:09
@sobolk sobolk merged commit 443e2ff into main Nov 11, 2024
70 of 72 checks passed
@sobolk sobolk deleted the chore.bump-graphql-generator branch November 11, 2024 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-e2e Label that will include e2e tests in PR checks workflow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants