Draft: Add conference metadata + orgs - #934
Conversation
84f106f to
03a11e2
Compare
03a11e2 to
ffe9bdd
Compare
| object.get_recording_url | ||
| end | ||
|
|
||
| def size(unit:) |
There was a problem hiding this comment.
What I don't quite understand: Why does this need to be a custom function anyway? Why not always return bytes?
There was a problem hiding this comment.
It's not a necessary feature – just a 'nice to have'-one.
| @@ -0,0 +1,18 @@ | |||
| module Types | |||
| class SlugType < GraphQL::Types::String | |||
| description "A URL slug (no forward slashes)" | |||
There was a problem hiding this comment.
As per RFC1738 (page 18) HTTP URLs are defined as such:
httpurl = "http://" hostport [ "/" hpath [ "?" search ]]
hpath = hsegment *[ "/" hsegment ]
hsegment = *[ uchar | ";" | ":" | "@" | "&" | "=" ]
Therefore this would be a "URL Path Segment" or hsegment, which is defined with the following BNF:
hsegment = *[ uchar | ";" | ":" | "@" | "&" | "=" ]
uchar = unreserved | escape
unreserved = alpha | digit | safe | extra
escape = "%" hex hex
alpha = lowalpha | hialpha
digit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" |
"8" | "9"
safe = "$" | "-" | "_" | "." | "+"
extra = "!" | "*" | "'" | "(" | ")" | ","
hex = digit | "A" | "B" | "C" | "D" | "E" | "F" |
"a" | "b" | "c" | "d" | "e" | "f"
lowalpha = "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" |
"i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" |
"q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" |
"y" | "z"
hialpha = "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" |
"J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" |
"S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z"
| """ | ||
| An ISO 639-2 (alpha-3) language code (e.g. 'eng', 'deu') | ||
| """ | ||
| enum LanguageAlpha3 { |
There was a problem hiding this comment.
As language codes are changing and non-standard language codes get standardized, it'd make sense to avoid defining the enum in our schema.
This list is already missing semi-standard language codes such as Plattdüütsch (nds) or Klingon (tlh). It's just a matter of time until someone submits a talk in a minority language
2297116 to
db0b674
Compare
Add conference_type (select from TYPES constant), starts_at/ends_at (datetime, matching schedule2 date-time format), and languages (PG string array, collection configurable via Settings.languages in settings.yml). Wire organizers (Organisation HABTM) into conference admin form, show, and permitted params. Assisted-by: Claude Sonnet 4.6 <https://claude.ai>
New Organisation entity (table: organisations) with name, url, description, inception_date, wikidata_id. Joined to Conference via conferences_organizers (exposed as conference.organizers). Assisted-by: Claude Sonnet 4.6 <https://claude.ai>
db0b674 to
e249f99
Compare
No description provided.