You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the availability/[slug] page, load the dates of a meeting from the JSON column according to the new schema.
Dependent on #155. This ticket will be ready to start once it gets merged.
Personal Availability
If a user is logged in, load their availabilities.
Group Availability
Write a function in src/server/data/availability/queries.ts to query all member availabilities from a meeting.
Deliverables
Modify the Page server component in page.tsx with the updated fetches. No need to update any front-end even though it breaks.
A console.log of personal availability of the logged in user (null if not logged in)
A console.log of group availability of all users
Resources
src/lib/auth/index.ts has an exported function for user session / auth.
src/server/data/meeting/queries.ts has basic functionality of fetching meeting dates. src/server/data/availability/queries.ts has basic functionality of fetching the availability of a user.
src/app/availability/[slug]/page.tsx contains the fetch calls from the old database utils. Change this to the two functions exported from above.
You may have to use Drizzle Studio pnpm db:studio to manually add rows in tables.
The text was updated successfully, but these errors were encountered:
Summary
On the
availability/[slug]
page, load the dates of a meeting from the JSON column according to the new schema.Dependent on #155. This ticket will be ready to start once it gets merged.
Personal Availability
If a user is logged in, load their availabilities.
Group Availability
Write a function in
src/server/data/availability/queries.ts
to query all member availabilities from a meeting.Deliverables
Modify the
Page
server component inpage.tsx
with the updated fetches. No need to update any front-end even though it breaks.console.log
of personal availability of the logged in user (null
if not logged in)console.log
of group availability of all usersResources
src/lib/auth/index.ts
has an exported function for user session / auth.src/server/data/meeting/queries.ts
has basic functionality of fetching meeting dates.src/server/data/availability/queries.ts
has basic functionality of fetching the availability of a user.src/app/availability/[slug]/page.tsx
contains the fetch calls from the old database utils. Change this to the two functions exported from above.You may have to use Drizzle Studio
pnpm db:studio
to manually add rows in tables.The text was updated successfully, but these errors were encountered: