Hotfix: Fixed evidence for admins#902
Conversation
The collab editor JWT permissions for v7 lacked an explicit allowance for privileged users. Previously, it looked for invites and assignments, so admins might not see evidence.
There was a problem hiding this comment.
Pull request overview
This hotfix targets the collaborative editor’s evidence picker behavior by adjusting Hasura row-level permissions so privileged users (e.g., admins/managers) can see evidence even when they aren’t explicitly assigned/invited on the underlying project.
Changes:
- Updated Hasura
collabselect permissions forreporting_evidenceto allow privileged users (admin/manager/staff) to pass the project-access gate. - Simplified the evidence GraphQL query usage in the collab frontend (no longer constructing page-specific
wherefilters) and removed the now-unused finding ID template marker. - Bumped version metadata (VERSION + Django settings) and documented the fix in the changelog; updated Hasura metadata tests accordingly.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| VERSION | Bumps release version to v7.0.2. |
| config/settings/base.py | Updates application __version__ constant to 7.0.2. |
| CHANGELOG.md | Adds 7.0.2 entry describing the privileged-user evidence fix. |
| hasura-docker/metadata/databases/default/tables/public_reporting_evidence.yaml | Adjusts collab role evidence select permissions to include privileged users and modifies report/finding scoping logic. |
| ghostwriter/api/tests/test_hasura_metadata.py | Updates expected Hasura metadata filters and adds a helper for privileged-user checks. |
| javascript/src/frontend/graphql/evidence.tsx | Removes report/finding-derived where filters and queries evidence with an empty bool-exp. |
| ghostwriter/reporting/templates/reporting/report_finding_link_update.html | Removes the graphql-evidence-finding-id marker from the finding edit page. |
🤖 Augment PR SummarySummary: Hotfix release bump to Changes:
Technical Notes: Evidence visibility in the collab editor is now enforced primarily through Hasura row-level permissions driven by collab JWT/session variables. 🤖 Was this summary useful? React with 👍 or 👎 |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…' into hotfix/fixed-evidence-for-admins
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #902 +/- ##
=======================================
Coverage 93.61% 93.61%
=======================================
Files 404 404
Lines 27679 27687 +8
=======================================
+ Hits 25912 25920 +8
Misses 1767 1767 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
CHANGELOG
[7.0.2] - 10 June 2026
Fixed