Skip to content

[ENG-7270] Enable Product Team to Force Archive Registrations in the Admin App #11105

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

Merged

Conversation

antkryt
Copy link
Contributor

@antkryt antkryt commented Apr 21, 2025

Purpose

Implement Force Archive for admin UI based on osf/management/commands/force_archive.py

Changes

BE:

  1. remove globals from force archive management command to make it thread-safe (usable in views)
  2. Implement CheckArchiveStatusRegistrationsView and ForceArchiveRegistrationsView
  3. RestartStuckRegistrationsView is replaced with ForceArchiveRegistrationsView

FE:

  1. Added Check archive status button
  2. Added Force Archive button
  3. Updated Restart Stuck Registration button (now it'll open the same modal as Force Archive to choose parameters but dry-mode is not available)

image

QA Notes

  • Check archive status is displayed if node is registration
  • Force Archive button is displayed if registration is not archived and not stuck
  • Restart/Remove Stuck Registration are displayed if registration is not archived and stuck

Documentation

Side Effects

Ticket

https://openscience.atlassian.net/browse/ENG-7270

Copy link
Collaborator

@brianjgeiger brianjgeiger left a comment

Choose a reason for hiding this comment

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

Overall, looks good. Just one thing that is wrong that I saw.

@brianjgeiger brianjgeiger merged commit 7b3acf5 into CenterForOpenScience:feature/pbs-25-08 Apr 22, 2025
6 checks passed
Johnetordoff added a commit to Johnetordoff/osf.io that referenced this pull request May 1, 2025
…cience/osf.io into impact-notifications

* 'feature/pbs-25-08' of https://github.com/CenterForOpenScience/osf.io: (28 commits)
  [ENG-7716] Allow for reinstatement of previous preprint versions (with date uploaded) via the admin app (CenterForOpenScience#11118)
  [ENG-7263] Fix/eng 7263 part 3 (CenterForOpenScience#11119)
  [ENG-7263] Part 2 (CenterForOpenScience#11110)
  fix feature for non-contributor admin (CenterForOpenScience#11111)
  [ENG-7716] Allow for reinstatement of previous preprint versions (with date uploaded) via the admin app (CenterForOpenScience#11097)
  delete sharev2 push [ENG-7387] (CenterForOpenScience#11032)
  [ENG-7503] Fix/eng 7503 (CenterForOpenScience#11092)
  [ENG-7263] Fix/eng 7263 (CenterForOpenScience#11090)
  [ENG-7798] Parse versioned guid (CenterForOpenScience#11104)
  [ENG-7270] Enable Product Team to Force Archive Registrations in the Admin App (CenterForOpenScience#11105)
  gdpr deletion shouldn't take into account deleted nodes (CenterForOpenScience#11098)
  Bind task for proper retrying
  improved naming
  use newly built doi for previous versions
  mint missing doi when build metadata
  use minted doi for building metadata
  updated error text
  simplified query
  flat guids
  added version filtering
  ...

# Conflicts:
#	api/crossref/views.py
#	tests/test_events.py
#	tests/test_misc_views.py
Vlad0n20 pushed a commit to Vlad0n20/osf.io that referenced this pull request May 5, 2025
…Admin App (CenterForOpenScience#11105)

## Purpose
Implement Force Archive for admin UI based on `osf/management/commands/force_archive.py`

## Changes
BE:
1. remove globals from force archive management command to make it thread-safe (usable in views)
2. Implement CheckArchiveStatusRegistrationsView and ForceArchiveRegistrationsView
3. RestartStuckRegistrationsView is replaced with ForceArchiveRegistrationsView

FE:
1. Added Check archive status button
2. Added Force Archive button
3. Updated Restart Stuck Registration button (now it'll open the same modal as Force Archive to choose parameters but dry-mode is not available)

## QA Notes
- Check archive status is displayed if node is registration
- Force Archive button is displayed if registration is not archived and not stuck
- Restart/Remove Stuck Registration are displayed if registration is not archived and stuck

## Ticket
https://openscience.atlassian.net/browse/ENG-7270
ihorsokhanexoft pushed a commit to ihorsokhanexoft/osf.io that referenced this pull request Jun 4, 2025
…Admin App (CenterForOpenScience#11105)

## Purpose
Implement Force Archive for admin UI based on `osf/management/commands/force_archive.py`

## Changes
BE:
1. remove globals from force archive management command to make it thread-safe (usable in views)
2. Implement CheckArchiveStatusRegistrationsView and ForceArchiveRegistrationsView
3. RestartStuckRegistrationsView is replaced with ForceArchiveRegistrationsView

FE:
1. Added Check archive status button
2. Added Force Archive button
3. Updated Restart Stuck Registration button (now it'll open the same modal as Force Archive to choose parameters but dry-mode is not available)

## QA Notes
- Check archive status is displayed if node is registration
- Force Archive button is displayed if registration is not archived and not stuck
- Restart/Remove Stuck Registration are displayed if registration is not archived and stuck

## Ticket
https://openscience.atlassian.net/browse/ENG-7270
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.

2 participants