- Issue created by @borisson_
- First commit to issue fork.
- π«π·France hdnag
I took this one from DrupalCon Lille Contribution day
- Merge request !5077#3395627 Add validation constraints to field.settings β (Open) created by hdnag
- last update
about 1 year ago 30,425 pass - Status changed to Needs review
about 1 year ago 9:39am 22 October 2023 - π§πͺBelgium borisson_ Mechelen, π§πͺ
This is a good improvement over the current state, and it being not null is correct, but I think we should add a minimum value as well?
- Status changed to Needs work
about 1 year ago 3:49pm 23 October 2023 - πΊπΈUnited States smustgrave
Do think a min makes sense. Can't purge -10 files right?
- Status changed to Postponed
about 1 year ago 11:26am 1 November 2023 - π§πͺBelgium borisson_ Mechelen, π§πͺ
Let's postpone this on π Add Missing Symfony Validators to Drupal Constraint Validator Needs work , that introduces a GreaterThan
- Status changed to Needs work
12 months ago 1:44pm 7 January 2024 - π§πͺBelgium borisson_ Mechelen, π§πͺ
Actually, it looks like the range constraint can also do this, unpostponing this issue.
- π§πͺBelgium svendecabooter Gent
svendecabooter β changed the visibility of the branch 11.x to hidden.
- π§πͺBelgium svendecabooter Gent
svendecabooter β changed the visibility of the branch 11.x to active.
- Merge request !6338#3395627 Add validation constraints to field.settings β (Open) created by svendecabooter
- π§πͺBelgium svendecabooter Gent
There were some problems with the 11.x branch on this issue's repo.
After discussion with borisson_ I added a new merge request to the other branch that existed on this issue.
The change by hdnag is also added to this branch now. - π§πͺBelgium svendecabooter Gent
svendecabooter β changed the visibility of the branch 11.x to hidden.
- Status changed to RTBC
11 months ago 11:41am 27 January 2024 - Status changed to Needs review
10 months ago 10:49am 9 February 2024 - π¬π§United Kingdom catch
I don't think zero is really a valid size here, we would never purge anything and never warn anyone that nothing was purged. I realise that's the status quo that you can set it to zero, but feels like codifying the existing bug further.
If we think it's a feature to be able to set this to zero (to prevent purging in order to debug), then there should probably be a hook_requirements() warning when it's set to zero to remind people to enable it again. If that's the case then fine with opening a follow-up for it. Or making the minimum range 1.
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
I realise that's the status quo that you can set it to zero, but feels like codifying the existing bug further.
D'oh, I should've spotted this π¬ Setting this to zero means nothing would ever happen π
Disallowing a previously allowed value in principle means we need to provide an update path, to reset it to the default. But in this case, that seems such an extremely unlikely thing β¦ that I wonder if we can get away with just changing the minimum to 1? π€ (Because
0
would not have worked anyway, so nobody would ever have had a need to set it to that?) - π¬π§United Kingdom catch
I guess the only question is - does it need to be left open to prevent field purging? I could see someone maybe using that in a situation like π Enforced dependency bundles are deleted without validation when modules are uninstalled Active but also you would only find out about that issue either before or after that would ever be useful. So I don't really think it is a valid use case and we should set the minimum to 1.
- Status changed to RTBC
10 months ago 11:28am 9 February 2024 - π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
π Done. Re-RTBC'ing since it's a trivial change.
- Status changed to Fixed
10 months ago 12:05pm 9 February 2024 Automatically closed - issue fixed for 2 weeks with no activity.