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

Don't show service route binding parameters not in state create succeeded #3443

Conversation

kathap
Copy link
Contributor

@kathap kathap commented Sep 19, 2023

This is a fix as part of #2637. It contains changes in behaviour for:

  • GET /v3/service_route_bindings/:guid/parameters

For GET /v3/service_route_bindings/:guid/parameters, if the state is not create succeeded, it should not return parameters. It should raise an error when GET /v3/service_route_bindings/:guid/parameters is called instead of showing empty data.

…state create initial or create failed

For GET /v3/service_route_bindings/:guid/parameters, if the state is create initial or create failed, it should not return parameters.
It should raise an error when GET /v3/service_route_bindings/:guid/parameters, is called instead of showing empty data.
@philippthun philippthun self-requested a review September 22, 2023 07:47
@philippthun philippthun changed the title Throw error for GET /v3/service_route_bindings/:guid/parameters with state create initial or create failed Don't show service route binding parameters not in state create succeeded Sep 29, 2023
app/models/services/route_binding.rb Outdated Show resolved Hide resolved
app/controllers/v3/service_route_bindings_controller.rb Outdated Show resolved Hide resolved
app/controllers/v3/service_route_bindings_controller.rb Outdated Show resolved Hide resolved
app/controllers/v3/service_route_bindings_controller.rb Outdated Show resolved Hide resolved
app/controllers/v3/service_route_bindings_controller.rb Outdated Show resolved Hide resolved
app/controllers/v3/service_route_bindings_controller.rb Outdated Show resolved Hide resolved
spec/request/service_route_bindings_spec.rb Outdated Show resolved Hide resolved
@philippthun
Copy link
Member

@kathap - Changes look good! Could you please squash your commits, then I will approve and merge the PR.

Copy link
Member

@moleske moleske left a comment

Choose a reason for hiding this comment

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

looks good and since @philippthun also said it looks good I'm just using github's squash and merge to get the changes in one commit

@moleske moleske merged commit 1cc6974 into cloudfoundry:main Oct 10, 2023
geofffranks pushed a commit to geofffranks/cloud_controller_ng that referenced this pull request Oct 19, 2023
…eded (cloudfoundry#3443)

* Throw error for GET /v3/service_route_bindings/:guid/parameters with state create initial or create failed

For GET /v3/service_route_bindings/:guid/parameters, if the state is create initial or create failed, it should not return parameters.
It should raise an error when GET /v3/service_route_bindings/:guid/parameters, is called instead of showing empty data.
Co-authored-by: Josh Russett <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants