Skip to content

Pu/issue 442 - #446

Merged
izulin merged 16 commits into
developfrom
pu/issue-442
Jul 10, 2020
Merged

izulin merged 16 commits into
developfrom
pu/issue-442

Conversation

@izulin

@izulin izulin commented Jul 8, 2020 •

Copy link
Copy Markdown
Contributor

Context

Slightly broken logic in topological sort is now fixed. Should resolve some issues with correctness when building engine.

How has this been tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature or improvement (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Additional language file or change to the existing one (translations)

Related issue(s):

  1. Trace "Value of the formula cell is not computed." #442

Checklist:

  • My code follows the code style of this project,
  • My change requires a change to the documentation,
  • I described the modification in the CHANGELOG.md file.

@izulin
izulin force-pushed the pu/issue-442 branch 2 times, most recently from 04e8713 to e303ac9 Compare July 9, 2020 09:19
@izulin
izulin requested a review from bardek8 July 9, 2020 10:27
bardek8
bardek8 previously approved these changes Jul 9, 2020

@bardek8 bardek8 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for fixing that!

To increase readability of this code I would suggest that instead of two sets processed and onStack we have one map storing the stage of processing a node (a number or enum?).

Comment thread src/DependencyGraph/Graph.ts Resolved

@bardek8 bardek8 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Oh, this is much simpler and more readable now, thanks!
As the final nit I would rearrange the switch blocks in the order of status evolution: ON_STACK-> PROCESSED -> POPPED

@izulin
izulin requested a review from wojciechczerniak July 9, 2020 17:04
@izulin

izulin commented Jul 9, 2020

Copy link
Copy Markdown
Contributor Author

Oh, this is much simpler and more readable now, thanks!
As the final nit I would rearrange the switch blocks in the order of status evolution: ON_STACK-> PROCESSED -> POPPED

done

@bardek8

bardek8 commented Jul 9, 2020

Copy link
Copy Markdown
Contributor

Thanks a lot for the whole refactor effort, now it will be much easier to understand it by the reader.
Now it looks good to me and ready to merge.

@wojciechczerniak wojciechczerniak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great 👍

Please add this change to the CHANGELOG.md file under the[Unreleased] section

Comment thread test/engine.spec.ts Resolved
Co-authored-by: Wojciech Czerniak <wojciech.czerniak@gmail.com>
@izulin
izulin requested a review from wojciechczerniak July 10, 2020 09:05
Comment thread CHANGELOG.md Resolved
Co-authored-by: Anna Cieślik <scarletfog@gmail.com>

@wojciechczerniak wojciechczerniak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🏆

@izulin
izulin merged commit 9459721 into develop Jul 10, 2020
@izulin
izulin deleted the pu/issue-442 branch July 10, 2020 13:39
@wojciechczerniak wojciechczerniak linked an issue Jul 14, 2020 that may be closed by this pull request
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.

Trace "Value of the formula cell is not computed."

4 participants