sphinx-tribes icon indicating copy to clipboard operation
sphinx-tribes copied to clipboard

Implement Feature Flag Middleware

Open tobi-bams opened this issue 1 year ago • 4 comments

Breakdown of feature flag system in: https://github.com/stakwork/sphinx-tribes/issues/2235

Implement Middleware

  • Description:
    • Develop middleware to intercept requests and validate feature flag statuses.
  • Deliverables:
    • Middleware logic to:
      • Extract the request path.
      • Check if the path is mapped to a feature flag.
      • Query the database to validate the flag’s enabled status.
      • Return a 403 error if the feature is disabled and an error message of This feature is currently unavailable.
    • Unit tests for middleware.

tobi-bams avatar Dec 19 '24 13:12 tobi-bams

@tobi-bams @humansinstitute please assign me

Ekep-Obasi avatar Dec 19 '24 13:12 Ekep-Obasi

@humansinstitute @tobi-bams assign me?

saithsab877 avatar Dec 19 '24 13:12 saithsab877

@tobi-bams I can help?

AbuBakar877 avatar Dec 19 '24 13:12 AbuBakar877

@tobi-bams @humansinstitute assign me?

MahtabBukhari avatar Dec 19 '24 13:12 MahtabBukhari