You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Legal API: provide "last changed timestamp" for UI polling #24195
This ticket requests a fast/light API endpoint that the UI will poll to see if any business data (eg, tasks, filings or business state) has changed. The endpoint only needs to return a timestamp. The UI will retain the previous timestamp for comparison and to determine if it needs to refresh itself.
@mstanton1 This ticket describes one possible design for keeping the dashboard up to date. (See also UI ticket #23968.) However, if your team has a better design for this then you're welcome to implement that (and please keep Entities Team in the loop). Thanks.
Given the entities dashboard currently functions without this, and we have a tight timeline for launch, this will need to be tackled post MVP. My team will review further but is concerned with polling as an approach so will look into web sockets or GRPC. We will dive into this further in an upcoming grooming session and circle back with a solution before build.
A new endpoint that reports the latest change on a business was not implemented. Instead, a simpler solution was implemented on an existing endpoint that handles probably 95% of the cases -- see comments in #24950 explaining this.
UI will use the current business endpoint with argument ?slim=true which will provide the lastModified date. The lastModified date get updated every time a filing is processed by entity-filer
Activity
severinbeauvais commentedon Nov 5, 2024
FYI, @hfekete
vikas-gov commentedon Nov 7, 2024
@OlgaPotiagalova to review with Melissa (btr)
severinbeauvais commentedon Nov 13, 2024
@mstanton1 This ticket describes one possible design for keeping the dashboard up to date. (See also UI ticket #23968.) However, if your team has a better design for this then you're welcome to implement that (and please keep Entities Team in the loop). Thanks.
mstanton1 commentedon Nov 13, 2024
Given the entities dashboard currently functions without this, and we have a tight timeline for launch, this will need to be tackled post MVP. My team will review further but is concerned with polling as an approach so will look into web sockets or GRPC. We will dive into this further in an upcoming grooming session and circle back with a solution before build.
severinbeauvais commentedon Nov 13, 2024
Yes, the entity dashboard currently functions, but we have several tickets identifying problems such as:
The above should inform the priority of this fix. @OlgaPotiagalova @mstanton1
PS - I support looking into alternatives to polling!
severinbeauvais commentedon Nov 14, 2024
FYI, we're already using websockets between Filings UI and Legal API:
https://github.com/bcgov/business-filings-ui/blob/main/src/components/DigitalCredentials/CredentialsWebSocket.vue
mstanton1 commentedon Dec 12, 2024
@OlgaPotiagalova our team has completed review and will not have capacity to perform this by launch. Comments are in #23968.
severinbeauvais commentedon Jan 2, 2025
@vysakh-menon-aot Should this ticket be in Review or QA pipeline?
severinbeauvais commentedon Jan 2, 2025
A new endpoint that reports the latest change on a business was not implemented. Instead, a simpler solution was implemented on an existing endpoint that handles probably 95% of the cases -- see comments in #24950 explaining this.
Therefore, this ticket remains "not worked on".
vysakh-menon-aot commentedon Jan 2, 2025
UI will use the current business endpoint with argument
?slim=truewhich will provide thelastModifieddate. ThelastModifieddate get updated every time a filing is processed by entity-filerseverinbeauvais commentedon Jan 7, 2025
This was blocked on design at one point, but is not currently blocked, so I've removed the label.