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

Request for spec: track vs. type #131

Open
johnjohndoe opened this issue Jan 11, 2024 · 2 comments
Open

Request for spec: track vs. type #131

johnjohndoe opened this issue Jan 11, 2024 · 2 comments

Comments

@johnjohndoe
Copy link
Collaborator

johnjohndoe commented Jan 11, 2024

ℹ️ This topic was initially been posted here. In order to give everyone interested in the topic access to comment it was decided to continue the discussion here. This repository is more appropriate for more general topics related to the schedule data specification.


Context

Both the schedule.xml and schedule.json contain track and type nodes resp. properties for an event.
The values of these properties are very similar - describing which category an event belongs to.

Android

In lack of a specification for these properties their values are merged in the 37C3 Fahrplan app, while giving track priority.

Request for specification

I would like to find out about the original purpose of these properties in Pentabarf, Frab, Pretalx.


@saerdnaer , @toto, @manno, @rixx - please be welcome copy/paste your former responses here. That would be great.

@saerdnaer
Copy link
Member

saerdnaer commented Jan 14, 2024

  • track specifies the topic category of the event and is typically dropdown based on the conference configuration, now also exposed in the conference header in the schedule.xml/.json – eg. for 37C3:
<track name="Sustainability & Climate Justice" color="#0084b0" slug="sustainability"/>
<track name="Hardware & Making" color="#44357e" slug="hardware-making"/>
<track name="Art & Beauty" color="#f9b000" slug="art-beauty"/>
<track name="Ethics, Politics & Society" color="#e40429" slug="ethics-politics-society"/>
<track name="CCC" color="#ffa500" slug="ccc"/>
<track name="Entertainment" color="#4d4d4c" slug="entertainment"/>
<track name="Science" color="#00a356" slug="science"/>
<track name="Security" color="#18386b" slug="security"/>
  • type the kind of the event itself, e.g. in frab:

https://github.com/frab/frab/blob/7ddfe97fe8ca2466eba6277f9385808013e0ba30/app/models/event.rb#L10

  TYPES = %w(lecture workshop podium lightning_talk meeting film concert djset performance other).freeze

We could add these to the schedule.xsd as examples like in the json schema:

"type": {
"type": "string",
"examples": [
"talk",
"workshop",
"hands-on",
"meeting",
"discussion",
"game",
"other"
]
},

but first we should probably harmonise the values... there the repo also contains already an method for that:
https://github.com/voc/schedule/blob/master/voc/tools.py#L280-L329

@rixx
Copy link

rixx commented Jan 25, 2024

but first we should probably harmonise the values

fwiw, in pretalx, event types are user generated, as such, harmonising the data will always be event-dependent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants