Skip to content

Legal API: should return "some" business info for a bootstrap business #25535

Open

Description

@severinbeauvais
  1. file an IA
  2. see network calls
  3. observe that slim business calls are not returning a valid business object
  4. observe that business state changes (eg, the filing becoming completed) are not recognized or communicated to the user; the user will have to click F5 to refresh the page

image.png

image.png

image.png

Activity

  1. added
    bug
    Entities Team
    on Jan 27, 2025
  2. severinbeauvais commented on Mar 12, 2025

    @severinbeauvais
    CollaboratorAuthor

    This is ready for someone to pick up.

  3. severinbeauvais commented on Mar 12, 2025

    @severinbeauvais
    CollaboratorAuthor

    @vysakh-menon-aot This ticket is one potential solution for the issue in #25845.

    What do you think? Is there any reason we should not update the business endpoint to minimally support T businesses? Is there anything else we could do, in the UI, to determine if a bootstrap filing in the ledger has been updated?

  4. vysakh-menon-aot commented on Mar 19, 2025

    @vysakh-menon-aot
    Contributor

    @thorwolpert Do you have suggestion on this? I do remember we decided not to return temp business on business endpoint

  5. vysakh-menon-aot commented on Mar 19, 2025

    @vysakh-menon-aot
    Contributor

    image.png

  6. vysakh-menon-aot commented on Mar 19, 2025

    @vysakh-menon-aot
    Contributor

    The UI can still use business (slim) endpoint to determine if a bootstrap filing is Completed Thats not correct

  7. severinbeauvais commented on Mar 19, 2025

    @severinbeauvais
    CollaboratorAuthor

    Do you have a example URL ?

  8. vysakh-menon-aot commented on Mar 19, 2025

    @vysakh-menon-aot
    Contributor

    I can suggest a new endpoint (/businesses/<string:identifier>/filing-status/<int:filing_id>), which only provides the minimal response.

    • For bootstrap filings UI call with (/businesses/<temp-identifier>/filing-status) temp identifier. Include identifier once processed
    • (May not be required) For other filings UI call with (/businesses/<identifier>/filing-status/<filing-id>) identifier and filing id
  9. severinbeauvais commented on Mar 19, 2025

    @severinbeauvais
    CollaboratorAuthor

    Ideally, the UI could use the same mechanism to poll for changes, whether it's a bootstrap business or an actual business.

    A new endpoint that provides filing status wouldn't be ideal for the general case because we don't know what filing might change status.

    We really want the ability to identify "any" change to the business as a whole. Looking at filing changes is a good proxy for that.

  10. severinbeauvais commented on Mar 21, 2025

    @severinbeauvais
    CollaboratorAuthor

    @vysakh-menon-aot @thorwolpert What do you think about a new endpoint to return "last modified datetime" for both businesses and bootstrap businesses? Or some other solution that doesn't require the UI to use 2 separate mechanisms to poll for changes?

  11. vysakh-menon-aot commented on Mar 21, 2025

    @vysakh-menon-aot
    Contributor

    We don't have last modified datetime for a filing. So its not possible to provide that with the current model for bootstrap businesses

  12. severinbeauvais commented on Mar 21, 2025

    @severinbeauvais
    CollaboratorAuthor

    Vysakh, I was thinking the Legal API would abstract the fact that the business might be a bootstrap filing and return a "last modified" value in that case also -- the value wouldn't come from the business object; it would come from the bootrstrap filing itself.

    (My gut tells me it's much easier for the API to handle the 2 scenarios (since it's responding to a single call) instead of coding separate polling mechanisms in the UI.)

  13. vysakh-menon-aot commented on Mar 25, 2025

    @vysakh-menon-aot
    Contributor

    I am ok with creating a new endpoint /businesses/<identifier>/status @thorwolpert any objection?

  14. 2 remaining items

  15. thorwolpert commented on Mar 25, 2025

    @thorwolpert
    Collaborator

    I am ok with creating a new endpoint /businesses/<identifier>/status @thorwolpert any objection?

    i think it's a bad idea. It adds more bad techdebt onto a decision that created techdebt.
    The problem as I understand it, as that you go to the business page, before the business is created.
    Our skeuomorphism is based on bank accounts and ledgers, there you don't get to go to the account until it's approved and created.
    If I were re-writing those views into the system today I'd be pushing to fix that, instead of add to it.

  16. severinbeauvais commented on Mar 25, 2025

    @severinbeauvais
    CollaboratorAuthor

    Re-designing our "bootstrap business look-alike page" is not in scope for this ticket, and would require much UI/UX input (and this was their design to start with). cc: @janisrogers @jacqueline-williams-549 @forgeuxGH5

    With upcoming refactors of various UIs, there is an opportunity to redesign what a bootstrap business looks like, but we're not there yet.

    I think this leave us two options: complicate the UI to poll the bootstrap filing itself, or do nothing and leave just-filed bootstrap filings looking like they're pending until the user manually refreshes the page. cc: @OlgaPotiagalova

    Thoughts on how to proceed?

  17. thorwolpert commented on Mar 25, 2025

    @thorwolpert
    Collaborator

    This was a rebuild, and it was added back in. Doubtful another rebuild would have a different outcome

  18. Mihai-QuickSilverDev commented on Mar 26, 2025

    @Mihai-QuickSilverDev
    Collaborator
    • Consolidate the UI polling for bootstrap businesses and actual businsses
    • Move abstraction (bootstrap vs actual) to the LEAR API
    • New endpoint to fetch "last modified" datetime
  19. Mihai-QuickSilverDev commented on Mar 26, 2025

    @Mihai-QuickSilverDev
    Collaborator
    • Wait and see for now.
  20. severinbeauvais commented on Mar 26, 2025

    @severinbeauvais
    CollaboratorAuthor

    This was a rebuild, and it was added back in. Doubtful another rebuild would have a different outcome

    Yes, the Business Dashboard UI is new, but the underlying issue that the UI is async with Pay and Filer was not resolved as it's inherent in the current architecture.

    Making the dashboard "real time" is maybe the ultimate goal, but is out of scope for now.

    The option of a new endpoint is simple and contained and provides a functional solution with little effort. I'm not 100% pushing for this as we could accept to defer a different solution for this issue, or we could accept this workable solution now. Thoughts or other ideas?

  21. severinbeauvais commented on Mar 26, 2025

    @severinbeauvais
    CollaboratorAuthor

    @kzdev420 We took your name off until we agree on an approach.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Entities TeamPriority2bugtechdebt

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions