Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

feat(Error): convert array of errors to object with indexed errors - I86 #107

Merged
merged 3 commits into from
Oct 14, 2019

Conversation

Ph0tonic
Copy link
Contributor

@Ph0tonic Ph0tonic commented Oct 9, 2019

Issue #86

Right now, the errors get added to an array every time a clause is parsed. This means if multiple changes cause a clause to be parsed multiple times, the same error will be added to the array multiple times and we end up with multiple of the same error.

Changes

  • Convert array of errors to an object with indexed errors

Flags

  • Needs update in cicero-ui for errors management, see related issue

Related Issues

adriaan-pelzer
adriaan-pelzer previously approved these changes Oct 10, 2019
Copy link

@adriaan-pelzer adriaan-pelzer left a comment

Choose a reason for hiding this comment

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

I had a chat with @irmerk to understand what is needed here, and as far as I can see, this looks spot on.

@DianaLease
Copy link
Member

awesome! Let's make sure we get the corresponding issue in cicero-ui resolved as well so the ErrorLogger can handle this new object. Great job!

@DianaLease
Copy link
Member

Hi @Ph0tonic! I wanted to let you know that @flagoon is working on the corresponding issue in cicero-ui here: accordproject/cicero-ui#137, so it might make sense to connect with them and see if you can test the two out together! 😃

Copy link
Member

@jolanglinais jolanglinais left a comment

Choose a reason for hiding this comment

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

This looks good to me. Great changes! I'm going to merge this in and we can iron out any possible bugs through Cicero-UI #167

@jolanglinais jolanglinais changed the title Convert array of errors to object with indexed errors feat(Error): convert array of errors to object with indexed errors - I86 Oct 14, 2019
Copy link
Member

@jolanglinais jolanglinais left a comment

Choose a reason for hiding this comment

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

Actually, would you update cicero-ui in the package.json to v0.1.3?

@Ph0tonic
Copy link
Contributor Author

Ph0tonic commented Oct 14, 2019

Yes of course, here it's.

Signed-off-by: Bastien Wermeille <[email protected]>
@jolanglinais jolanglinais merged commit b04efa3 into accordproject:master Oct 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Difficulty: Challenging Hacktoberfest by DigitalOcean and DEV Type: Enhancement ✨ Improvement to process or efficiency
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants