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

Hotfix: Allow multiple stacks #1393

Merged
merged 4 commits into from
Jul 16, 2024
Merged

Hotfix: Allow multiple stacks #1393

merged 4 commits into from
Jul 16, 2024

Conversation

AdamJHall
Copy link
Contributor

Description of the proposed changes
Update the mesh construct so that it can be deployed multiple times to the same account with the same defaults. Currently if you deploy it more than once it will fail and rollback due to creating a dashboard and dynamo DB table with the same name in both stacks. This PR removes the default dynamo DB table and updates the dashboard to include the stack name so it will not conflict.

Notes to PR author

⚠️ Please make sure the changes adhere to the guidelines mentioned here

Notes to reviewers

🛈 When you've finished leaving feedback, please add a final comment to the PR tagging the author, letting them know that you have finished leaving feedback

… safer defaults

Only create auth table if name is passed
Add prop to pass dashboard name
Set default dashboard name to include the stack name so that a second stack with no prop set won't cause a failed deployment
Copy link
Contributor

@TheOrangePuff TheOrangePuff left a comment

Choose a reason for hiding this comment

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

Minor change but looks good!

packages/graphql-mesh-server/lib/metrics.ts Outdated Show resolved Hide resolved
@AdamJHall AdamJHall merged commit 317c7e0 into main Jul 16, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants