coding-blocks/gondor

[Events] Add is_public and is_open columns to calendar event.

Closed this issue · 6 comments

  1. Write a migration to add is_public and is_open boolean columns to calendar_events table with default value as false.
  2. Update the sequelize model accordingly
  3. Update CalendarEvent graphql type
  4. Update the AuthorizationPolicy to allow update of the columns to organizer and admins and allow read to everyone.
  5. Update CalendarEventCreate and CalendarEventUpdate mutations to support the new columns
  6. 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.
  7. Update the CalendarEventRequest mutation to allow creating an invite request only if is_open is true for the event.
  8. 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.

I will work on this

Can I work on this too?

I am working on this

Can I work on this too?

Yes you can, first PR with best code quality wins

@hereisnaman

  1. Don't we have to update the attributes in API/services/CalendarEvent/Form?
  2. Also for the fragments, attribute is_open and is_public should be added to EventFragment GraphQL?

@coderrsid

  1. That is how you update the createEvent and editEvent modals.
  2. Yes you can add them in the fragment,