Skip to content

Commit

Permalink
Merge pull request #35 from dddwa/feature/tito-to-events-air
Browse files Browse the repository at this point in the history
Feature/tito to events air
  • Loading branch information
JakeGinnivan authored Nov 15, 2024
2 parents 48ace69 + 62dabe8 commit 8ad4ae8
Show file tree
Hide file tree
Showing 16 changed files with 951 additions and 82 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ jobs:
GH_CONTENT_TOKEN: ${{ secrets.GH_CONTENT_TOKEN }}
GOOGLE_FORMS_API_KEY: ${{ secrets.GOOGLE_FORMS_API_KEY }}
GOOGLE_FORMS_FILE_ID: ${{ secrets.GOOGLE_FORMS_FILE_ID }}
EVENTS_AIR_CLIENT_ID: ${{ secrets.EVENTS_AIR_CLIENT_ID }}
EVENTS_AIR_CLIENT_SECRET: ${{ secrets.EVENTS_AIR_CLIENT_SECRET }}
EVENTS_AIR_TENANT_ID: ${{ secrets.EVENTS_AIR_TENANT_ID }}
EVENTS_AIR_EVENT_ID: ${{ secrets.EVENTS_AIR_EVENT_ID }}
TITO_SECURITY_TOKEN: ${{ secrets.TITO_SECURITY_TOKEN }}

steps:
- name: Checkout
Expand Down
47 changes: 47 additions & 0 deletions infra/app/ddd.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ param googleFormsApiKey string
@secure()
param googleFormsFileId string
param exists bool
param eventsAirClientId string
@secure()
param eventsAirClientSecret string
param eventsAirTenantId string
param eventsAirEventId string
@secure()
param titoSecurityToken string

resource identity 'Microsoft.ManagedIdentity/userAssignedIdentities@2023-01-31' = {
name: identityName
Expand Down Expand Up @@ -104,6 +111,26 @@ resource app 'Microsoft.App/containerApps@2024-03-01' = {
name: 'google-forms-file-id'
value: googleFormsFileId
}
{
name: 'events-air-client-id'
value: eventsAirClientId
}
{
name: 'events-air-client-secret'
value: eventsAirClientSecret
}
{
name: 'events-air-tenant-id'
value: eventsAirTenantId
}
{
name: 'events-air-event-id'
value: eventsAirEventId
}
{
name: 'tito-security-token'
value: titoSecurityToken
}
]
}
template: {
Expand Down Expand Up @@ -144,6 +171,26 @@ resource app 'Microsoft.App/containerApps@2024-03-01' = {
name: 'GOOGLE_FORMS_FILE_ID'
secretRef: 'google-forms-file-id'
}
{
name: 'TITO_SECURITY_TOKEN'
secretRef: 'tito-security-token'
}
{
name: 'EVENTS_AIR_CLIENT_ID'
secretRef: 'events-air-client-id'
}
{
name: 'EVENTS_AIR_CLIENT_SECRET'
secretRef: 'events-air-client-secret'
}
{
name: 'EVENTS_AIR_TENANT_ID'
secretRef: 'events-air-tenant-id'
}
{
name: 'EVENTS_AIR_EVENT_ID'
secretRef: 'events-air-event-id'
}
]

resources: {
Expand Down
14 changes: 14 additions & 0 deletions infra/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ param domainName string
@minLength(1)
param certificateId string

param eventsAirClientId string
@secure()
param eventsAirClientSecret string
param eventsAirTenantId string
param eventsAirEventId string
@secure()
param titoSecurityToken string


// Tags that should be applied to all resources.
//
// Note that 'azd-service-name' tags should be applied separately to service host resources.
Expand Down Expand Up @@ -125,6 +134,11 @@ module ddd './app/ddd.bicep' = {
googleFormsFileId: googleFormsFileId
domainName: domainName
certificateId: certificateId
eventsAirClientId: eventsAirClientId
eventsAirClientSecret: eventsAirClientSecret
eventsAirTenantId: eventsAirTenantId
eventsAirEventId: eventsAirEventId
titoSecurityToken: titoSecurityToken
}
scope: rg
}
Expand Down
15 changes: 15 additions & 0 deletions infra/main.parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,21 @@
},
"certificateId": {
"value": "/subscriptions/dd079971-2023-4b56-be3a-85a346d51344/resourceGroups/dddper-rg-prd/providers/Microsoft.App/managedEnvironments/dddper-cae-ivoki745ew4qo/certificates/cloudflare"
},
"eventsAirClientId": {
"value": "${EVENTS_AIR_CLIENT_ID}"
},
"eventsAirClientSecret": {
"value": "${EVENTS_AIR_CLIENT_SECRET}"
},
"eventsAirTenantId": {
"value": "${EVENTS_AIR_TENANT_ID}"
},
"eventsAirEventId": {
"value": "${EVENTS_AIR_EVENT_ID}"
},
"titoSecurityToken": {
"value": "${TITO_SECURITY_TOKEN}"
}
}
}
17 changes: 17 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions website/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@ USE_GITHUB_CONTENT=false
GITHUB_REPO=ddd-2024
GITHUB_ORGANIZATION=dddwa
SESSION_SECRET=shhh
EVENTS_AIR_CLIENT_ID=
EVENTS_AIR_CLIENT_SECRET=
EVENTS_AIR_TENANT_ID=
EVENTS_AIR_EVENT_ID=
TITO_SECURITY_TOKEN=
54 changes: 54 additions & 0 deletions website/app/config/years/2024.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,24 @@ export const conference2024: ConferenceYear = {
feedbackOpenUntilDateTime: DateTime.fromISO('2024-11-21T23:59:59', {
zone: 'Australia/Perth',
}),

ticketInfo: {
type: 'tito',
accountId: 'dddperth',
eventId: '2024',

generalTicketSlugs: [
'general-attendee',
'dqvd7i58iig',
'general-attendee-company',
'general-attendee-free',
'lyfer',
'volunteer',
'speaker',
'sponsor',
],
afterPartyTicketSlugs: ['after-party', 'el5pexoj6m8'],
afterPartyUpgradeActivityId: '1071952',
},

sponsors: {
Expand Down Expand Up @@ -263,4 +277,44 @@ Computing, software and big data will be critical in the success of this mega sc
},
],
},

