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

[Feature Request]: Update a package #58

Open
tyrann0us opened this issue Feb 1, 2023 · 5 comments
Open

[Feature Request]: Update a package #58

tyrann0us opened this issue Feb 1, 2023 · 5 comments

Comments

@tyrann0us
Copy link

Is your feature request related to a problem? Please describe.
While there are a couple of methods for adding, editing, or deleting packages, unless I'm mistaken, there are none for updating a package.

Describe the desired solution
It would be great if there would be a method for updating a package. Something like this:

$package = $client->packages()->update('acme-website/package');

Describe the alternatives that you have considered
None considered.

Additional context
Sorry if updating a package is already possible; I never actually used this library but only checked the README.md and couldn't find anything about updating.

@tyrann0us
Copy link
Author

Same for "abandon a package".

@glaubinix
Copy link
Member

Hey,

Correct, API endpoints to trigger a package update or to abandon a package are not yet available. If you need trigger package updates via HTTP calls, there is already a way to do this via a POST request using the hook URL that is shown on the package page. Happy to help you get this set up if you need any help. Easiest might be via the support chat.

@glaubinix
Copy link
Member

@tyrann0us can you give us some details about your use case for both package update and package abandon? This would help us prioritize the issue. If you'd rather not share this publically, then you are also welcome to share this via our support email or chat.

@tyrann0us
Copy link
Author

Hi @glaubinix, I don’t really have a use case. We might use the library in the long term; this request is certainly not of high priority for us at the moment.
Thanks!

@naderman
Copy link
Member

naderman commented Feb 6, 2023

@tyrann0us We're happy to consider this if there's a use case. So far every time someone brought this up, it could be resolved in a different way. Typically by using our existing webhook mechanisms to trigger package updates, or by configuring synchronization correctly. I'll leave this open though, as I agree we should add a method to abandon packages via API.

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

No branches or pull requests

3 participants