Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.

Unify Drupal and go-signs speaker list#62

Merged
sarcasticadmin merged 4 commits intomasterfrom
202602072155
Feb 10, 2026
Merged

Unify Drupal and go-signs speaker list#62
sarcasticadmin merged 4 commits intomasterfrom
202602072155

Conversation

@kylerisse
Copy link
Copy Markdown
Owner

@kylerisse kylerisse commented Feb 8, 2026

Fixes #52

Description of PR

go-signs and drupal json endpoint now have identical data structure and the simulator was cleaned up as a result.

  • constant marshalling and unmarshalling of Speakers from csv string to string slice. Now it's consistent everywhere and matches drupal
  • simulator was storing 2 copies of the schedule to support each data structure, that is all now unified
  • simulator was serving the archive from the filesystem and only contained previous years, now it serves it from bolt and includes all years
  • simulator health check endpoint wasn't really for health, moved to / and now includes the current simulation end date
  • simulator is backward compatible with any unstable version of go-signs post 0.1.0

Tests

  • a lot of manual testing locally including manipulating bolt to trigger simulation resets while live

@kylerisse kylerisse changed the title [WIP] Unify Drupal and go-signs speaker list Unify Drupal and go-signs speaker list Feb 8, 2026
Copy link
Copy Markdown
Collaborator

@sarcasticadmin sarcasticadmin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kylerisse thanks for unifying the speaker list between the two

simulator serves up json as expected for http://127.0.0.1:2018/sign.json:

$ nix build .#scale-simulator
$ ./result/bin/scale-simulator
2026/02/10 21:10:19 Successfully opened database: ./data/simulator.db
2026/02/10 21:10:19 JSON data for 13x already exists, skipping
2026/02/10 21:10:19 JSON data for 14x already exists, skipping
2026/02/10 21:10:19 JSON data for 15x already exists, skipping
2026/02/10 21:10:19 JSON data for 16x already exists, skipping
2026/02/10 21:10:19 JSON data for 17x already exists, skipping
2026/02/10 21:10:19 JSON data for 18x already exists, skipping
2026/02/10 21:10:19 JSON data for 19x already exists, skipping
2026/02/10 21:10:19 JSON data for 20x already exists, skipping
2026/02/10 21:10:19 JSON data for 21x already exists, skipping
2026/02/10 21:10:19 JSON data for 22x already exists, skipping
2026/02/10 21:10:19 JSON data for 23x already exists, skipping
2026/02/10 21:10:19 simulator started with database ./data/simulator.db on port 2018
2026/02/10 21:10:19 Running scheduled simulation check at 2026-02-10 21:10:19
2026/02/10 21:10:19 simulator listening on :2018
2026/02/10 21:10:19 Current date 2026-02-10 is past endDate 2026-01-26, will reset simulation
2026/02/10 21:10:19 Reset simulation bucket with new endDate: 2026-02-14
2026/02/10 21:10:19 Selected 17x as primary conference with date shifting
2026/02/10 21:10:19 Adding 211 nodes from 13x with original dates
2026/02/10 21:10:19 Adding 236 nodes from 14x with original dates
2026/02/10 21:10:19 Adding 220 nodes from 15x with original dates
2026/02/10 21:10:19 Adding 213 nodes from 16x with original dates
2026/02/10 21:10:19 Adding 229 nodes from 17x with original dates
2026/02/10 21:10:19 Adding 166 nodes from 18x with original dates
2026/02/10 21:10:19 Adding 117 nodes from 19x with original dates
2026/02/10 21:10:19 Adding 181 nodes from 20x with original dates
2026/02/10 21:10:19 Adding 242 nodes from 21x with original dates
2026/02/10 21:10:19 Adding 296 nodes from 22x with original dates
2026/02/10 21:10:19 Adding 10 nodes from 23x with original dates
2026/02/10 21:10:19 Merged a total of 2350 nodes from all JSON data sources
2026/02/10 21:10:19 Created mockJSON from 17x with date-shifted sessions plus original sessions from other conferences
2026/02/10 21:10:19 Simulation check completed successfully
2026/02/10 21:10:19 Scheduler started with interval of 5m0s
[GIN] 2026/02/10 - 21:10:43 | 200 |     101.361µs |       127.0.0.1 | GET      "/"
[GIN] 2026/02/10 - 21:10:43 | 404 |     215.164µs |       127.0.0.1 | GET      "/favicon.ico"
[GIN] 2026/02/10 - 21:11:49 | 200 |    3.222895ms |       127.0.0.1 | GET      "/sign.json"
[GIN] 2026/02/10 - 21:11:49 | 404 |      28.794µs |       127.0.0.1 | GET      "/favicon.ico"
^C2026/02/10 21:13:37 Shutdown signal received...
2026/02/10 21:13:37 Shutting down server...
2026/02/10 21:13:37 Scheduler stopping...
2026/02/10 21:13:37 Scheduler stopped successfully
2026/02/10 21:13:37 Server shutdown complete

@sarcasticadmin sarcasticadmin merged commit 658998b into master Feb 10, 2026
1 check passed
@sarcasticadmin sarcasticadmin deleted the 202602072155 branch February 10, 2026 21:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unify Drupal and go-signs data structure

2 participants