Closed (fixed)
Project:
Simple XML sitemap
Version:
8.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
8 Mar 2020 at 00:56 UTC
Updated:
4 Dec 2020 at 23:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
gbyteNot a bug, but the request makes sense - will look into it.
Comment #3
pcate commentedThe State API is designed to store values such as these so they are not part of configuration.
Comment #4
gbyteSure it is; I did not catch the problem when reviewing this submodule. This will require some data model changes though as right now the timestamp is saved as part of the entity data. Feel free to submit a patch to accelerate the process.
Comment #5
spokjePatch attached that takes the quick (not too dirty?) road by _not_ exporting the `last_updated` field and using the already present State to fill the
last_updatefield in thesimple_sitemap_engineEntityComment #6
spokjeComment #7
diego_mow commentedWorked fine for me!
Comment #8
gbyteComment #9
gbyte@Spokje
Thanks for the patch! The status table however will now show the global 'last submitted' date instead of the date the specific search engine was submitted and we have an unnecessary last_submitted field in the entity. I recon we should move the last_submitted data for each engine to state instead.
Comment #10
lolcode commentedI have attempted to move this forward. There are now individual state variables for each engine.
Comment #11
gbyte@lolcode Thank you, looks good, will be doing some testing soon and I will get back to you.
Comment #12
andyf commentedThanks @lolcode! Would be great to see this land; I'm really tight on time to actually test it out but I gave it a quick once-over, makes sense to me 👍
I think this should be 8101.
Is it worth setting the state variable before clearing the timestamp on the config entity?
Stateinstead ofStateInterfaceThanks again!
Comment #13
lolcode commentedRegarding your comments:
1. I think it should be 8301. Thanks I had copied from the older patch.
2. OK. Done.
3. Fixed.
Attaching an updated patch.
Comment #15
gbyteThanks for your input and patience guys, this is now commited.
@lolcode I cleaned up a bit and removed the injected
$configFactoryin\Drupal\simple_sitemap_engines\Plugin\QueueWorker\SitemapSubmitterand a few variables, as that bit of code was not used anywhere. I still put you down as author, so feel free to review and object.