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

Add appGUID attribute to droplet resource [main] #2932

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gmllt
Copy link
Member

@gmllt gmllt commented May 17, 2024

Where this PR should be backported?

Description of the Change

The V3 API allows you to access to the relationships existing beween a droplet and its related app.
This PR make this relationship visible trough a new AppGUID attribute in the resource droplet.

The community cf_exporter currently use the /v2/spaces/:guid/summary endpoint to gain access to buildpack associated to an application. Have this relationship visible would help get rid of calls on this endpoint and retrieve buildpacks attached to an application through its droplets.

This feature is necessary for applications using the cli product in go development to established relationship between an application resource and its droplets.

This feature will not cause breaking change.

@gmllt
Copy link
Member Author

gmllt commented May 17, 2024

PR on v8 branch : 2933

@gmllt gmllt force-pushed the add-droplets-relationships-main branch from edb7507 to 0d0ada0 Compare June 27, 2024 18:06
@gmllt gmllt changed the title Add appGUID attribute to droplet resource Add appGUID attribute to droplet resource (main branch) Jun 27, 2024
Comment on lines +44 to +54
type Data struct {
GUID string `json:"guid,omitempty"`
}

type RelationshipData struct {
Data Data `json:"data,omitempty"`
}

type Relationships struct {
App RelationshipData `json:"app,omitempty"`
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Any particular reason for the difference between these structs and the ones for the unmarshal (named structs vs anonymous structs)? My suggestion is if we are keeping these inside functions personally I would prefer to have them anonymous.

Copy link
Member

Choose a reason for hiding this comment

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

@gmllt wanted to follow up. Do you have any feedback on this?

@gmllt gmllt force-pushed the add-droplets-relationships-main branch from 0d0ada0 to 629e8a1 Compare August 9, 2024 09:48
@a-b a-b force-pushed the add-droplets-relationships-main branch from 629e8a1 to 6ee45ec Compare August 19, 2024 20:47
@weresch weresch force-pushed the add-droplets-relationships-main branch from 6ee45ec to a28ccbd Compare August 21, 2024 13:57
@a-b
Copy link
Member

a-b commented Sep 5, 2024

@dependabot rebase

@a-b a-b changed the title Add appGUID attribute to droplet resource (main branch) Add appGUID attribute to droplet resource [main] Oct 4, 2024
@a-b a-b force-pushed the add-droplets-relationships-main branch from a28ccbd to 05b3910 Compare November 18, 2024 15:16
@a-b a-b force-pushed the add-droplets-relationships-main branch from 05b3910 to ac24a3c Compare November 18, 2024 16:12
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