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: add generation info to spaces:info and spaces:wait commands #3033

Merged
merged 5 commits into from
Oct 18, 2024

Conversation

k80bowman
Copy link
Contributor

Description

This PR adds space generation to the output from the spaces:info and spaces:wait commands.

Testing

  • Pull down this branch locally and run yarn && yarn build
  • Run ./bin/run spaces:info test-fir-dev-tools and verify that the generation is included in the output
  • Run ./bin/run spaces:info test-fir-dev-tools --json and verify that the generation is included in the output
  • Run ./bin/run spaces:wait test-fir-dev-tools and verify that the generation is included in the output
  • Run ./bin/run spaces:wait test-fir-dev-tools --json and verify that the generation is included in the output

Internal work item

@k80bowman k80bowman requested a review from a team as a code owner October 10, 2024 21:09
Copy link
Contributor

@eablack eablack left a comment

Choose a reason for hiding this comment

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

Looks great! One minor style comment, but otherwise good to go.

}

const {body: space} = await this.heroku.get<Heroku.Space>(`/spaces/${spaceName}`, {headers})
const {body: updatedSpace} = await this.heroku.get<Space>(`/spaces/${spaceName}`, {headers})
const space: SpaceWithOutboundIps = updatedSpace
Copy link
Contributor

Choose a reason for hiding this comment

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

Rather than setting the body's updatedSpace variable as Space type and then immediately setting it as SpaceWithOutboundIps type, couldn't we just set it as SpaceWithOutboundIps? So like:

const {body: space} = await this.heroku.get<SpaceWithOutboundIps>(`/spaces/${spaceName}`, {headers})

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good thought, thank you! Updated.

@k80bowman k80bowman force-pushed the k80/fir-spaces-info branch from 947f239 to 37cd362 Compare October 18, 2024 14:18
@k80bowman k80bowman merged commit 06797a7 into prerelease/10.0.0-alpha Oct 18, 2024
8 checks passed
@k80bowman k80bowman deleted the k80/fir-spaces-info branch October 18, 2024 14:30
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