Open MariusJulius opened 9 months ago
@MariusJulius Needs both BE and FE changes. We currently don't get the updated_at and created_at values from BE, so they are just taken from the first price element we get when fetching the list and seems to fall back on current date. This means that currently we are not showing the correct date there. Mentioned to @thenouan as well, but would be good to have tasks for this.
Endpoint: GET translation-order/api/prices?vendor_id=
created_at - Timestamp when the first price object was added to this vendor updated_at - Timestamp of last edit to any price object that belongs to this vendor
It's unclear for me what timestamp it should show on "Hinnakirja andmeid muudetud". It makes sense to me to show the timestamp when the price list has been changed (added, edited, removed) but currently it shows the moment when I added new user to vendor's database I don't have any price list added
Sorry, I just read that. Ignore my previous comment created_at - Timestamp when the first price object was added to this vendor updated_at - Timestamp of last edit to any price object that belongs to this vendor
And I found out that I got it wrong. Firstly it saves the timestamps when a new vendor is added. It will be saved to both, created_at and updated_at (adding users works the same way).
But before I was confused about this comment This tester got it the same way I did.
I think there should be "Teostaja loodud"
Now I found in figma that there should be "Teostaja loodud" AND "Hinnakiri loodud" pricelist not added pricelist added
Need to confirm with @kadmit should both price list and vendor changes be covered in: https://github.com/keeleinstituut/tv-tolkevarav/issues/656
There should be "Teostaja loodud" as well. I see both timestamps, vendor and pricelist
Tested in 15.04 - It's OK
It shows last change date for vendor price list even if there is no price list
Originally posted by @estakaad in https://github.com/keeleinstituut/tv-tolkevarav/discussions/498#discussioncomment-7311716
BE ticket: #656