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 capability to be able to delete an artifact of given job #26

Open
shawnzhu opened this issue Mar 23, 2017 · 1 comment
Open

Add capability to be able to delete an artifact of given job #26

shawnzhu opened this issue Mar 23, 2017 · 1 comment

Comments

@shawnzhu
Copy link
Owner

This may be required when repo or PR owner decide to remove an uploaded artifact file.

@joshk
Copy link

joshk commented Mar 23, 2017

This should use the users travis-api token to check if they have permission to delete a file.

@rkh do we have an api endpoint for checking permissions for a repo?

I guess the interactions would need to be:

  • check with api what repo owns the job (fetch the job payload using /job/:id)
  • check what permissions that token has for that repo (need to confirm the endpoint)
  • delete the artifact from the db and from s3

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

2 participants