Problem/Motivation

The facet source is currently only displayed on the facets overview page. For developer convenience, it would be nice to have the source displayed on the facet's edit form.

Proposed resolution

Display the facet's source on the facet edit form.

Remaining tasks

  1. Write a patch
  2. Review
  3. Commit

User interface changes

The facet's source is displayed on the facet edit form

API changes

None.

Data model changes

None.

Comments

idebr created an issue. See original summary.

borisson_’s picture

Issue tags: +Needs tests

I agree, this is a good idea. Let's do this!

borisson_’s picture

Status: Active » Needs review
Issue tags: -Needs tests
StatusFileSize
new3.6 KB

I guess this is good place to start, this could use more styling / better markup though.

idebr’s picture

Issue summary: View changes
StatusFileSize
new2.35 KB
new4.61 KB
new40.86 KB

I agree, great start!

I suggest we use the default #type => item styling available in Seven:

borisson_’s picture

Status: Needs review » Reviewed & tested by the community

Looks solid, thanks!

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 4: facets-display_source-2937294-4.patch, failed testing. View results

borisson_’s picture

Looks like I was too trigger-happy with that rtbc, the newly added test is too brittle. It shouldn't find the entire string, just the facet source is sufficient.

idebr’s picture

Status: Needs work » Needs review
StatusFileSize
new701 bytes
new4.6 KB

Updated Drupal\Tests\facets\Functional\IntegrationTest to scan for the Facet source label only

borisson_’s picture

Status: Needs review » Reviewed & tested by the community

Test is green, thanks!

  • StryKaizer committed 6176adf on 8.x-1.x authored by idebr
    Issue #2937294 by idebr, borisson_: Display the facet's source on the...
idebr’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.