bcgov / business-ar

business registry annual report
BSD 3-Clause "New" or "Revised" License
0 stars 15 forks source link

INVESTIGATE - Fix differences in effective date and or time #307

Open Maribeth-Wilson opened 2 weeks ago

Maribeth-Wilson commented 2 weeks ago
image.png
Maribeth-Wilson commented 2 weeks ago

@nsmenon8890 - fyi

Maribeth-Wilson commented 1 week ago

@nsmenon8890 - FYI

EPortman commented 1 week ago

An update on this ticket

I updated the data in Google Cloud so that all of the data fields are consistent when an AR is filed. Here is an example below.

image.png

Even with the data being consistent on the Business AR side of things, Colin still displays the effective date to be something different - usually a couple of minutes in the future, but sometimes as much as an entire day.

image.png

It seems as if something is happening to the effective date in the post request that gets sent to Lear which is located here.

https://github.com/bcgov/lear/blob/f045c27b19792ea63e9596cf2313148f6432063f/colin-api/src/colin_api/resources/filing.py#L90-L93

Further work needs to be done on this issue, specifically finding out why Lear is changing the effective date.

@ozamani9gh once the CD gets implemented for the jobs we can add a bunch of logging to the process_paid_filings job (job that pushes data to colin) to better view what is going wrong.

ozamani9gh commented 1 week ago

We believe the issue is in COLIN_API in lear:

image.png