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

feat(cargo-shuttle): beta flag, remove project list pagination logic #1732

Merged

Conversation

jonaro00
Copy link
Member

Supersedes #1731

Copy link
Contributor

@Kazy Kazy left a comment

Choose a reason for hiding this comment

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

Curious how this will scale if we start to have more modification from the current CLI. I was thinking of having two different implementation of the API instead (ShuttleApiClient and ShuttleBetaApiClient basically). This would also make it clearer what isn't implemented vs the other one.

cargo-shuttle/src/client.rs Outdated Show resolved Hide resolved
@jonaro00
Copy link
Member Author

Decided to go with a boolean property like this since the amount of differences thus far is very small.
The pattern becomes:

  • If only the API call is different, change behaviour in Client (can also refactor to <T> if the return model is different),
  • If more of the command is different, change behaviour in the Shuttle command method,
  • If lots changed, add new methods where needed.

@Kazy
Copy link
Contributor

Kazy commented Apr 10, 2024

Decided to go with a boolean property like this since the amount of differences thus far is very small. The pattern becomes:

Okay, let's keep it that way for now then.

@jonaro00 jonaro00 changed the base branch from main to feat/shuttle-ecs-common April 10, 2024 15:03
Copy link
Contributor

@iulianbarbu iulianbarbu left a comment

Choose a reason for hiding this comment

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

Project start, list, status works as expected.

cargo-shuttle/src/lib.rs Show resolved Hide resolved
Copy link
Contributor

@iulianbarbu iulianbarbu left a comment

Choose a reason for hiding this comment

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

Thanks!

@iulianbarbu iulianbarbu merged commit 72839f0 into shuttle-hq:feat/shuttle-ecs-common Apr 11, 2024
24 checks passed
@jonaro00 jonaro00 deleted the cargo-shuttle-beta branch April 11, 2024 08:10
iulianbarbu pushed a commit that referenced this pull request Apr 11, 2024
…1732)

* feat(cargo-shuttle): beta flag

* nit: client name

* fix: delete beta endpoint
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.

3 participants