[Events] Add is_public and is_open columns to calendar event.
Closed this issue · 6 comments
thenamankumar commented
- Write a migration to add
is_public
andis_open
boolean columns tocalendar_events
table with default value asfalse
. - Update the sequelize model accordingly
- Update CalendarEvent graphql type
- Update the AuthorizationPolicy to allow update of the columns to organizer and admins and allow read to everyone.
- Update CalendarEventCreate and CalendarEventUpdate mutations to support the new columns
- Integrate the new columns in the create, view and edit event modals. In the create and edit modals have them as checkbox fields at the bottom named 'Public' and 'Open'. In the view modal have them as Badges of primary color at the bottom.
- Update the CalendarEventRequest mutation to allow creating an invite request only if
is_open
is true for the event. - In the view event modal show request invite button only when
is_open
for the event is true.
Please maintain the code quality and naming conventions.
joeedwin commented
I will work on this
prabalsingh24 commented
Can I work on this too?
joeedwin commented
I am working on this
thenamankumar commented
Can I work on this too?
Yes you can, first PR with best code quality wins
coderrsid commented
@hereisnaman
- Don't we have to update the attributes in API/services/CalendarEvent/Form?
- Also for the fragments, attribute is_open and is_public should be added to EventFragment GraphQL?
thenamankumar commented
- That is how you update the createEvent and editEvent modals.
- Yes you can add them in the fragment,