- Assigned to wim leers
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
I think tests will now pass. But we'll still need an update path test + actual update path logic.
There's nothing to update in
VocabularyForm
β there's zero validation in\Drupal\taxonomy\VocabularyForm::validateForm()
. Besides, β¨ [PP-2] Introduce ConfigEntityForm to standardize use of validation constraints for config entities Active will introduce the necessary infrastructure to make that simple and consistent. - π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
RE
::validateForm()
being empty β @effulgentsia's #14 is relevant here:A bit more info:
VocabularyForm::form()
invokesprotectBundleIdElement()
, and that is also validated at the API level viaConfigEntityBundleBase::preSave()
.VocabularyForm::form()
sets the#maxlength
of'name'
to 255, but I don't think anything validates that at the API level. I bet we have a similar lack of length validation for many configuration values throughout all of Drupal, but I don't know to what extent that's really a problem.
The first bullet was covered by π Add new `ImmutableProperties` constraint Fixed and solved this generically, for all config entity types π
The second bullet talks about the maximum length for the human-readable label for the vocabulary. That uses
type: label
which gained validation constraints in π Add validation constraint to `type: label`: disallow multiple lines Fixed and was refined in π Add validation constraint to `type: label` + `type: text`: disallow control characters Fixed . There is no technical limit to config entity labels at this time.But there are things that need to be validated, as this issue's MR and
VocabularyValidationTest
's inherited test coverage shows.So: consider @xjm's question in #11 addressed.
- Status changed to Needs work
9 months ago 1:04pm 16 February 2024 - π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Green! Marking for update path.
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Update path test added; should fail. CR created: https://www.drupal.org/node/3421927 β .
- Issue was unassigned.
- Status changed to Needs review
9 months ago 2:11pm 16 February 2024 - π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Update path test failed β just pushed the missing update path to make tests green π₯³
- Status changed to Needs work
9 months ago 9:12pm 17 February 2024 - π¦πΉAustria fago Vienna
exciting to see this after soo many years!
I studied the MR and it seems mostly great, I found only one small remark (see above)
- Assigned to wim leers
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Thanks for the reviews, both of you!
- Issue was unassigned.
- Status changed to Needs review
9 months ago 8:03am 19 February 2024 - Status changed to RTBC
9 months ago 3:14pm 19 February 2024 - πΊπΈUnited States smustgrave
Feedback appears to be addressed.
Should drop a comment on π Deprecate vocabulary weight property Needs work to make sure that todo gets removed.
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
@smustgrave: done: #3008064-30: Deprecate vocabulary weight property β π
- Status changed to Needs work
9 months ago 5:01pm 26 February 2024 - π¬π§United Kingdom catch
I'm not convinced we should do π Deprecate vocabulary weight property Needs work and now this has landed that issue should be responsible for deprecations, so think we could just remove the @todo here.
- Status changed to RTBC
9 months ago 5:38pm 26 February 2024 - π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
#47: π closed that issue and re-activated its sibling to get it back on track: #1821274-20: Add back ability to sort on vocabulary weight and name β .
Given that the feedback was trivial to address, self-re-RTBC'ing
- Status changed to Fixed
9 months ago 5:46pm 26 February 2024 - π¬π§United Kingdom catch
Committed/pushed to 11.x and cherry-picked to 10.3.x, thanks!
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
π₯³
- Published CR: https://www.drupal.org/node/3421927 β
- Updated meta: #2869792-54: [meta] Add constraints to all config entity types β
Automatically closed - issue fixed for 2 weeks with no activity.