feat: add council responsibilities and fix PDF framing
Deploy / validate-dispatch (push) Successful in 1s
Deploy / scheduled-rebuild-dev (push) Skipped
Deploy / scheduled-rebuild-master (push) Skipped
Deploy / rollback-dev (push) Skipped
Deploy / rollback-master (push) Skipped
Deploy / changes (push) Successful in 3s
Deploy / app-quality (push) Failing after 36s
Deploy / secret-scan (push) Successful in 5s
Deploy / security-deps (push) Successful in 5s
Deploy / context (push) Successful in 1s
Deploy / app-image (push) Skipped
Deploy / deploy-dev (push) Skipped
Deploy / deploy-master (push) Skipped
Deploy / validate-dispatch (push) Successful in 1s
Deploy / scheduled-rebuild-dev (push) Skipped
Deploy / scheduled-rebuild-master (push) Skipped
Deploy / rollback-dev (push) Skipped
Deploy / rollback-master (push) Skipped
Deploy / changes (push) Successful in 3s
Deploy / app-quality (push) Failing after 36s
Deploy / secret-scan (push) Successful in 5s
Deploy / security-deps (push) Successful in 5s
Deploy / context (push) Successful in 1s
Deploy / app-image (push) Skipped
Deploy / deploy-dev (push) Skipped
Deploy / deploy-master (push) Skipped
This commit is contained in:
@@ -25,6 +25,9 @@ unique(events,"slug","Termin-Slug");unique(news,"slug","News-Slug");unique(pages
|
||||
for(const event of events){if((event.endDate??event.startDate)<event.startDate)throw new Error(`Enddatum vor Startdatum: ${event.slug}`);if(["verified","dynamic"].includes(event.status)&&(!event.sourceUrl||!event.sourceName))throw new Error(`Veröffentlichter Termin ohne Quelle: ${event.slug}`);if(event.location&&/\b\d+[a-z]?\b/i.test(event.location)&&event.privacyApproved!==true)throw new Error(`Adresse ohne privacyApproved: ${event.slug}`);new Intl.DateTimeFormat("de-DE",{weekday:"long",timeZone:"Europe/Berlin"}).format(new Date(`${event.startDate}T12:00:00Z`));}
|
||||
for(const page of pages){if(page.sourceId&&!sourceIds.has(page.sourceId))throw new Error(`Unbekannte Quelle auf ${page.slug}: ${page.sourceId}`);if((page.slug.startsWith("politik/")||page.slug.startsWith("service/"))&&(!page.sourceId||!page.lastVerified))throw new Error(`Verwaltungsinhalt ohne Quelle/Prüfstand: ${page.slug}`);}
|
||||
for(const record of [services.doerpshuus,services.museum,services.everydayHelp,services.mobility,services.mobileLibrary,council]){if(!record.sourceId||!record.lastVerified)throw new Error("Dynamischer Datensatz ohne sourceId/lastVerified");if(!sourceIds.has(record.sourceId))throw new Error(`Unbekannte Quelle: ${record.sourceId}`);if(record.validUntil&&record.validUntil<new Date().toISOString().slice(0,10))throw new Error(`Abgelaufener Datensatz: ${record.sourceId}`);}
|
||||
if(!council.responsibilities?.sourceId||!council.responsibilities?.lastVerified||!sourceIds.has(council.responsibilities.sourceId))throw new Error("Aufgaben der Gemeindevertretung ohne gültige Quelle/Prüfstand");
|
||||
for(const member of council.members){if(!Array.isArray(council.responsibilities.byMember?.[member]))throw new Error(`Aufgaben für Ratsmitglied fehlen: ${member}`);}
|
||||
for(const name of Object.keys(council.responsibilities.byMember??{})){if(!council.members.includes(name))throw new Error(`Aufgaben für nicht bestätigtes Ratsmitglied: ${name}`);}
|
||||
for(const record of [demographics,administration,...projects]){if(record.status!=="needs-verification"&&(!record.sourceId||!record.lastVerified))throw new Error(`Dynamischer Datensatz ohne Quelle/Prüfstand: ${record.id??record.title??"unbekannt"}`);if(record.sourceId&&!sourceIds.has(record.sourceId))throw new Error(`Unbekannte Quelle: ${record.sourceId}`);}
|
||||
if(community.cultureCommittee.status==="needs-verification"&&community.cultureCommittee.privacyApproved!==false)throw new Error("Ungeprüfter privater Kontakt darf nicht freigegeben sein.");
|
||||
const routeSet=new Set(["/","/aktuelles","/termine","/impressum","/datenschutz","/barrierefreiheit",...pages.map((page)=>`/${page.slug}`),...events.map((event)=>`/termine/${event.slug}`),...news.map((item)=>`/aktuelles/${item.slug}`)]);
|
||||
|
||||
Reference in New Issue
Block a user