Skip to content

Remove individual role links and add team link #7255

Open
@iamareebjamal

Description

@iamareebjamal

There are /events/organizer /events/coorganizer /events/moderator like APIs and even if they may be needed, they can be derived from a /events/team and a filter query

What's even worse that there are APIs like /users/:id/organizer-event /users/:id/coorganizer-event /users/:id/moderator-event and instead of getting all managed events using one link, the users page in frontend loads all six relationships one at a time for every user. This is atrociously bad and increased the response time, hangs up the UI and also increases the load on the server for no reason.

  • Simplify the endpoints into one and use them in frontend
  • Remove usages of individual role APIs from frontend
  • Remove the API from server

Related changes were made here: #6263 #6264 fossasia/open-event-frontend#2138 fossasia/open-event-frontend#2139

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions