- 🇦🇺Australia acbramley
Triaged as part of BSI.
Is this still an issue? Also, since my knowledge of this system is severely lacking, does this lead to other bugs? Might be good to get a use case of what this issue leads to.
- Status changed to Active
over 1 year ago 10:11pm 22 July 2023 - 🇦🇹Austria fago Vienna
I'd agree that this is unexpected behavior, thus qualifying it as bug seems ok. let's improve this.
- 🇦🇺Australia acbramley
@fago are you able to answer any of the questions in #5?
- 🇦🇹Austria fago Vienna
let me try:
well, without the type you cannot re-create the data definition based upon the toArray()
This works well when working with other classes based upon DataDefinition, but apparently not for lists.I don't see it causing subtle other bugs, still it's not working as it should, thus qualifying it as bug seems right to me.
- First commit to issue fork.
- 🇺🇸United States TolstoyDotCom L.A.
I made the indicated changes. I can change the visibility of THIS_TYPE or 'self' to 'static' if necessary. What would be a good way to test this out?
- Status changed to Needs review
over 1 year ago 6:05pm 5 August 2023 - 🇬🇧United Kingdom nlisgo
This steps to reproduce are screaming to be converted into a test.
- last update
over 1 year ago 29,949 pass, 1 fail - @nlisgo opened merge request.
- 🇬🇧United Kingdom nlisgo
Created a test only MR. I decided the best approach to expose this bug was to add similar extensions of test coverage to the other TypedDataDefinition tests.
- 🇬🇧United Kingdom nlisgo
I've added the test to the main MR and I expect that the test will fail in the test-only MR but that the same test will pass in the main MR.
- last update
over 1 year ago 29,953 pass - @nlisgo opened merge request.
- 🇺🇸United States TolstoyDotCom L.A.
The constant isn't necessary but it might be a good idea to make clear that it won't change and that the uses of 'list' are the same semantically.
- Status changed to Needs work
over 1 year ago 7:06pm 21 August 2023 - 🇺🇸United States smustgrave
Seems have two open threads.
For the constant would say not sure it's needed either. Looking at how SequenceDataDefinition is done they don't use a constant.
- 🇺🇸United States TolstoyDotCom L.A.
I can just hardcode 'list' if necessary, but, IMHO, there's already too much use of hardcoded strings in Drupal.