Event details never load the full event, so Edit and "Hosted by" never show #36
Labels
No labels
bug
chore
data
feature
frontend
good first issue
intermediate
needs/docs
needs/research
needs/upstream
type/bug
type/external
type/feature
type/refactor
urgency
high
urgency
immediate
urgency
low
urgency
medium
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ScottyLabs/cal#36
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What's wrong
The event popover and mobile modal show only the partial data they were opened with. They never fetch the full event, so
user_is_adminis never set (org admins never see the Edit button), "Hosted by" never shows, and Explore details have no description.How to reproduce
Expected
Opening an event's details fetches
GET /api/events/<id>and shows the description, the host org, and Edit for its admins.Where to look
web/src/app/components/EventPopover.tsx: readseventDetails.user_is_adminandeventDetails.orgbut never fetches.web/src/app/components/ModalEvent.tsx: skips the fetch when it was given data already.web/src/app/components/Calendar.tsxandSearchResultSidebar.tsx: pass partial event objects when opening details.api/app/api/events.py:GET /<int:event_id>returns the full event withorg,user_is_adminanduser_saved.Done when