Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create list of schedule changes for Guidebook #4434

Merged
merged 3 commits into from
Nov 28, 2024
Merged

Conversation

kitsuta
Copy link
Member

@kitsuta kitsuta commented Nov 28, 2024

Fixes https://magfest.atlassian.net/browse/MAGDEV-1299 by adding a report page that tracks all guidebook-related items' last updated date vs their last sync date. In order to show exactly what updated, we also store a JSONized blob of the item's current state. Also fixes https://magfest.atlassian.net/browse/MAGDEV-1341 by cleaning up what we offer for export and getting rid of a couple old schedule exports meant for Guidebook.

If you want to skip marking individual items you can also mark all items in a custom list (or the schedule) as synced, which is also automatically done when you export data. This method of syncing skips any items that were uploaded since you loaded the schedule_reports index page (or since the export started).

This does NOT automatically sync any items -- for now, admins must manually copy the data over to Guidebook. The scheme in this PR for last_synced should be followed for other integrations when possible (a single key for the datetime, and a key under last_synced['data'] for the json data).

The queries involved in this feature were tested against prod -- accordingly, we're adding the 'track' column to the Events to avoid each event traversing over its applications to build its guidebook data dict.

Finally, due to how images are handled for guests, there's some minor edge-case bugs -- we need to change guest images anyway to be able to accommodate both a header and a thumbnail image, so those can be fixed then. Chiefly, if someone updates their bio pic with the same filename, there is no way for the system to know that they did so.

Now that we collect the guidebook header and thumbnail explicitly for MIVS and MITS, we can simplify these exports
Fixes https://magfest.atlassian.net/browse/MAGDEV-1299 by adding a report page that tracks all guidebook-related items' last updated date vs their last sync date. In order to show exactly what updated, we also store a JSONized blob of the item's current state. Also fixes https://magfest.atlassian.net/browse/MAGDEV-1341 by cleaning up what we offer for export and getting rid of a couple old schedule exports meant for Guidebook.

If you want to skip marking individual items you can also mark all items in a custom list (or the schedule) as synced, which is also automatically done when you export data. This method of syncing skips any items that were uploaded since you loaded the schedule_reports index page (or since the export started).

This does NOT automatically sync any items -- for now, admins must manually copy the data over to Guidebook. The scheme in this PR for last_synced should be followed for other integrations when possible (a single key for the datetime, and a key under last_synced['data'] for the json data).

The queries involved in this feature were tested against prod -- accordingly, we're adding the 'track' column to the Events to avoid each event traversing over its applications to build its guidebook data dict.

Finally, due to how images are handled for guests, there's some minor edge-case bugs -- we need to change guest images anyway to be able to accommodate both a header and a thumbnail image, so those can be fixed then. Chiefly, if someone updates their bio pic with the same filename, there is no way for the system to know that they did so.
@kitsuta kitsuta merged commit d3ad111 into main Nov 28, 2024
3 checks passed
@kitsuta kitsuta deleted the schedule-updates branch November 28, 2024 10:38
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.

1 participant