Skip to content

fix(harvester): hide system user from harvester reports - #1056

Merged
zzacharo merged 1 commit into
CERNDocumentServer:masterfrom
TahaKhan998:fix/issue-1052-harvester-reports-user-filter
Nov 13, 2026
Merged

zzacharo merged 1 commit into
CERNDocumentServer:masterfrom
TahaKhan998:fix/issue-1052-harvester-reports-user-filter

Conversation

@TahaKhan998

Copy link
Copy Markdown

closes #1052

harvester reports were also showing system user publishes. the permission filter that limits to the harvester user gets bypassed for admins/superusers. now the reports page always sends user_id as a hidden search param (same idea as action), and the search bar stops overwriting those params. needs invenio-audit-logs#36 so user_id actually gets applied.

@liptakpanna

Copy link
Copy Markdown
Contributor

Have you checked if the user id can be queried directly already (using the query string)?

@TahaKhan998

Copy link
Copy Markdown
Author

Have you checked if the user id can be queried directly already (using the query string)?

yeah you can already filter with user.id:… in the search box. this pr just locks it to the harvester user by default so admins dont see system publishes unless the go remove the filter themselves. also on that cancelled run theres no finished_at so the time filter is open-ended (TO *), which is why system publishes still show up. the harvster used to run as system before we switched to the dedicated user on sandbox

@zzacharo
zzacharo merged commit 8538d7e into CERNDocumentServer:master Nov 13, 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.

harvester: system user still visible in the harvester reports

3 participants