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

Adding v3/apps/guid/droplets endpoint; Fixes #3552 #3580

Conversation

benjaminguttmann-avtq
Copy link
Contributor

Is there a related GitHub Issue?

Fixes #3552

What is this change about?

Adding /v3/apps/guid/droplets endpoint

Does this PR introduce a breaking change?

No, adds a new endpoint

Acceptance Steps

Tag your pair, your PM, and/or team

@benjaminguttmann-avtq benjaminguttmann-avtq force-pushed the 3552-add-droplets-endpoint branch 3 times, most recently from 195f7ed to 475ebca Compare October 31, 2024 09:47
Copy link
Member

@danail-branekov danail-branekov left a comment

Choose a reason for hiding this comment

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

TL;DR, I would recommend to extend the repostirory ListDroplets method to support filtering by app guids rather than introducing a new GetDroplets method

api/handlers/app.go Outdated Show resolved Hide resolved
api/handlers/app_test.go Outdated Show resolved Hide resolved
api/repositories/droplet_repository.go Outdated Show resolved Hide resolved
api/repositories/droplet_repository_test.go Outdated Show resolved Hide resolved
api/repositories/droplet_repository_test.go Outdated Show resolved Hide resolved
api/repositories/droplet_repository.go Outdated Show resolved Hide resolved
api/repositories/droplet_repository_test.go Outdated Show resolved Hide resolved
@benjaminguttmann-avtq
Copy link
Contributor Author

@danail-branekov thanks for detailed feedback, will have a look into it next week :)

@georgethebeatle georgethebeatle force-pushed the 3552-add-droplets-endpoint branch from a4b718f to b13e14f Compare November 5, 2024 14:30
@benjaminguttmann-avtq benjaminguttmann-avtq force-pushed the 3552-add-droplets-endpoint branch 3 times, most recently from ba21155 to fe2a81b Compare November 8, 2024 14:04
@benjaminguttmann-avtq
Copy link
Contributor Author

@danail-branekov @georgethebeatle please review again

Copy link
Member

@georgethebeatle georgethebeatle left a comment

Choose a reason for hiding this comment

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

He @benjaminguttmann-avtq thank you for your efforts, nice catch using a label selector to make the server do the filtering for us!

I have left some minor comments in-line

api/payloads/app.go Outdated Show resolved Hide resolved
api/handlers/app_test.go Show resolved Hide resolved
api/handlers/app.go Outdated Show resolved Hide resolved
api/repositories/droplet_repository_test.go Outdated Show resolved Hide resolved
api/repositories/droplet_repository.go Show resolved Hide resolved
@georgethebeatle georgethebeatle dismissed danail-branekov’s stale review November 12, 2024 09:31

Comments have already been addressed

@georgethebeatle georgethebeatle enabled auto-merge (rebase) November 12, 2024 13:41
@georgethebeatle georgethebeatle merged commit accbc53 into cloudfoundry:main Nov 12, 2024
10 checks passed
@benjaminguttmann-avtq benjaminguttmann-avtq deleted the 3552-add-droplets-endpoint branch November 12, 2024 14:03
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.

Implement the GET /v3/apps/guid/droplets endpoint
3 participants