This commit is contained in:
tree 2022-02-09 09:59:52 +01:00
rodič 71419900cd
revize f07b7f4289
3 změnil soubory, kde provedl 31 přidání a 1 odebrání

Zobrazit soubor

@ -39,6 +39,10 @@ persons:
name: Dušan Kmetyo
twitter: dusankmetyo
dimi:
name: Dmitrij Malyšev
twitter: dmit_ry
teams:
core:
@ -74,7 +78,7 @@ teams:
sponsorship:
name: Sponzorství
parent: budget
parent: finance
desc: |
Shánění a domlouvání sponzorů.
members:
@ -104,6 +108,15 @@ teams:
- vojtch
lead: tereza
srna:
name: SRNA
parent: catering
desc: |
https://docs.utxo.cz/experimenty/srna
members:
- tree
lead: tree
program:
name: Program
desc: |
@ -168,6 +181,14 @@ teams:
- tree
lead: tree
electronic-stage:
name: Party - Electronic Stage
parent: party
members:
- tree
- dimi
lead: tree
kryptokino:
name: KryptoKino
parent: program

Zobrazit soubor

@ -21,5 +21,8 @@ for (const t of teams.filter((t) => !t.parent)) {
console.log(`[${t.id}] +${members(t)}`);
for (const st of teams.filter((tx) => tx.parent === t.id)) {
console.log(` \\\__ [${st.id}] +${members(st)}`);
for (const st2 of teams.filter((tx2) => tx2.parent === st.id)) {
console.log(` \\\__ [${st2.id}] +${members(st2)}`);
}
}
}

Zobrazit soubor

@ -89,6 +89,12 @@ for (const entryId of utxo.entriesList()) {
const persons = Object.keys(entry.specs.team.persons);
for (const teamId of Object.keys(entry.specs[specId].teams)) {
const team = entry.specs[specId].teams[teamId];
if (
team.parent &&
!Object.keys(entry.specs.team.teams).includes(team.parent)
) {
throw new Error(`Parent not found: ${team.parent}`);
}
if (team.lead && !persons.includes(team.lead)) {
throw new Error(`Lead not found: ${team.lead}`);
}