Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
We introduced some trivial URI prefixes, named it "collect".
It is resolved to the full URI on mouseover. But it is not clear when just looking at the output.
Proposed resolution
Add a legend listing prefixes (name and URI).
Remaining tasks
User interface changes
API changes
Comment | File | Size | Author |
---|---|---|---|
#9 | Screen Shot 2015-07-03 at 10.47.53.png | 113.43 KB | juanse254 |
#9 | interdiff-fix_uri_prefix_legend-2472479-7-9.txt | 2.56 KB | juanse254 |
#9 | fix_uri_prefix_legend-2472479-9.patch | 3.37 KB | juanse254 |
#7 | interdiff-2472479-5-7.txt | 4.57 KB | juanse254 |
#7 | fix_uri_prefix_legend-2472479-7.patch | 6.26 KB | juanse254 |
Comments
Comment #1
juanse254 CreditAttribution: juanse254 at MD Systems GmbH commentedAdded Legend for "collect:"
Comment #2
mbovan CreditAttribution: mbovan at MD Systems GmbH commentedI think the full schema uri should be
http://schema.md-systems.ch/collect/0.0.1/
(with / at the end).We can use basic_html format here and instead of
<b>
tags, switch to<strong>
.Also, we should add web tests (in
CollectWebTest::testContainerUi()
) to assert footer is not visible if there are no containers and visible if there are some captured containers.Edit: when we make some user interface changes we usually attach a screenshot too. :)
Comment #3
juanse254 CreditAttribution: juanse254 at MD Systems GmbH commentedURI fixed, changed to strong tags and test added on testContainerUi().
Screenshot as an attachment.
Comment #4
mbovan CreditAttribution: mbovan at MD Systems GmbH commentedWe had to replace Text area with Unfiltered text as Text area footer is not displayed in tests for some reason.
After moving this part, we can remove the first blank line too.
But not these two. :)
Here, we assert that text http://schema.md-systems.ch/collect/0.0.1/ is displayed somewhere on the page.
To make sure that we assert URI legend, what we can do is to assert raw HTML and check the tags too.
E.g.
$this->assertRaw('<strong>*collect: = "http://schema.md-systems.ch/collect/0.0.1/"</strong>')
, and same withassertNoRaw(...)
./admin/content/collect
).Comment #5
juanse254 CreditAttribution: juanse254 at MD Systems GmbH commentedComment #6
miro_dietikerA legend should be semantically identified as a legend. For other examples see Monitoring or TMGMT - both have a legend.
The quotes are not needed.
BTW the latest screenshot does not show the legend.
Comment #7
juanse254 CreditAttribution: juanse254 at MD Systems GmbH commentedQuotes taken, legend is semantically identified now and screenshot is updated.
Comment #8
mbovan CreditAttribution: mbovan at MD Systems GmbH commentedThis is the part of the patch #11 committed in #2510612: Filter captured entities before sending to the server. I guess, you didn't pull the latest (Collect) changes on 8.x-1.x.
Before uploading the patch, make sure that you have the latest version on your head branch and that you rebased properly.
An interdiff should be a separate file, not part of the patch.
Comment #9
juanse254 CreditAttribution: juanse254 at MD Systems GmbH commentedRebased and deleted interdiff from patch.
EDIT: This is working fine, we need to wait until this issue gets solved to apply the patch, until then the patch will fail the tests.
Comment #14
mbovan CreditAttribution: mbovan at MD Systems GmbH commented#2527148: Adding processors to the model is broken is committed, retesting the latest patch.
Comment #15
mbovan CreditAttribution: mbovan at MD Systems GmbH commentedLooks good.
Comment #16
miro_dietikerCommitted.