Problem/Motivation

We have a user paragraph type in demo that is not working properly, it does not let you reference users and it has autocomplete set as off.

Proposed resolution

Fix it, add tests.

Remaining tasks

User interface changes

API changes

Data model changes

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

yongt9412 created an issue. See original summary.

johnchque’s picture

johnchque’s picture

Title: Fix user paragraph in demo. » Fix user paragraph type in demo

The last submitted patch, 2: fix_user_paragraph_in-2716029-2-test-only.patch, failed testing.

The last submitted patch, 2: fix_user_paragraph_in-2716029-2-test-only.patch, failed testing.

The last submitted patch, 2: fix_user_paragraph_in-2716029-2-test-only.patch, failed testing.

miro_dietiker’s picture

Status: Needs review » Fixed

Thx, committed.

tduong’s picture

Nooo, was reviewing this patch... anyway, not sure if it is worth to extend the test checking also the cases for the authenticated and anonymous user (to check that the validation works also fine). And IMO the changes in core.entity_view_display.paragraph.user.default.yml are unrelated...

miro_dietiker’s picture

Note that this is "just" a demo related test.
The demo test does not test if the paragraphs code works. The test only checks if the demo configuration results to a valid situation.

Thus testing if the validation works is IMHO not really a scope that makes sense here. There is for sure a test somewhere that makes sure the entity reference works nicely with a user target.

If you have some proposals to improve, just reopen the issue and provide a small follow-up diff.

tduong’s picture

IMHO we should have a test each time we create a new feature. E.g. the "Nested Paragraphs" type first provided by the demo module, or to ensure that the links in the front page demo node work correctly (I'm not sure if they've worked before since there was no test for them). But I agree that probably that moment when we've created this module, it was already too much work at once, and as the current situation (hurry before the release) it's fine to just focus to other critical issues first :)

Status: Fixed » Closed (fixed)

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