Skip to content

[26.0] Fix batch history purge not updating user's update_time#22238

Merged
nsoranzo merged 1 commit intogalaxyproject:release_26.0from
mvdbeek:fix-history-purge-timestamp
Mar 24, 2026
Merged

[26.0] Fix batch history purge not updating user's update_time#22238
nsoranzo merged 1 commit intogalaxyproject:release_26.0from
mvdbeek:fix-history-purge-timestamp

Conversation

@mvdbeek
Copy link
Copy Markdown
Member

@mvdbeek mvdbeek commented Mar 24, 2026

The batch purge_history_datasets celery task uses raw SQL for bulk operations, bypassing SQLAlchemy's onupdate=now trigger on User.update_time. This caused archiving with purge to leave the user's update_time stale, see #22180 (comment) .

Also forwards preserve_owner_update_time through to the batch task so admin-initiated purges of other users' histories still preserve the owner's update_time.

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. [add testing steps and prerequisites here if you didn't write automated tests covering all your changes]

License

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

The batch purge_history_datasets celery task uses raw SQL for bulk
operations, bypassing SQLAlchemy's onupdate=now trigger on User.update_time.
This caused archiving with purge to leave the user's update_time stale.

Also forwards preserve_owner_update_time through to the batch task so
admin-initiated purges of other users' histories still preserve the
owner's update_time.
@nsoranzo nsoranzo merged commit f3e4b0f into galaxyproject:release_26.0 Mar 24, 2026
58 of 60 checks passed
@github-project-automation github-project-automation Bot moved this from Needs Review to Done in Galaxy Dev - weeklies Mar 24, 2026
@nsoranzo nsoranzo deleted the fix-history-purge-timestamp branch March 24, 2026 11:06
@ahmedhamidawan ahmedhamidawan modified the milestones: 26.1, 26.0 Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/database Galaxy's database or data access layer area/testing kind/bug

Projects

Development

Successfully merging this pull request may close these issues.

3 participants