Skip to content

feat(files): allow admins and harvester to replace files - #1011

Merged
zzacharo merged 1 commit into
CERNDocumentServer:masterfrom
liptakpanna:admin-harvester-file-modification
Oct 15, 2026
Merged

zzacharo merged 1 commit into
CERNDocumentServer:masterfrom
liptakpanna:admin-harvester-file-modification

Conversation

@liptakpanna

@liptakpanna liptakpanna commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

@liptakpanna
liptakpanna force-pushed the admin-harvester-file-modification branch 2 times, most recently from 2104e39 to 2871955 Compare October 6, 2026 15:10
Comment thread site/tests/test_policies.py Outdated
curators_permission = Permission(harvester_admin_access_action,
clc_sync_admin_access_action)

harvester_admin_access_permission = Permission(harvester_admin_access_action)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

last thing that came to my mind, sorry for not spotting it on the first iteration:
the name might be slightly misleading, because in fact we do not give the harvester the admin permission (or action) and that is not the intention - I would simply go with harvester_access_action and harvester_access_permission - removing the admin references from the names. We don't want the harvester to be an admin in the system.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

including renaming the actual action (Line 12 - action_factory("harvester-admin-access-action")) ?
because then we have to revoke that one and assign the new action ("harvester-access-action") to the harvester user in all envs? how do you do this to make sure it's done on deployment?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

as discussed on the stand up, the action name itself was not updated only the code references

@liptakpanna
liptakpanna force-pushed the admin-harvester-file-modification branch 2 times, most recently from fc88ae9 to 1b5cf87 Compare October 14, 2026 11:12
@liptakpanna
liptakpanna force-pushed the admin-harvester-file-modification branch 2 times, most recently from 7f3085f to d5d0b51 Compare October 15, 2026 10:09
* Allow admins and INSPIRE harvester to replace files without a new version
@liptakpanna
liptakpanna force-pushed the admin-harvester-file-modification branch from d5d0b51 to 086ed66 Compare October 15, 2026 10:28
@zzacharo
zzacharo merged commit ff61a3b into CERNDocumentServer:master Oct 15, 2026
3 checks passed
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.

enable file replace feature without versioning for admins and harvester only

4 participants