New venues option in events, modify
This commit is contained in:
rodič
c7ffec7118
revize
9012857eb8
|
@ -9,9 +9,7 @@ dri = ""
|
|||
poc = "Martin Kuchař"
|
||||
date = "2023-06-08"
|
||||
days = 3
|
||||
venueName = "PVA Expo Letňany"
|
||||
venueAddress = "Beranových 667, 199 00 Praha 9"
|
||||
venueUrl = "https://goo.gl/maps/mvd8QeEfxM98EAVNA"
|
||||
venues = ["pva-expo"]
|
||||
languages = ["english", "czech", "slovak"]
|
||||
attendees = 10000
|
||||
description = '''
|
||||
|
|
|
@ -8,9 +8,7 @@ poc = "JosefJ, Vojta"
|
|||
date = "2023-06-09"
|
||||
days = 3
|
||||
times = "09:00 - 20:00"
|
||||
venueName = "Paralelní Polis & La Fabrika"
|
||||
venueUrl = "https://goo.gl/maps/rVo6JRN59aodx5Pj7"
|
||||
venueAddress = "Dělnická 475/43, 170 00 Praha 7"
|
||||
venues = ["paralelni-polis", "la-fabrika"]
|
||||
languages = ["english"]
|
||||
attendees = 600
|
||||
chains = ["ethereum"]
|
||||
|
|
|
@ -8,9 +8,7 @@ dri = ""
|
|||
poc = "Tomáš Eminger, Tomáš Fanta"
|
||||
date = "2023-06-03"
|
||||
days = 3
|
||||
venueName = "Cubex"
|
||||
venueAddress = "Na Strži 2097/63, 140 00 Praha 4-Nusle"
|
||||
venueUrl = "https://goo.gl/maps/vJTjwNR88ovZqd9n7"
|
||||
venues = ["cubex"]
|
||||
languages = ["english"]
|
||||
attendees = 1000
|
||||
#tags = []
|
||||
|
|
|
@ -8,9 +8,7 @@ dri = ""
|
|||
poc = "[Jiří Čepelka](https://t.me/jiricepelka)"
|
||||
date = "2023-06-06"
|
||||
days = 1
|
||||
venueName = "Divadlo X10"
|
||||
venueAddress = "Charvátova 10/39, Praha 1, 110 00"
|
||||
venueUrl = "https://goo.gl/maps/xpzw6siQFXsJrrWh6"
|
||||
venues = ["x10"]
|
||||
languages = ["english"]
|
||||
attendees = 300
|
||||
#tags = []
|
||||
|
|
|
@ -8,9 +8,7 @@ poc = "Steve Fau, Dan"
|
|||
date = "2023-06-06"
|
||||
days = 3
|
||||
times = ""
|
||||
venueName = "Paralelní Polis & La Fabrika"
|
||||
venueUrl = "https://goo.gl/maps/rVo6JRN59aodx5Pj7"
|
||||
venueAddress = "Dělnická 475/43, 170 00 Praha 7"
|
||||
venues = ["paralelni-polis", "la-fabrika"]
|
||||
languages = ["english"]
|
||||
attendees = 1000
|
||||
#tags = []
|
||||
|
|
|
@ -8,9 +8,7 @@ dri = "burningtree"
|
|||
poc = "[tree](https://t.me/treecz)"
|
||||
date = "2023-06-05"
|
||||
days = 1
|
||||
venueName = "Divadlo X10"
|
||||
venueAddress = "Charvátova 10/39, Praha 1, 110 00"
|
||||
venueUrl = "https://goo.gl/maps/xpzw6siQFXsJrrWh6"
|
||||
venues = ["x10"]
|
||||
languages = ["english"]
|
||||
attendees = 300
|
||||
tags = ["lunarpunk", "privacy", "security"]
|
||||
|
|
|
@ -8,9 +8,7 @@ poc = "[Tereza Starostová](https://t.me/Terezastarostova)"
|
|||
date = "2023-06-02"
|
||||
days = 3
|
||||
times = "10:00 - 19:00"
|
||||
venueName = "Gabriel Loci"
|
||||
venueAddress = "Holečkova 106/10, 150 00 Praha 5-Smíchov"
|
||||
venueUrl = "https://goo.gl/maps/TggARBN8xpoht2uM6"
|
||||
venues = ["gabriel-loci"]
|
||||
languages = ["czech", "slovak"]
|
||||
attendees = 1200
|
||||
#tags = []
|
||||
|
|
|
@ -9,7 +9,6 @@ required:
|
|||
- org
|
||||
- dri
|
||||
- date
|
||||
- venueName
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
|
@ -61,6 +60,11 @@ properties:
|
|||
times:
|
||||
type: string
|
||||
title: Event times
|
||||
venues:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
pattern: "^[a-z0-9-]+$"
|
||||
venueName:
|
||||
type: string
|
||||
title: Venue name
|
||||
|
|
|
@ -27,10 +27,12 @@ function checkCollection(entry, entryInfo, colName) {
|
|||
}
|
||||
});
|
||||
// check specific collections
|
||||
if (colName === "events" && event.data.index.union) {
|
||||
Deno.test(`[${entryInfo} ${colName}=${event.id}] union link`, () => {
|
||||
if (!entry.data.unions.find((u) => u.id === event.data.index.union)) {
|
||||
throw new Error(`Union not exists = ${event.data.index.union}`);
|
||||
if (colName === "events" && event.data.index.venues) {
|
||||
Deno.test(`[${entryInfo} ${colName}=${event.id}] venues link`, () => {
|
||||
for (const placeId of event.data.index.venues) {
|
||||
if (!entry.data.places.find((p) => p.id === placeId)) {
|
||||
throw new Error(`Place not exists = ${placeId}`);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Načítá se…
Odkázat v novém úkolu