Closed Bug 1273650 Opened 9 years ago Closed 9 years ago

Event status not updating by fanout

Categories

(Webtools Graveyard :: Air Mozilla, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: peterbe, Assigned: peterbe)

Details

Attachments

(1 file)

When an event changes status, it sends out a message to fanout with the channel "event-XXXX" where XXXX is the event ID. The eventstatus.js code subscribes to the channel "status-XXXX" https://github.com/mozilla/airmozilla/blob/7192ff4b72b02224c7d4d7f116f0f5a4b7773dca/airmozilla/main/views/pages.py#L488 That's a mismatch.
Richard, the code that refreshes the page automatically when the status of the event changes is broken :( It's because the fanout stuff we've set up is not listening in to the right channel. It was easy to fix but I also noticed that when the fanout stuff is triggered, it makes a request to the server saying "Apparently the event has changed. What is the event's status?" That query got overly cached so it always reported wrong.
Commit pushed to master at https://github.com/mozilla/airmozilla https://github.com/mozilla/airmozilla/commit/f2bc8bd192027e2c09386b14f2b50b698525238d Bug 1273650 event status not updating by fanout (#683) * fixes bug 1273650 - Event status not updating by fanout * optimize event_status view
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: