Skip to content

Legal API: add FF for filings not yet released #29852

Closed

Description

@severinbeauvais

There are feature flags to control which filings the UI shows as released. The API needs to prevent filings that aren't released yet, using new feature flags.

See list in Analysis comment in parent epic for which filings/features need to be controlled by features flags in Prod.

Todo:

  • declare the list of FFs in BE code
  • check the FF for the subject filing/feature
  • if the FF string doesn't contain the current entity type (eg, CP) then reject the filing
  • return an appropriate HTTP response

Activity

  1. added
    Entities Team
    on Jul 30, 2025
  2. changed the title [-]Legal API: add FF for features not yet released[/-] [+]Legal API: add FF for filings not yet released[/+] on Jul 30, 2025
  3. severinbeauvais commented on Aug 1, 2025

    @severinbeauvais
    CollaboratorAuthor
  4. self-assigned this
    on Aug 15, 2025
  5. severinbeauvais commented on Aug 18, 2025

    @severinbeauvais
    CollaboratorAuthor

    The following FFs have been implemented in LaunchDarkly "lear" project. (These are a copy of the FFs from "entity-ui" project, which control the availability of features in the Entity UIs.)

    Here are the current settings. Note that "On" denotes one FF variation (eg, "all corps") while "Off" denotes a different FF variation (eg, "none").

    image.png

  6. severinbeauvais commented on Sep 3, 2025

    @severinbeauvais
    CollaboratorAuthor

    By the way, it just occurred to me that there's a trade-off to be made:

    • We cannot target users in back end feature flags.
    • We can only target users in UI FFs.
    • Therefore, if we want to enable some features for some users only (eg, amalgamations) then we need to have the BE FFs already open.
    • This would allow API users to use features that we haven't "officially" released yet.

    cc: @OlgaPotiagalova

  7. severinbeauvais commented on Sep 4, 2025

    @severinbeauvais
    CollaboratorAuthor

    ^^ new commit above is to fix FF logic when the FF is "empty" ... without this fix, a lack of FF would not trigger an error -- in other words, with a FF containing "no supported entity types", the feature was still allowed.

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

Metadata

Metadata

Assignees

Labels

Entities Team

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions