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

Fix/Enhance recalculate disk usage API endpoint #15739

Merged
merged 11 commits into from Mar 20, 2023

Conversation

davelopez
Copy link
Contributor

Fix (affects only dev)

The recalculate_user_disk_usage task has the required object store instance now.

Enhancements

  • The API route has changed to /api/users/current/recalculate_disk_usage to be more consistent with other endpoints affecting the current user. The old one has been marked as deprecated.
  • The API endpoint now returns the AsyncTaskResultSummary when Celery is enabled to be able to track the status of the task if necessary.

How to test the changes?

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

@davelopez
Copy link
Contributor Author

I will follow up with the DiskUsageSummary component modernization in a different PR.

@davelopez davelopez marked this pull request as draft March 8, 2023 14:11
@davelopez davelopez marked this pull request as ready for review March 8, 2023 14:25
@davelopez
Copy link
Contributor Author

The integration test failure is legit https://github.com/galaxyproject/galaxy/actions/runs/4365262789/jobs/7633649104
But I don't know what is going on... 🤔

@jmchilton
Copy link
Member

Can you rebase this?

@jmchilton jmchilton merged commit 5625c91 into galaxyproject:dev Mar 20, 2023
41 checks passed
@jmchilton
Copy link
Member

Awesome - thank you!

@davelopez davelopez deleted the fix_recalculate_disk_usage branch March 20, 2023 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants