Problem/Motivation
Right now the Visibility per language plugin does not provide a summary to display in the Paragraph widget.
Proposed resolution
Build the summary,
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | interdiff-3155150-8-11.txt | 2.34 KB | johnchque |
| #11 | 3155150-visibility-summary-11.patch | 2.35 KB | johnchque |
| #8 | interdiff-3155150-5-8.txt | 1.51 KB | johnchque |
| #8 | 3155150-visibility-summary-8.patch | 1.11 KB | johnchque |
| #5 | interdiff_2-5.txt | 798 bytes | deepak goyal |
Comments
Comment #2
johnchqueThis should work. :)
Comment #3
berdirhide for/show for should be translatable strings.
we don't need a summary for the default setting, that doesn't add something useful.
Do he have some UI tests that we could easily extend with an assertion for this?
Comment #4
deepak goyal commentedComment #5
deepak goyal commentedHi @Berdir
Updated patch please review.
Comment #6
berdirHm, looks like the test class renaming in paragraphs broke paragraphs_collection :-/
Lets fix that in a separate issue.
Also, I wasn't clear, but 'always' should be removed as well, not interested in that output either in the summary.
Comment #7
johnchqueWorking on this.
Comment #8
johnchqueUpdated the logic not to do some operations without having the right values set.
Comment #10
berdirSo the existing tests seems to trigger a notice, which is great, because it means we already trigger this method and need to a) fix it and b) add an assert for the expected message.
Comment #11
johnchqueAdding tests and fixing the notice. :)
Comment #12
berdirthat we have this extra container key in the stored settings is unfortunate, but hard to fix now.
Committed.