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
{{ message }}
This repository was archived by the owner on Sep 25, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 25, 2025. It is now read-only.
User Should be able to select a chapter while creating the event #743
Using the following terminology, here's how permissions are likely to work within a single instance of Chapter.
The notable roles are owner , administrator , and organizer
The owner will be the "root" user and the first account created in the system. The owner may then define 1 or more administrators .
For example, when the freeCodeCamp organization creates an instance of the Chapter project they may have Oliver as the owner .
Oliver may then define administrators for each continent or region (or however they see fit).
The administrators would be able to manage all chapters , and the events for each chapter , within their region. They would likely setup organizers to help manage their local chapter and its events .
The permissions for an organizer within an instance of Chapter will depend on which chapters the administrator has granted them access to manage.
An organizer may be able to add or edit events for 1 or more chapters based on their roles as defined in the user_chapter_roles table.
For instance, if each freeCodeCamp city only had 1 organizer , then each organizer would only be able to add and edit events for their local chapter .
Other organizations may decide to have multiple organizers for a single chapter .
Or, there may be organizations which have an organizer that manages multiple chapters within an instance .
With the above in mind, we may not need a drop-down box. Instead, we might expect an organizer or administrator to navigate to the landing page for a local / specific chapter and click an "Add New Event" button for that chapter.
At present we can only add events from dashboard/events. . Organizer is presented a form to enter the event details. What would be the best way for Organizer to provide the chapter in this form?
we don't have add event button on the /chapters/[id] page. Should we add a button on the Chapter/[id] page and on click should we navigate to dashboard/events/new and in that form chapter would already filled by default?
Many organizers may only be responsible for their local chapter, so we may not need to allow them to select a chapter at this point.
The dashboard is a more likely interface for the administrator of the instance, though we may provide organizers with a subset of the dashboard functionality at some point.
For now, I'd suggest doing what you suggested in the the second question and add a "Add New Event" button to the /chapters/[id] for the organizer. Then, you can send them to the dashboard/events/new and set the events.chapter_id based on the chapter [id] value of page they came from.
Eventually we'll have permissions to further restrict organizers so they can only see the "Add New Event" button for chapters they have been granted access to manage.
Activity
allella commentedon Oct 19, 2021
Using the following terminology, here's how permissions are likely to work within a single instance of Chapter.
The notable roles are owner , administrator , and organizer
The owner will be the "root" user and the first account created in the system. The owner may then define 1 or more administrators .
For example, when the freeCodeCamp organization creates an instance of the Chapter project they may have Oliver as the owner .
Oliver may then define administrators for each continent or region (or however they see fit).
The administrators would be able to manage all chapters , and the events for each chapter , within their region. They would likely setup organizers to help manage their local chapter and its events .
The permissions for an organizer within an instance of Chapter will depend on which chapters the administrator has granted them access to manage.
An organizer may be able to add or edit events for 1 or more chapters based on their roles as defined in the user_chapter_roles table.
For instance, if each freeCodeCamp city only had 1 organizer , then each organizer would only be able to add and edit events for their local chapter .
Other organizations may decide to have multiple organizers for a single chapter .
Or, there may be organizations which have an organizer that manages multiple chapters within an instance .
This was also posted in the chat.
allella commentedon Oct 19, 2021
With the above in mind, we may not need a drop-down box. Instead, we might expect an organizer or administrator to navigate to the landing page for a local / specific chapter and click an "Add New Event" button for that chapter.
Ravichandra-C commentedon Oct 23, 2021
@allella ,I've a few questions.
At present we can only add events from dashboard/events. . Organizer is presented a form to enter the event details. What would be the best way for Organizer to provide the chapter in this form?
we don't have add event button on the /chapters/[id] page. Should we add a button on the Chapter/[id] page and on click should we navigate to dashboard/events/new and in that form chapter would already filled by default?
allella commentedon Oct 23, 2021
@Ravichandra-C
Many organizers may only be responsible for their local chapter, so we may not need to allow them to select a chapter at this point.
The dashboard is a more likely interface for the administrator of the instance, though we may provide organizers with a subset of the dashboard functionality at some point.
For now, I'd suggest doing what you suggested in the the second question and add a "Add New Event" button to the /chapters/[id] for the organizer. Then, you can send them to the dashboard/events/new and set the events.chapter_id based on the chapter [id] value of page they came from.
Eventually we'll have permissions to further restrict organizers so they can only see the "Add New Event" button for chapters they have been granted access to manage.
gikf commentedon May 15, 2022
As of #927 new events are created from chapter dashboard, using chapter id from url.
ojeytonwilliams commentedon Jul 13, 2022
Closing in favour of #1215 which better reflects the current state of the app.