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

Add error output to root component #1663

Merged
merged 1 commit into from
Jan 4, 2021

Conversation

eneufeld
Copy link
Member

@eneufeld eneufeld commented Dec 7, 2020

  • Add possibilities to subscribe to ajv errors
  • Update check to not reupdate the core on data change

@eneufeld eneufeld requested a review from sdirix December 7, 2020 20:17
@coveralls
Copy link

coveralls commented Dec 7, 2020

Coverage Status

Coverage remained the same at 88.488% when pulling 2157052 on eneufeld:add-error-output into bbe2fab on eclipsesource:master.

Copy link
Member

@sdirix sdirix left a comment

Choose a reason for hiding this comment

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

Update check to not reupdate the core on data change

I think the current implementation of this check is off, see comment.

Do we need to implement this manual check in the root component? The updateCore action is implemented in a way which returns the initial core again when nothing changed. This covers data updates which come in based on the emitted data events and should result in a no-op.
Looking at updateCore of the JsonFormsAngularService it seems that updateSubject is called unconditionally. Is this maybe the root cause?

packages/angular/src/jsonforms-root.component.ts Outdated Show resolved Hide resolved
- Add possibilities to subscribe to ajv errors
- Update check to not reupdate the core on data change
Copy link
Member

@sdirix sdirix left a comment

Choose a reason for hiding this comment

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

LGTM

@sdirix sdirix merged commit 612a38a into eclipsesource:master Jan 4, 2021
@sdirix sdirix added this to the 2.5.0 milestone Jan 4, 2021
@sdirix sdirix added the angular label Jan 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants