Skip to content

Commit

Permalink
add tag folder, event, venue, agenda folder, agenda item graphql impl…
Browse files Browse the repository at this point in the history
…ementation (#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
  • Loading branch information
xoldd authored Dec 30, 2024
1 parent 3b55f70 commit 11e1121
Show file tree
Hide file tree
Showing 142 changed files with 10,395 additions and 1,407 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions drizzle_migrations/meta/_journal.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
{
"idx": 0,
"version": "7",
"when": 1734701449017,
"tag": "20241220133049_many_onslaught",
"when": 1735225926844,
"tag": "20241226151206_massive_grey_gargoyle",
"breakpoints": true
}
]
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@sinclair/typebox": "^0.34.13",
"ajv-formats": "^3.0.1",
"close-with-grace": "^2.1.0",
"drizzle-orm": "^0.38.2",
"drizzle-orm": "^0.38.3",
"drizzle-zod": "0.5.1",
"env-schema": "^6.0.0",
"fastify": "^5.2.0",
Expand All @@ -37,7 +37,7 @@
"@vitest/coverage-v8": "^2.1.8",
"drizzle-kit": "^0.30.1",
"gql.tada": "^1.8.10",
"lefthook": "^1.10.0",
"lefthook": "^1.10.1",
"mercurius-integration-testing": "^9.0.0",
"pino-pretty": "^13.0.0",
"tsx": "^4.19.2",
Expand Down
128 changes: 64 additions & 64 deletions pnpm-lock.yaml

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

10 changes: 0 additions & 10 deletions src/drizzle/enums/eventAttendeeRegistrationInviteStatus.ts

This file was deleted.

11 changes: 0 additions & 11 deletions src/drizzle/enums/recurrenceType.ts

This file was deleted.

32 changes: 4 additions & 28 deletions src/drizzle/schema.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,6 @@
// THIS FILE IS ONLY MEANT FOR IMPORTING/EXPORTING MODULES THAT ARE REQUIRED FOR DRIZZLE RELATIONAL QUERY BUILDING AND DRIZZLE DATABASE MIGRATIONS TO WORK.
// 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.

export { advertisementAttachmentTypeEnum } from "./enums/advertisementAttachmentType";
export { advertisementTypeEnum } from "./enums/advertisementType";
export { agendaItemTypeEnum } from "./enums/agendaItemType";
export { commentVoteTypeEnum } from "./enums/commentVoteType";
export { eventAttachmentTypeEnum } from "./enums/eventAttachmentType";
export { eventAttendeeRegistrationInviteStatusEnum } from "./enums/eventAttendeeRegistrationInviteStatus";
export { familyMembershipRoleEnum } from "./enums/familyMembershipRole";
export { iso3166Alpha2CountryCodeEnum } from "./enums/iso3166Alpha2CountryCode";
export { iso4217CurrencyCodeEnum } from "./enums/iso4217CurrencyCode";
export { organizationMembershipRoleEnum } from "./enums/organizationMembershipRole";
export { postAttachmentTypeEnum } from "./enums/postAttachmentType";
export { postVoteTypeEnum } from "./enums/postVoteType";
export { recurrenceTypeEnum } from "./enums/recurrenceType";
export { userEducationGradeEnum } from "./enums/userEducationGrade";
export { userEmploymentStatusEnum } from "./enums/userEmploymentStatus";
export { userMaritalStatusEnum } from "./enums/userMaritalStatus";
export { userNatalSexEnum } from "./enums/userNatalSex";
export { userRoleEnum } from "./enums/userRole";
export { venueAttachmentTypeEnum } from "./enums/venueAttachmentType";
export { volunteerGroupAssignmentInviteStatusEnum } from "./enums/volunteerGroupAssignmentInviteStatus";

export {
actionCategoriesTable,
actionCategoriesTableRelations,
Expand All @@ -40,9 +19,9 @@ export {
agendaItemsTableRelations,
} from "./tables/agendaItems";
export {
agendaSectionsTable,
agendaSectionsTableRelations,
} from "./tables/agendaSections";
agendaFoldersTable,
agendaFoldersTableRelations,
} from "./tables/agendaFolders";
export {
chatMembershipsTable,
chatMembershipsTableRelations,
Expand Down Expand Up @@ -94,14 +73,11 @@ export {
} from "./tables/postAttachments";
export { postVotesTable, postVotesTableRelations } from "./tables/postVotes";
export { postsTable, postsTableRelations } from "./tables/posts";
export {
recurrencesTable,
recurrencesTableRelations,
} from "./tables/recurrences";
export {
tagAssignmentsTable,
tagAssignmentsTableRelations,
} from "./tables/tagAssignments";
export { tagFoldersTable, tagFoldersTableRelations } from "./tables/tagFolders";
export { tagsTable, tagsTableRelations } from "./tables/tags";
export { usersTable, usersTableRelations } from "./tables/users";
export {
Expand Down
Loading

0 comments on commit 11e1121

Please sign in to comment.