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

allow artifact summary update #3205

Merged
merged 1 commit into from
Jun 16, 2022

Conversation

antgonza
Copy link
Member

This will allow us to update artifact summaries via: artifact_summary_post_request(user, artifact_id, force_creation=True) and while adding this, I realized that we were removing the current file if the file had the same name that the previous version.

@coveralls
Copy link

coveralls commented Jun 16, 2022

Coverage Status

coverage: 92.856% (+0.01%) from 92.846%
when pulling 203005f on antgonza:allow-summary-update
into 60f3cc1 on qiita-spots:dev.

Copy link
Contributor

@charles-cowart charles-cowart left a comment

Choose a reason for hiding this comment

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

Approved. Everything appears in order. Just want to confirm one behavior before approving.

if isfile(fp):
remove(fp)
else:
rmtree(fp)
Copy link
Contributor

Choose a reason for hiding this comment

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

rmtree() can take a callback function to handle errors or ignore failures to delete. Just to confirm, is it better to just have it raise an Error here instead of using a handler or ignoring it?

Copy link
Member Author

Choose a reason for hiding this comment

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

it has been fine so far ... but if you have specific examples of what to add and why, please let me know.

Copy link
Contributor

Choose a reason for hiding this comment

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

True. I just realized path_cleaner() is using the same parameters. I was thinking it might be good to avoid an Error in that part of the code, but it hasn't caused issues so far, and I'd need to look deeper into it in order to provide a specific example.

@charles-cowart charles-cowart merged commit 9bba2bd into qiita-spots:dev Jun 16, 2022
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.

None yet

3 participants