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 support for projects & assigning resources to projects #54

Open
antevens opened this issue Apr 6, 2022 · 3 comments
Open

Add support for projects & assigning resources to projects #54

antevens opened this issue Apr 6, 2022 · 3 comments
Labels
feature Issue is requesting a new feature or modification good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed

Comments

@antevens
Copy link

antevens commented Apr 6, 2022

When creating resources it would be nice to be able to associate them with particular projects.

https://docs.digitalocean.com/reference/api/api-reference/#operation/assign_project_resources

@ADustyOldMuffin
Copy link
Contributor

Thanks for this request!

Just for documentation here's the godo docs for it. I'll mark it as ready to be picked up!

https://pkg.go.dev/github.com/digitalocean/godo#CreateProjectRequest

@ADustyOldMuffin ADustyOldMuffin added good first issue Good for newcomers help wanted Extra attention is needed feature Issue is requesting a new feature or modification labels Apr 6, 2022
@pascal-sochacki
Copy link

pascal-sochacki commented Jan 29, 2023

Hey, I would like to contribute. Just to be sure I understood the feature and how to implement this, I created a pr #76.
If I understood this correct, each resource would get a new field ProjectID and if missing in the list of ressources of a Project, it would need to be added to it. Is there maybe a better way to get the information if a ressource is already part of a project?

@ADustyOldMuffin
Copy link
Contributor

Hey, thanks for being interested in contributing! I took a look and that seems about on par with what I was thinking. As far as I'm aware I don't know of a better way to see if an item is apart of a project resource as it's not exposed on a resource level (at least from what I can see with droplets). I'll leave a comment on the PR with an improvement I can see but it looks excellent so far!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Issue is requesting a new feature or modification good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants