Skip to content

Fix Metadata page date field issues.  #837

Description

@aemandreahall

File Specification Number and Name

None

What Happened?

There are issues with the date field on the metadata page.

  1. Improve the response time for selecting a Year from the dropdown list when the page is initially accessed.

Existing behavior: when you first access the page, the dropdown takes close to a minute to fill with 2025 (the default).
Expected behavior: when you first access the page, the system should immediately allow the user to select the year without having to wait. The functionality should mimic the EDFacts report page, e.g., the year field should not have a default and should only allow the Update Metadata button to function after a year has been selected.

  1. The Year field should display the year for which the update was run until the update has completed.

Existing behavior: if you select a year and kick off the update then leave the page and return, the school year field is blank for a few seconds, then defaults to 2025, regardless of what year is being run.
Expected behavior: if you select a year and kick off the update, then leave the page, then return to it, the metadata year currently being processed should display in the year field. The year field should remain unchangeable until the metadata update has completed.

CIID-7934

Steps to Reproduce

Issue 1:

  • Go to the Metadata page
  • Click on the Year field - nothing displays in the field for selection. The default year (2025) will eventually display but it takes too long.

Issue 2:

  • Go to the Metadata page
  • Select 2024 from the drop down and kick off the metadata update
  • Leave the metadata page and go to the Home page (or some other page within Generate)
  • Go back to the Metadata page. The Year field will be empty, or it will display 2025 (the default). If 2024 was being updated, then the field should display 2024 as soon as the user returns to the page.

Version

v12.4

Logs or Error Output

Priority

Medium

Code of Conduct

  • I agree to follow the Code of Conduct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions