SB 5.1 - OCI - "Last updated on" is showing as invalid date for admin reports #481
Replies: 7 comments 16 replies
-
@rajeevsathish @vinukumar-vs Can you please get back on the above |
Beta Was this translation helpful? Give feedback.
-
@subhashchandrab |
Beta Was this translation helpful? Give feedback.
-
@subhashchandrab report-service still doesn't support for cloud agnostic(for few reports), hence the below features will be impacted.
|
Beta Was this translation helpful? Give feedback.
-
@vinukumar-vs any progress on this issue? |
Beta Was this translation helpful? Give feedback.
-
We have a version of client cloud service which has oci support https://github.com/ocisunbird/client-cloud-services/tree/oci-5.1.0 is it possible to merge this into the upstream branch , so that its packaged as an npm package. Rightnow the PR project-sunbird/sunbird-report-service#40 Once we have a new version say 2.0.6, we can use that it should support oci |
Beta Was this translation helpful? Give feedback.
-
@vinukumar-vs @rajeshkumaravel @anandp504 I think the problem here is the AWS implementation of client cloud service code. Because oci is an s3 compliant api storage, we used the existing AWS implementation for customization. The assumption here was that aws implementation is working fine. The problem was in the method
It uses HeadObjectCommand method from aws lib Two of the output attributes will be For the azure counterpart, it uses https://azure.github.io/azure-storage-node/BlobResult.html Notice the lower case. In the getFileProperties(), the response o/p is created using the lower case
This lowercase value of lastModified & contentLength will not be there in the aws s3 response. we corrected this in the oci implementation
Now the last updated date is showing, but we have a potential problem. The reponse data is
Is this the expected output or do need to convert the response date from 2023-05-08T05:13:44.000Z to Mon, 8 May 2023 05:13:44 GMT |
Beta Was this translation helpful? Give feedback.
-
Login with Report admin credentials
Go to the admin dashboard
Click on existing reports
Observe the ‘Last Updated on’ status
Invalid date’ text is showing in all reports of the admin dashboard
Though we are able to view the data in the report, the filed "Last updated on" is showing as Invalid date in the UI. All the required buckets for storing the reports are configured in the backend.
We would like to understand where this data(Last updated on) will be fetched from?
Beta Was this translation helpful? Give feedback.
All reactions