Closed DidierPais closed 3 years ago
same problem here
Can one of you bisect the branch down to the commit that introduced the bug?
Hello,
I don't know which commit introduced the bug. I think that is a bug which exists from a long time
I would say this is confirmed bug but nobody knows when it was introduced..
Has this issue been resolved? As I have the same problem
Has this issue been resolved? As I have the same problem
I think you just answered your own question :trollface:
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
yeah so the query just needs AND publication_date_end IS NULL
at the end and it'll fix this problem so that the query does not effect all of the snapshots
I think that this is not the place where the date should be defined.
While creating a new snapshot (probably in postCreate?) we should take the publication_date_start
and update that to the publication_date_end
on the last snapshot.
actually the CreateSnapshotType should have the date..
Environment
Sonata packages
Symfony packages
PHP version
Subject
Hello,
When I create a snapshot for a page, it ends all previous ones with today's date. But when I set a start date for the new snapshot, it doesn't update the previous one's end date. Which causes a 404 between the last snapshot end date and the new snapshot start date.
In this exemple we will have a 404 error between 2017/02/16 and 2017/02/24
Steps to reproduce
Create a first snapshot. Create a second one, update the start date and the end date. Create a third one.
You will see that all previous snapshots end date have been updated to today's date. This is a problem because we can't configure a set of snapshots and will cause 404 errors.
Expected results
When creating a new snapshot, let the user set the start date, which will be the end date of the previous one. And not all the previous ones.
Actual results
When creating a new snapshot, ALL the previous ones' end date are set to today's date.