aboutcode-org / scancode.io

ScanCode.io is a server to script and automate software composition analysis pipelines with ScanPipe pipelines. This project is sponsored by NLnet project https://nlnet.nl/project/vulnerabilitydatabase/ Google Summer of Code, nexB and others generous sponsors!
https://scancodeio.readthedocs.io
Apache License 2.0
115 stars 85 forks source link

Migrate release_date to DateTimeField for consistency with PurlDB model and incoming data #1335

Open tdruez opened 3 months ago

tdruez commented 3 months ago

In ScanCode.io and DejaCode the Package.release_datefields are defined as DateField. This is not the case for PurlDB, where it is defined as a DateTimeField.

The data returned by the PurlDB API under the "release_date": "2017-11-01T00:00:00Z" format cannot be set on the ScanCode.io model as-is, it needs to be converted, and it's a source of issues.

We should migrate to a DateTimeField for model consistency across the apps.

VarshaUN commented 1 month ago

hey @tdruez are u saying tht below highlighted should be changed to DateTimeField??

Screenshot (40)