Skip to content

Legal API, batch job, etc: need "short reason" for limited restoration expiry #25473

Closed

Description

@severinbeauvais

Description

This supersedes the background and comments below. Or see the latest Figma designs.

To do:

  • option 1: in "expired-limited-restoration" job, add reason = "Limited Restoration Expired on March 8, 2024"
    • this will be used by the UI to display the historical reason
  • option 2: in "expired-limited-restoration" job, add reason = "Limited Restoration Expired" and add expiryDate = "2024-03-24"
    • this will be used by the UI to format and display the historical reason

Background

A property needs to be added to the Put Back Off filing to identify the "short reason", in this case, limited restoration expiry.

Sample Put Back Off filing in filings response:

image.png

We cannot use the existing orderDetails because it is too verbose and it is free-form text (ie, will be entered by staff in future PutBackOff filings).

We need a new property, reason (or can be named something else), which is both a fixed value (eg, from an enum) and can be used to directly display in the UI as the reason the business is historical, ie, instead of "Unknown" here:

image.png

Talk to Jacqueline about the exact text to make this "reason". Note that future PutBackOff filings, from the UI, will need to prompt staff for the reason. This should be implemented as a drop-down list so that responses are fixed (not free-form). This reason would also be displayed across from the Historical badge, same as limited restoration expiry.

PS While you're here, could the orderDetails string be updated to remove the reference to "put back off filing"? Talk to Jacqueline about what it should say. See criteria below:


Design Criteria

Criteria

  • When the business has been set as historical due to limited restoration expiry, display text next to the historical badge:
    • "Limited Restoration Expired on March 8, 2024"
    • The date should be the expiry date of the limited restoration

Design


As part of this ticket, you may need to update the Put Back Off schema.

Questions
Where do we get the data?

Activity

  1. added
    Entities Team
    on Jan 23, 2025
  2. severinbeauvais commented on Jan 23, 2025

    @severinbeauvais
    CollaboratorAuthor

    @jacqueline-williams-549 Please provide approved "reason" for PutBackOff due to limited restory expiry. Thanks!

  3. severinbeauvais commented on Jan 30, 2025

    @severinbeauvais
    CollaboratorAuthor

    ALSO THIS!!

    • Change the data.applicationDate in the Put Back Off filing to be the day that the limited restoration expired (eg, "2024-03-08").
    • Limited restorations expire at the end of the day (11:59pm). Change the batch job to find expired limited restorations accordingly. no change needed

    @AimeeGao , what "time" does the batch job use to identify expired limited restorations? I assume it's the beginning of the day, not the end of the day...?

  4. AimeeGao commented on Jan 30, 2025

    @AimeeGao

    ALSO THIS!!

    • Change the data.applicationDate in the Put Back Off filing to be the day that the limited restoration expired (eg, "2024-03-08").[ ] Limited restorations expire at the end of the day (11:59pm). Change the batch job to find expired limited restorations accordingly.

    @AimeeGao , what "time" does the batch job use to identify expired limited restorations? I assume it's the beginning of the day, not the end of the day...?

    Hey, Sev. The batch job runs at 11:59 PM every night to get all expired limited restorations and update their status to historical.

  5. severinbeauvais commented on Jan 30, 2025

    @severinbeauvais
    CollaboratorAuthor

    Thanks, Aimee. That should be fine, right, or do you think it's better to run the job at 00:00 (or later)?

  6. AimeeGao commented on Jan 30, 2025

    @AimeeGao

    Thanks, Aimee. That should be fine, right, or do you think it's better to run the job at 00:00 (or later)?

    We have discussed with Mihai about the execution time of the cron job before and he was fine with running it at 11:59 pm. Do you think we need to re-discuss the runtime of the job with him 👀

  7. severinbeauvais commented on Jan 30, 2025

    @severinbeauvais
    CollaboratorAuthor

    This morning, Mihai and I we discussed that the Limited Restoration expires at 11:59 PM.

    Theoretically, if the job runs at 11:59 then it will pick up Limited Restorations that just expired, right? If yes then no need to change the job schedule.

  8. severinbeauvais commented on Jan 30, 2025

    @severinbeauvais
    CollaboratorAuthor

    @ketaki-deodhar I am assuming that we can change data.applicationDate from "2024-03-08T23:59:00.00000+00:00" to "2024-03-08"...

    If we do that, is there any impact to the Filer or COLIN data? Re: ##25231

  9. AimeeGao commented on Jan 30, 2025

    @AimeeGao

    This morning, Mihai and I we discussed that the Limited Restoration expires at 11:59 PM.

    Theoretically, if the job runs at 11:59 then it will pick up Limited Restorations that just expired, right? If yes then no need to change the job schedule.

    Thanks for confirming. yes, the cron job is currently working this way 👍🏻

  10. ketaki-deodhar commented on Feb 1, 2025

    @ketaki-deodhar
    Collaborator

    From what I understand the date format has to be "2024-03-08T23:59:00.00000+00:00"
    image.png

  11. severinbeauvais commented on Feb 3, 2025

    @severinbeauvais
    CollaboratorAuthor

    @ketaki-deodhar , what about applicationDate? I would like that to be just yyyy-mm-dd but I don't know what impacts that might have elsewhere, like in the Filer...?

  12. self-assigned this
    on Feb 5, 2025
  13. ketaki-deodhar commented on Feb 5, 2025

    @ketaki-deodhar
    Collaborator

    A little bit more explanation:

    @severinbeauvais
    In metadata application date is set as below (see screenshot) and this is for all the filings. There is no check for a type of filing right now.

    Are you thinking of changing the date only for this case? Can be done but needs a bit more work for sure and as it is for all filings now it is bit risky too.

    image.png

    @vysakh-menon-aot please add onto it If I am missing anything.

  14. severinbeauvais commented on Feb 5, 2025

    @severinbeauvais
    CollaboratorAuthor

    It's better if we avoid special cases.

    I agree: don't change Application Date if it affects other filings.

    Option 1: return the new reason property including the formatted date.

    Option 2: add another property expiryDate in yyyy-mm-dd format that the UI can use to display the reason (eg, data.order.reason + "on" + formatDate(date.order.expiryDate).

    @vysakh-menon-aot Thoughts?

  15. vysakh-menon-aot commented on Feb 5, 2025

    @vysakh-menon-aot
    Contributor

    I am ok with either of these options, for Option 2 currently we don't have access to expiryDate of limited restoration in putbackoff filing and i don't have clear picture on how we are planning to implement reason property

  16. severinbeauvais commented on Feb 5, 2025

    @severinbeauvais
    CollaboratorAuthor

    The Put Back Off filing is created by a batch job that looks for expired Limited Restoration businesses. It should have access to Expiry Date (yyyy-mm-dd even though it's 11:59 pm). Also, this is the only place that the new Reason property is added/used (for now).

  17. vysakh-menon-aot commented on Feb 5, 2025

    @vysakh-menon-aot
    Contributor
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

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions