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(cargo-shuttle): remove newline from errored project state output #1466

Merged
merged 1 commit into from
Dec 7, 2023
Merged

Conversation

supleed2
Copy link
Contributor

@supleed2 supleed2 commented Dec 5, 2023

Description of change

Updates impl Display for State to remove tab and newline from errored project state, which caused issues with the table output as shown in #1451.
Closes #1451.

How has this been tested?

The project I would use to test has stopped now, so I don't have one in an errored state, but this change is very localised and does not affect control flow, only text output.

Sidenote

In future it would be cool to have a testing API url which has a range of dummy projects / states, but that's for another issue :)

Copy link
Contributor

@oddgrd oddgrd left a comment

Choose a reason for hiding this comment

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

Thanks! That's a good idea, we'll make a note of it. We do have a staging environment, but it's not public. Once we add more in the future, we can consider something like this that would make it easier for contributors. 👍 For now, it should be possible to test this by manually editing the gateway project state and setting it to errored, I think.

@oddgrd oddgrd merged commit b64a97f into shuttle-hq:main Dec 7, 2023
31 of 33 checks passed
@jonaro00
Copy link
Member

jonaro00 commented Dec 7, 2023

Modifying the project state to something invalid will cause an errored state IIRC

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.

Project list table wraps for errored state
3 participants