Skip to content

feat: permissions option of the project backup and restore commands - #57

Merged
ymarcon merged 1 commit into
masterfrom
feat/backup-permissions
Nov 26, 2026
Merged

ymarcon merged 1 commit into
masterfrom
feat/backup-permissions

Conversation

@ymarcon

@ymarcon ymarcon commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Adds a --permissions flag to backup-project and restore-project, in both the opal and opal-legacy consoles, and a permissions argument to BackupProjectCommand.backup_project(). Off by default, it sets the permissions option of the backup and restore commands added in obiba/opal#4270 (issue obiba/opal#4269).

  • Backup: writes the project permissions to the archive.
  • Restore: for each subject and item in the archive, replaces the subject's permissions on that item with the archive's; other subjects and items keep theirs. The help points out that a user or group name on another server does not necessarily designate the same person.

The flag has no short form, as -pe is already used by --permission on the permission commands.

An Opal server without obiba/opal#4270 ignores the option.

Backing up and restoring the project permissions is opt-in, see
obiba/opal#4269.
@ymarcon
ymarcon merged commit f62e9dc into master Nov 26, 2026
8 checks passed
@ymarcon
ymarcon deleted the feat/backup-permissions branch November 26, 2026 20:43
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