foodInfo: {
lunch: [
{
meal: 'Vegetable Korma, potato, cauliflower, carrots, peas, steamed basmati rice (V DF, contains coconut milk)',
shortCode: 'VK',
foodZone: '1',
},
{
meal: 'Slow cooked beef cheek in red wine sauce with creamy mashed potato (GF)',
shortCode: 'BR',
foodZone: '1',
},
{
meal: 'Roast pork belly with pineapple jus, cheesy roast potatoes and mustard spring beans (GF)',
shortCode: 'PB',
foodZone: '2',
},
{
meal: 'Classic Caesar salad, cos lettuce, parmesan cheese, egg, bacon, Caesar dressing',
shortCode: 'CS',
foodZone: '3',
},
{
meal: 'Cashew butter chicken with basmati rice, yoghurt, and coriander (GF)',
shortCode: 'BC',
foodZone: '3',
},
{
meal: 'Beef cheese and bacon burger served with chips',
shortCode: 'BU',
foodZone: '4',
},
{
meal: 'Caribbean chicken salad with honey lime dressing (DF)',
shortCode: 'CC',
foodZone: '4',
},
],
},
}
1 change: 0 additions & 1 deletion website/app/lib/conference-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export function getCurrentConferenceState(
(year): year is [Year, ConferenceYear] => !('cancelledMessage' in year[1]),
)
const [latestConference, previousConference] = conferenceList

.sort(([, a], [, b]) => {
const dateA = a.conferenceDate?.valueOf() ?? Infinity
const dateB = b.conferenceDate?.valueOf() ?? Infinity
Expand Down
12 changes: 12 additions & 0 deletions website/app/lib/config-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ export interface TitoTicketInfo {
type: 'tito'
accountId: string
eventId: string

generalTicketSlugs?: string[]
afterPartyTicketSlugs?: string[]
afterPartyUpgradeActivityId?: string
}

export type TicketInfo = TitoTicketInfo
Expand Down Expand Up @@ -69,6 +73,14 @@ export interface ConferenceYear {
sessions: SessionizeConferenceSessions | SessionData | undefined

sponsors: YearSponsors

foodInfo?: {
lunch: Array<{
meal: string
foodZone: string
shortCode: string
}>
}
}

export interface YearSponsors {
Expand Down
10 changes: 10 additions & 0 deletions website/app/lib/config.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ export const {
GITHUB_REF,
GITHUB_REPO,
GITHUB_TOKEN,
TITO_SECURITY_TOKEN,
EVENTS_AIR_CLIENT_ID,
EVENTS_AIR_CLIENT_SECRET,
EVENTS_AIR_TENANT_ID,
EVENTS_AIR_EVENT_ID,
} = z
.object({
NODE_ENV: z.string(),
Expand All @@ -32,5 +37,10 @@ export const {
GITHUB_TOKEN: z.string().optional(),
GITHUB_ORGANIZATION: z.string(),
GITHUB_REPO: z.string(),
TITO_SECURITY_TOKEN: z.string().optional(),
EVENTS_AIR_CLIENT_ID: z.string().optional(),
EVENTS_AIR_CLIENT_SECRET: z.string().optional(),
EVENTS_AIR_TENANT_ID: z.string().optional(),
EVENTS_AIR_EVENT_ID: z.string().optional(),
})
.parse(process.env)
Loading

0 comments on commit 8ad4ae8

Please sign in to comment.