[UXPROD-4686] create Jest/RTL test for LimitsSettings.js Created: 22/Apr/20  Updated: 13/Sep/21  Resolved: 27/Dec/20

Status: Closed
Project: UX Product
Components: None
Affects versions: None
Fix versions: None

Type: Bug Priority: P4
Reporter: Anastasiia Zakharova Assignee: Illia Daliek
Resolution: Done Votes: 0
Labels: back-end-only, oaipmh
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Attachments: PNG File extended-tg-GetRecord.png     PNG File extended-tg-ListIdentifiers.png     PNG File extended-tg-ListRecords.png     PNG File low-tg-GetRecord.png     PNG File low-tg-ListIdentifiers.png     PNG File low-tg-ListRecords.png    
Issue links:
Defines
defines UXPROD-2556 Technical, NFR, & Misc bug work for G... Closed
defines UXPROD-2740 Stabilize OAI-PMH functionality Closed
Development Team: Concorde

 Description   

Steps to reproduce:

  • In Settings => OAI-PMH => General set Time granularity to YYYY-MM-DD.
  • Make one of the requests: Identify, ListIdentifiers, ListRecords, GetRecord
  • Check datestamps in response.

Expected result:
Datestamps presented in UTC format without time part.

Actual result:
Datestamps presented in UTC format with time part.



 Comments   
Comment by Illia Daliek [ 21/Dec/20 ]

Steps to verify:
1) Go to oai-pmh settings and set time granularity setting to YYYY-MM-DD
2) Make a request to ListIdentifiers, ListRecords, GetRecord with any you are interested parameters.
3) Date within the record headers should match the setting time granularity.
4) Repeat with YYYY-MM-DDThh:mm:ss

Comment by Magda Zacharska [ 22/Dec/20 ]

Illia Daliek please provide screenshots for steps mentioned above.

Comment by Illia Daliek [ 23/Dec/20 ]

Verified on rancher
From left side of screenshot you can see the time granularity setting which affects the headers datestamp from the response at the right side of the screenshot. It works for any available metadata prefix.
1) Time granularity YYYY-MM-DDThh:mm:ssZ
GetRecord
ListIdentifiers
ListRecords
2) Time granularity YYYY-MM-DD
GetRecord
ListIdentifiers
ListRecords

I didn't attach screenshots with the "Identify" verb cause its response doesn't have such headers with datestamps. Its response has only time granularity setting value and the global "response date" and regarding the second one, there was the agreement that we apply setting only to datestamp placed in record headers.

Generated at Fri Feb 09 00:23:34 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.