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

Validate pretalx frab json exports with VOC schema #1338

Merged
merged 2 commits into from
Feb 12, 2024

Conversation

rixx
Copy link
Member

@rixx rixx commented Jul 25, 2022

Continuing the conversation at #1334: VOC has a JSON schema that we can use to comply against a shared set of expectations, instead of being surprised by frab changes.

Currently waiting for changes in the JSON schema.

@saerdnaer
Copy link
Contributor

Sorry for the delay, the JSON schema now allows UTC as valid time zone name (and regex had another bug, too) – Thanks for pointing me to that issue!

@rixx
Copy link
Member Author

rixx commented Dec 15, 2022

No worries, it's not like it's urgent – thanks for pushing this forward!

It seems the remaining failing check is for room.guid, which the schema expects to be present, but which is currently optional in pretalx, iirc for backwards compatibility reasons. No strong preference what to do here (though adding required room guids to pretalx requires writing three db migrations and I'm lazy …).

@rixx rixx force-pushed the frab-schedule-json-schema branch from 4af6b2b to a2fccc6 Compare May 9, 2023 00:51
@rixx
Copy link
Member Author

rixx commented May 9, 2023

It seems that the VOC schema currently requires room GUIDs, while these are an optional feature in pretalx.

At this point, I'm once again thinking about moving all the frab/VOC exports to a separate plugin, and that plugin could also be responsible for generating room GUIDs where necessary. Maintaining this in pretalx-core is looking increasingly like a maintenance burden due to lack of standardisation etc.

@saerdnaer
Copy link
Contributor

saerdnaer commented May 9, 2023

I would provide an seperate PR which generates the room guid from the pretalx domain name and the internal room id in the database – this should resolve the issues we had with the integration tests with the previous random based room guids.

Other plugins could hook into that, e.g. a future voc- or c3hub-sync-plugin

@rixx
Copy link
Member Author

rixx commented Jun 10, 2023

Sure! I'll consider this PR dormant until then.

@rixx rixx added the stage: blocked Can't be worked on right now label Jun 10, 2023
@rixx rixx force-pushed the frab-schedule-json-schema branch from a2fccc6 to 9110bbe Compare July 28, 2023 00:35
@rixx rixx mentioned this pull request Jul 28, 2023
6 tasks
@saerdnaer
Copy link
Contributor

saerdnaer commented Dec 13, 2023

@rixx When you update the JSON Schema from the origin, this tests should become green now.

@rixx
Copy link
Member Author

rixx commented Jan 29, 2024

You'll probably want to rebase this PR (and fix the merge conflict) to see if tests are passing now.

@Kunsi
Copy link
Contributor

Kunsi commented Feb 10, 2024

This branch is in the official pretalx organization, i cannot rebase this because i lack committer access.

@rixx
Copy link
Member Author

rixx commented Feb 10, 2024

This branch is in the official pretalx organization, i cannot rebase this because i lack committer access.

Ah yeah, I somehow grouped this mentally under all the other VOC PRs (though in any case, I was addressing saerdnaer incorrectly, didn't mean to make you do anything!)

@rixx
Copy link
Member Author

rixx commented Feb 10, 2024

When you update the JSON Schema from the origin, this tests should become green now.

Nope. pretalx is returning a null-value for room GUIDs, whereas your change made the GUID field optional – so jsonschema correctly fails, because None is not a string value, which is intended for room.guid. Still blocked on either merging the room.guid feature branch or pulling all frab compatibility into a separate plugin, depending on what happens first.

@rixx rixx merged commit 79bacfe into main Feb 12, 2024
12 checks passed
@rixx rixx deleted the frab-schedule-json-schema branch February 12, 2024 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage: blocked Can't be worked on right now
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants