Details
-
Sub-task
-
Resolution: None
-
High
-
None
Description
Description
When Schedule Block data is loaded from snapshots, the items that should be removed are still visible.
Steps to reproduce
1. Create new LP
2. Add Schedule Block
3. Add 1 Content Item in "now" timestamp
4. Move timeline one day ahead, remove added previously item
5. Publish LP
6. — let 2 weeks + 1 day from "Now" pass – (for example change server time forward)
7. Go to LP
8. Edit LP and Publish
Expected:
1. Schedule Block is empty, as the content has been removed (both in Edit and View mode)
Actual:
1. Schedule Block has Content in Edit Mode and in View mode after adjusting the slider a bit forward.
Additional
- The time of the snapshot seems to be critical:
when the LP is republished after 2 weeks from Now (or 2 weeks + 2 days) it works correctly, but for 2 weeks + 1 day from Now the error occurs. - Example XMLs for which the issue occurs:
Evaluated at timestamp 1501243200
<?xml version="1.0" encoding="UTF-8"?> <page title="222" layout="1"> <zones> <zone id="first" name="First zone"> <blocks> <block id="b-7db4185c-d248-e79f-9228-9e520d934f6d" type="schedule" view="schedule_hero" name="Schedule" ttl="0"> <attributes> <snapshots> <snapshot date="1499983200"> <initialItems> <item id="sbi-df2ec5b3-f6fb-1494-cdeb-6d71c68e4d66" addition_date="1499939820" content_id="71" origin_block_id="b-7db4185c-d248-e79f-9228-9e520d934f6d"/> </initialItems> </snapshot> <snapshot date="1500026220"> <initialItems/> </snapshot> </snapshots> <events> <event id="sbe-3c059009-4313-34c9-eefe-5936599e7f2f" type="itemRemoved" date="1500026220"> <item id="sbi-df2ec5b3-f6fb-1494-cdeb-6d71c68e4d66" content_id="71"/> </event> </events> <slots> <slot id="sbs-96f3c9c4-d312-d900-7c49-467f681e8a9b"/> </slots> <overflow/> </attributes> </block> </blocks> </zone> </zones> </page>
- I've tried the same steps but with adding another Content instead of removing it, seems to work correctly.
Attachments
Issue Links
- discovered while testing
-
EZEE-1594 Schedule Block snapshots are not being created and restored properly
- Closed