-
-
Notifications
You must be signed in to change notification settings - Fork 359
[WIP] fix(db, api): update database model & API schemas #253
Conversation
So here are the architectural updates we will make:
cc @timmyichen @Zeko369 Is it fine? |
Remove typeORM from here, this should be DB schema only |
@timmyichen we can create a |
👍 makes sense to me, just be sure to add a column for the
|
We can try using enums, but strings might be simpler and easier when it comes to migrations, not sure what you meant by |
@timmyichen Admin as a user role isn't related to any chapter Tim. Let's discuss the API endpoints we should create. |
@timmyichen Should we consider this:
Wouldn't the 2nd one be redundant as we already have chapters/chapterId/events/eventId? My point is in the |
I think the only routes that are actually necessary are:
Anything else (like Regarding Chapter roles, I think an Admin user role is still necessary for deletion perms. You wouldn't want any organizer to also have the ability to delete/edit your Chapter (that power should be given to the creator by default only); organizers should only be able to manage events for the Chapter. Let me know your thoughts on this. |
Agree, for now I think that c/e/:eID is enough |
|
Do we though? They're namespaced to chapters or am I wrong? |
@Zeko369 They are namespaced to chapters. So in the events page we will loop over all the chapterIds and their respective event(s)? |
@vkWeb That can be done via a route like |
We could then have |
@timmyichen Agreed. So For that we have chapters/... route. |
Perfect! |
@vkWeb can you please update the PR with necessary changes as suggested in comments |
@vkWeb commented on Discord last week that he'd be unavailable for awhile. It may be best to reassign this one. |
@vaibhavsingh97 as @allella mentioned I'll be inactive for a while :( I have marked this PR ready for review so you all can push changes and merge them at your pace. @ceciliaconsta3 would you like to tackle this? |
@Zeko369 @timmyichen @ceciliaconsta3 would you all be okay with reviewing and approving the earlier commits and then opening more specific PRs for the user_roles and API endpoint parts of this conversation. This has been open for awhile and I could see it sitting and becoming a blocker if we expand the scope to include user roles and API endpoints. I've reviewed the ddl.sql and the event_tags and tag schema changes look like a good start to me. I'm not sure what the Swagger documentation is supposed to look like, so I can't comment on that one. |
@nik-john could you look at the Swagger file on this PR and see if it needs anything. I'm thinking we commit the event tags and move the API routes and user roles comments to new or existing issues so we can close this and not have it lingering. I've reviewed the schema changes and it looks simple enough to merge. |
@nik-john Could you look at the changes to the Swagger file real quick before we merge this? |
Update README.md
).master
branch of Chapter.This is not ready for review. It's a work in progress. I am updating the database & API schemas to reflect the recent decisions we made:
Closes #254.