Skip to content

Commit 11e1121

Browse files
authored
add tag folder, event, venue, agenda folder, agenda item graphql implementation (#2793)
* update drizzle schema added new table for managing the folders associated to tags replacing the previous implementation of a tag acting as both a tag and a folder updated the graphql operations associated to tags modified the drizzle schema associated to event and venue to better represent the relationships and constraints * add tag folders graphql implementation added graphql implementation for handling read/write operations for a tag folder added graphql implementation for handling read operations for relations between organization, tag and tag folder * add event graphql implementation added graphql implementation for handling read/write operations for an event added graphql implementation for handling read operations for relations between organization and event * add venue graphql implementation added graphql implementation for handling read/write operations for a venue added graphql implementation for handling read operations for relations between organization and venue * add venue booking graphql implementation added graphql implementation for handling read/write operations for a venue booking added graphql implementation for handling read operations for relations between event, venue and venue booking * add agenda folder graphql implementation added graphql implementation for handling read/write operations for an agenda folder added graphql implementation for handling read operations for relations between event and agenda folder * add agenda item graphql implementation added graphql implementation for handling read/write operations for an agenda item added graphql implementation for handling read operations for relations between agenda folder and agenda item
1 parent 3b55f70 commit 11e1121

File tree

142 files changed

+10395
-1407
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+10395
-1407
lines changed

drizzle_migrations/20241220133049_many_onslaught.sql renamed to drizzle_migrations/20241226151206_massive_grey_gargoyle.sql

Lines changed: 50 additions & 78 deletions
Large diffs are not rendered by default.

drizzle_migrations/meta/20241220133049_snapshot.json renamed to drizzle_migrations/meta/20241226151206_snapshot.json

Lines changed: 279 additions & 512 deletions
Large diffs are not rendered by default.

drizzle_migrations/meta/_journal.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
{
66
"idx": 0,
77
"version": "7",
8-
"when": 1734701449017,
9-
"tag": "20241220133049_many_onslaught",
8+
"when": 1735225926844,
9+
"tag": "20241226151206_massive_grey_gargoyle",
1010
"breakpoints": true
1111
}
1212
]

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"@sinclair/typebox": "^0.34.13",
1616
"ajv-formats": "^3.0.1",
1717
"close-with-grace": "^2.1.0",
18-
"drizzle-orm": "^0.38.2",
18+
"drizzle-orm": "^0.38.3",
1919
"drizzle-zod": "0.5.1",
2020
"env-schema": "^6.0.0",
2121
"fastify": "^5.2.0",
@@ -37,7 +37,7 @@
3737
"@vitest/coverage-v8": "^2.1.8",
3838
"drizzle-kit": "^0.30.1",
3939
"gql.tada": "^1.8.10",
40-
"lefthook": "^1.10.0",
40+
"lefthook": "^1.10.1",
4141
"mercurius-integration-testing": "^9.0.0",
4242
"pino-pretty": "^13.0.0",
4343
"tsx": "^4.19.2",

pnpm-lock.yaml

Lines changed: 64 additions & 64 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/drizzle/enums/eventAttendeeRegistrationInviteStatus.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/drizzle/enums/recurrenceType.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/drizzle/schema.ts

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,6 @@
11
// THIS FILE IS ONLY MEANT FOR IMPORTING/EXPORTING MODULES THAT ARE REQUIRED FOR DRIZZLE RELATIONAL QUERY BUILDING AND DRIZZLE DATABASE MIGRATIONS TO WORK.
22
// MAKE SURE TO NOT MISS ANY OF THE MODULES THAT ARE DIRECTLY CONCERNED WITH DRIZZLE DATABASE MIGRATIONS. FAILING TO DO SO WILL RESULT IN INCORRECT DRIZZLE DATABASE MIGRATIONS BEING GENERATED.
33

4-
export { advertisementAttachmentTypeEnum } from "./enums/advertisementAttachmentType";
5-
export { advertisementTypeEnum } from "./enums/advertisementType";
6-
export { agendaItemTypeEnum } from "./enums/agendaItemType";
7-
export { commentVoteTypeEnum } from "./enums/commentVoteType";
8-
export { eventAttachmentTypeEnum } from "./enums/eventAttachmentType";
9-
export { eventAttendeeRegistrationInviteStatusEnum } from "./enums/eventAttendeeRegistrationInviteStatus";
10-
export { familyMembershipRoleEnum } from "./enums/familyMembershipRole";
11-
export { iso3166Alpha2CountryCodeEnum } from "./enums/iso3166Alpha2CountryCode";
12-
export { iso4217CurrencyCodeEnum } from "./enums/iso4217CurrencyCode";
13-
export { organizationMembershipRoleEnum } from "./enums/organizationMembershipRole";
14-
export { postAttachmentTypeEnum } from "./enums/postAttachmentType";
15-
export { postVoteTypeEnum } from "./enums/postVoteType";
16-
export { recurrenceTypeEnum } from "./enums/recurrenceType";
17-
export { userEducationGradeEnum } from "./enums/userEducationGrade";
18-
export { userEmploymentStatusEnum } from "./enums/userEmploymentStatus";
19-
export { userMaritalStatusEnum } from "./enums/userMaritalStatus";
20-
export { userNatalSexEnum } from "./enums/userNatalSex";
21-
export { userRoleEnum } from "./enums/userRole";
22-
export { venueAttachmentTypeEnum } from "./enums/venueAttachmentType";
23-
export { volunteerGroupAssignmentInviteStatusEnum } from "./enums/volunteerGroupAssignmentInviteStatus";
24-
254
export {
265
actionCategoriesTable,
276
actionCategoriesTableRelations,
@@ -40,9 +19,9 @@ export {
4019
agendaItemsTableRelations,
4120
} from "./tables/agendaItems";
4221
export {
43-
agendaSectionsTable,
44-
agendaSectionsTableRelations,
45-
} from "./tables/agendaSections";
22+
agendaFoldersTable,
23+
agendaFoldersTableRelations,
24+
} from "./tables/agendaFolders";
4625
export {
4726
chatMembershipsTable,
4827
chatMembershipsTableRelations,
@@ -94,14 +73,11 @@ export {
9473
} from "./tables/postAttachments";
9574
export { postVotesTable, postVotesTableRelations } from "./tables/postVotes";
9675
export { postsTable, postsTableRelations } from "./tables/posts";
97-
export {
98-
recurrencesTable,
99-
recurrencesTableRelations,
100-
} from "./tables/recurrences";
10176
export {
10277
tagAssignmentsTable,
10378
tagAssignmentsTableRelations,
10479
} from "./tables/tagAssignments";
80+
export { tagFoldersTable, tagFoldersTableRelations } from "./tables/tagFolders";
10581
export { tagsTable, tagsTableRelations } from "./tables/tags";
10682
export { usersTable, usersTableRelations } from "./tables/users";
10783
export {

0 commit comments

Comments
 (0)