When you export this module configuration you will have this :
watch_content: 0
langcode: fr
report: '{"video":{"top":["18","114"]},"wysiwyg":{"top":["23","74"]},"image":{"top":["221","221","221""]}}'
Those are the nids that contains the paragraphs, but when deploying to a new environment this info will delete the one available and give false results as the nodes ID can have changed between environment.
What is the purpose of saving and exporting this configuration in config/sync/paragraphs_report.settings.yml ?
Can it be excluded in order to avoid thos problems when deploying code ?
Comments
Comment #2
thomwilhelm commentedAgree, report data should not be stored in configuration, as on each deployment it will be reset.
I've had a stab at moving this data to be stored in state data instead, including having an update hook to migrate this data.
I'll try running this on a few different sites shortly, if there are any issues I'll update the patch accordingly.
Comment #5
generalredneck@thomwilhelm,
Your patch doesn't apply cleanly against 2.x. I'm not sure, but you may have made the patch against 8.x-1.x?
In any case, I took my best attempt at merging what you had with what I had come up with before I found this issue. I added a configuration schema to square things away a bit too.
Care to give it a try? I used a different key name than you did when I initially did my changes. Let me know if it looks like I missed anything you had implemented.
Comment #6
generalredneck@thomwilhelm,
I think your patch contained parts of #3388513: update report data permission not working.
Comment #7
generalredneckRerolled with what was in 2.x
Comment #8
thomwilhelm commentedHey @generalredneck just gave PR 17 a test and all worked nicely for me, thanks for rerolling, apologies for including those lines from the other ticket.
Comment #9
generalredneckNo problem. When I get a chance I'll get it merged in.
Comment #10
generalredneckComment #11
miwayha commentedI'd love to get this merged and deployed as soon as it's reasonable. Without this patch, this module has the risk to white screen on different environments that share config but may have a different database (e.g. local vs dev vs prod)
Comment #13
generalredneckComment #14
generalredneck