Skip to content

Conversation

@slint
Copy link
Member

@slint slint commented Dec 31, 2025

  • fix(legacy): stop using current_user outisde request context

    • Fixes a bug where the expiration logic for "community manage record"
      requests failed because they were running in a Celery task without
      request context.
    • User is deduced from the request receiver now.
  • fix(scripts): adjust community manage requests script

    • Instead of working with specific records, the scripts accepts a
      community, for which then it creates requests (if not already created)
      for users with legacy records in the community.
    • For records that are owned by community members, the flags are
      automatically removed (since there is no sense to create requests).
    • Also persists the results in a JSON file.

* Fixes a bug where the expiration logic for "community manage record"
  requests failed because they were running in a Celery task without
  request context.
* User is deduced from the request receiver now.
* Instead of working with specific records, the scripts accepts a
  community, for which then it creates requests (if not already created)
  for users with legacy records in the community.
* For records that are owned by community members, the flags are
  automatically removed (since there is no sense to create requests).
* Also persists the results in a JSON file.
@slint slint changed the title fix community manage requests Fix community manage requests Dec 31, 2025
@slint slint merged commit befe1ca into zenodo:master Jan 8, 2026
2 checks passed
@slint slint deleted the fix-community-manage-requests branch January 8, 2026 14:58
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.

1 participant