Skip to content
This repository was archived by the owner on Sep 25, 2025. It is now read-only.
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

Closed

Description

@Ravichandra-C

Describe the bug:

Events are always created for only one chapter.

User should be able to select the chapter while creating an Event.

Activity

  1. allella commented on Oct 19, 2021

    @allella
    Contributor

    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.

  2. allella commented on Oct 19, 2021

    @allella
    Contributor

    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.

  3. Ravichandra-C commented on Oct 23, 2021

    @Ravichandra-C
    ContributorAuthor

    @allella ,I've a few questions.

    1. 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?

    2. 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?

  4. allella commented on Oct 23, 2021

    @allella
    Contributor

    @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.

  5. gikf commented on May 15, 2022

    @gikf
    Member

    As of #927 new events are created from chapter dashboard, using chapter id from url.

  6. ojeytonwilliams commented on Jul 13, 2022

    @ojeytonwilliams
    Contributor

    Closing in favour of #1215 which better reflects the current state of the app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions