- Issue created by @pdureau
- First commit to issue fork.
- π«π·France Grimreaper France π«π·
Working on that as I get fatal errors with due to the change in the parent issue.
- π«π·France Grimreaper France π«π·
As discussed with @pdureau, regarding #3493070-61: SDC `enum` props should have translatable labels: use `meta:enum` β , changing status to postponed until we know in parent issue what to do.
- Merge request !12326Issue #3528998 by grimreaper, pdureau: Follow-up: SDC `enum` props should have translatable labels: use `meta:enum` β (Closed) created by Grimreaper
- π«π·France pdureau Paris
Merge request is ready for review.
2 questions:
- Do we really need to keep
ComponentMetadata::getEnumOptions()
public method ?This method is very specific, maybe useless (checking themeta:enum
value is enough) and not covered by an interface. Let's check this with the authors of [#16138734] - Do we move the 3 alterations from
ComponentMetadata::parseSchemaInfo()
(add/remove/translate values tometa:enum
) to a dedicated protectedComponentMetadata::makeEnumLabelsTranslatable()
method?
- Do we really need to keep
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
The changes look fine to me.
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Setting to RTBC so @pdureau can commit this during his work day
- π«π·France pdureau Paris
That's great, Larowlan.
Before committing, we will work on your feedback from the MR
And I will try to get the answer to this questions:
Do we really need to keep
ComponentMetadata::getEnumOptions()
public method ?This method is very specific, maybe useless (checking themeta:enum
value is enough) and not covered by an interface. Let's check this with the authors of β¨ Enum vales do not have translatable labels Active - π«π·France Grimreaper France π«π·
Review comment addressed, thanks @larowlan!
- πͺπΈSpain penyaskito Seville π, Spain πͺπΈ, UTC+2 πͺπΊ
Some concerns with DX + test coverage.
- π«π·France pdureau Paris
Thanks @penyakisto, we are carefully studying your feedbacks.
You wrote:
I'm fine removing the
getEnumOptions
method, but we would lose all translatability coverage if we remove this test.So, you are fine removing this method if we don't lose such coverage. That would be great. We will try that.
- π«π·France Grimreaper France π«π·
Hi,
@penyakisto review comments addressed. We are available to discuss before tonight commit.
- π«π·France pdureau Paris
@grimreaper, we can improve a bit the implementation by casting the label as a string when extracting it from the enum value.
- π«π·France pdureau Paris
While working on comment #20, Grimreaper is also completing and consolidating the unit tests.
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
The changes look good to me, I've pinged @penyaskito for a +1
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
I think I spotted one important piece of missing test coverage plus some questions.
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
There's one thing I don't understand, but it seems to be because I give JSON Schema to much credit.
Thanks for the pointers, @grimreaper β I found it a bit hard to connect all the dots, but you helped me do so β much appreciated! π
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Crediting others who I discussed this with on Slack
-
larowlan β
committed b401495d on 11.2.x
Issue #3528998 by grimreaper, larowlan, pdureau, xjm, wim leers, catch,...
-
larowlan β
committed b401495d on 11.2.x
-
larowlan β
committed 166350f2 on 11.x
Issue #3528998 by grimreaper, larowlan, pdureau, xjm, wim leers, catch,...
-
larowlan β
committed 166350f2 on 11.x
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Committed to 11.x and backported to 11.2.x
Thanks all