Skip to content

Error message after saving branch [racing condition problem] #157

@pameck

Description

@pameck

Error Description:

After a branch is created, the following message is displayed:

screen shot 2017-04-12 at 9 15 13 am

In the dev console, there is this:

screen shot 2017-04-12 at 9 15 41 am

To replicate:

  1. Go to the admin dashboard
  2. Create a new branch
  3. See error.

Possible cause:

When a new branch is created, there are two subsequent requests:

GET /branches/{id}/groups
GET /branches/{id}/members

The problem is that we're adding the new branch to the core's store after it has gone through the event pipe, lambdas and back to core, but the requests from the UI get to the core before the new branch is added to the store which is why those two requests get a 404 error.

The following diagram is for reference about the branch creation flow:

branches-with-events 1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions