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: unknown resource type #749

Merged
merged 1 commit into from
Mar 26, 2023

Conversation

oddgrd
Copy link
Contributor

@oddgrd oddgrd commented Mar 25, 2023

Description of change

Fixes a bug where resources other than databases were not recognized due to missing match arms in the FromStr impl for persistence::resource::Type. Error message below:

Error: 500 Internal Server Error
message: Persistence failure: Database error: error occurred while decoding column "type": 'secrets' is an unknown resource type

How Has This Been Tested (if applicable)?

Local deploy of the postgres poem example after adding shuttle_secrets to it, and also tested with all resources in #750 with the fix from this branch.

Copy link
Contributor

@chesedo chesedo left a comment

Choose a reason for hiding this comment

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

Thanks O ❤️

@chesedo chesedo merged commit d8fdc2b into shuttle-hq:main Mar 26, 2023
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