Skip to content

Commit

Permalink
Add Nürburgring and fix reorderConfs
Browse files Browse the repository at this point in the history
  • Loading branch information
cgrail committed Aug 6, 2024
1 parent c1c411d commit 6d9ad00
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 17 deletions.
24 changes: 12 additions & 12 deletions conferences/2025/devops.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
[
{
"name": "KubeCon + CloudNativeCon Europe",
"url": "https://events.linuxfoundation.org/kubecon-cloudnativecon-europe-2025/",
"startDate": "2025-04-01",
"endDate": "2025-04-04",
"city": "London",
"country": "U.K.",
"online": true,
"locales": "EN",
"cocUrl": "https://events.linuxfoundation.org/kubecon-cloudnativecon-europe/attend/code-of-conduct/",
"cfpUrl": "https://events.linuxfoundation.org/kubecon-cloudnativecon-europe/program/cfp"
},
{
"name": "JavaLand",
"url": "https://www.javaland.eu",
Expand All @@ -26,6 +14,18 @@
"twitter": "@DOAGeV",
"mastodon": "@JavaLandConf@ijug.social"
},
{
"name": "KubeCon + CloudNativeCon Europe",
"url": "https://events.linuxfoundation.org/kubecon-cloudnativecon-europe-2025/",
"startDate": "2025-04-01",
"endDate": "2025-04-04",
"city": "London",
"country": "U.K.",
"online": true,
"locales": "EN",
"cocUrl": "https://events.linuxfoundation.org/kubecon-cloudnativecon-europe/attend/code-of-conduct/",
"cfpUrl": "https://events.linuxfoundation.org/kubecon-cloudnativecon-europe/program/cfp"
},
{
"name": "QCon London",
"url": "https://qconlondon.com/medialisting2025",
Expand Down
2 changes: 1 addition & 1 deletion scripts/conferences.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ console.log('Running conference tests...');
const label = 'Conference Tests Runtime';
console.time(label);

const mergedConferences = mergedConferencesReader();
const mergedConferences = mergedConferencesReader(false);

const testResult: TestResult = {
errors: {},
Expand Down
1 change: 1 addition & 0 deletions scripts/config/validLocations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ export const validLocations = {
'Mainz',
'Mannheim',
'Munich',
'Nürburgring',
'Nürnberg',
'Ostfildern',
'Potsdam',
Expand Down
2 changes: 1 addition & 1 deletion scripts/reorderConferencesByDate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { uniqWith } from 'lodash';
const BASE_DIR = 'conferences';

const conferencesJSON = conferenceReader(true);
const mergedConferences = mergedConferencesReader();
const mergedConferences = mergedConferencesReader(true);
const generalDuplicateErrors = mergedConferences.duplicateErrors.filter(error => error.type === DuplicateType.NotOnlyGeneral);
const containsGeneralDuplicateErrors = generalDuplicateErrors.length > 0;
const conferencesWithTooManyStacks = mergedConferences.duplicateErrors.filter(error => error.type === DuplicateType.TooManyStacks).map(error => error.conference);
Expand Down
2 changes: 1 addition & 1 deletion scripts/utils/checkConference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const dateFormat: string = 'yyyy-MM-dd';
const dateRegex: RegExp = /(2\d\d\d)-(0[1-9])|(1[012])-(0[1-9])|([12][0-9])|(3[01])/;
const year2000Regex: RegExp = /20\d{2}/;
const REQUIRED_KEYS: string[] = ['name', 'url', 'startDate', 'endDate'];
const validLocationsHint: string = ' - Check/Maintain the file "config/validLocations.js"';
const validLocationsHint: string = ' - Check/Maintain the file "scripts/config/validLocations.ts"';

export default function (year: string, conference: MergedConference, assertField: AssertField) {
const { name, url, cfpUrl, twitter } = conference;
Expand Down
4 changes: 2 additions & 2 deletions scripts/utils/mergedConferencesReader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import { DuplicateError } from './DuplicateError';
import { DuplicateType } from './DuplicateType';
import IsConferenceEqual from './IsConferenceEqual';

export default function mergedConferencesReader() {
const conferencesJSON = conferenceReader(false);
export default function mergedConferencesReader(reorderConferences: boolean) {
const conferencesJSON = conferenceReader(reorderConferences);
const mergedConferences: { [key: string]: MergedConference[] } = {};

const duplicateErrors: DuplicateError[] = [];
Expand Down

0 comments on commit 6d9ad00

Please sign in to comment.