Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: resolve refs in EnumArrayRenderer #2204

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

LukasBoll
Copy link
Contributor

resolve refs ind the MultiEnumControlProps mapper and tester

fixes #2192

@netlify
Copy link

netlify bot commented Oct 30, 2023

Deploy Preview for jsonforms-examples ready!

Name Link
🔨 Latest commit 1265382
🔍 Latest deploy log https://app.netlify.com/sites/jsonforms-examples/deploys/65521c8e96ff1d0008c5f425
😎 Deploy Preview https://deploy-preview-2204--jsonforms-examples.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@lucas-koehler lucas-koehler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @LukasBoll the changes look pretty good to me. There is one typo fix inline that also fixes the out of memory of the tests. I'm not sure why the typo led to an out of memory but it should not be related to this PR:
Likely it is ue to the implementation of mapStateToMultiEnumControlProps. However, I did not see anything obvious there. Furthermore, in a running application the method should never be invoked because the tester does not apply for effectively empty items. I tested this in the example material app and there simply a No applicable renderer found. is shown.

colors: {
type: 'array',
items: {
ref$: '#/definitions/colors',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixing this typo makes the tests work again locally for me. I.e. it fixes the out of memory issue of the tests.

Suggested change
ref$: '#/definitions/colors',
$ref: '#/definitions/colors',

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, what a stupid mistake. The test is working now, thank you for taking a look @lucas-koehler !
I think the out of memory issues occurred in a view other test cases as well.
So maybe there is an issue with one of the core functionalities, that is called by mapStateToMultiEnumControlProps.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I am also aware of at least on other PR with out of memory issues. Thanks for the hint. However, we don't need to look at that in this PR :D

resolve refs ind the MultiEnumControlProps mapper and tester

fixes eclipsesource#2192
@coveralls
Copy link

Coverage Status

coverage: 84.469%. remained the same
when pulling 1265382 on LukasBoll:fix/enum_array_ref
into f905c82 on eclipsesource:master.

Copy link
Contributor

@lucas-koehler lucas-koehler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM now! Thanks for the contribution :)

@lucas-koehler lucas-koehler merged commit c060472 into eclipsesource:master Nov 13, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EnumArray Renderer not working with $refs
3 participants