Skip to content

fix(dref): active dref ops-update details issue - #2828

Open
susilnem wants to merge 1 commit into
developfrom
fix/active-dref-shared-ops-update-prefetch
Open

fix(dref): active dref ops-update details issue#2828
susilnem wants to merge 1 commit into
developfrom
fix/active-dref-shared-ops-update-prefetch

Conversation

@susilnem

@susilnem susilnem commented Sep 11, 2026

Copy link
Copy Markdown
Member

Issue

Users who were not superusers or region admins saw operational_update_details: null in the active DREF list, even when an operational update existed for that dref. This happened for dref creators, dref collaborators, and users shared only on the operational update itself. Reported in IFRCGo/go-web-app#2542.

Changes

  • operational_update_details now runs a normal database query when the prefetched data is missing, instead of returning null.

…etched

Users who reach a dref through Dref.get_for() (creator, dref.users, or
shared only on the ops-update) lost operational_update_details because
it depended solely on a prefetch that get_for's queryset doesn't carry.
Falls back to a live query when the prefetch attr is missing.
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