Skip to content

Permanent Fix for Parallel Organisation Lookup #1657

Description

@pooleycodes

A bug was detected in production when going to a non-existent organisation endpoint, this would crash the service. To fix this fetchOrgInfo was removed from a parallel block to stop a likely race condition with different template returns. This works but a more permanent fix is needed.

  1. Remove the Fallback Policy within FetchOne to redirect halfway through the middleware chain.
  2. Debug why in localhost/dev this error doesn't appear (perhaps due to faster run times), so try to simulate in the test this slowed down.
  3. A test that checks 404 page appears at the end of the middleware chain with no race condition.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status
Done - This Period

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions