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

[Vue] remove use of angularjs for expression parsing #19492

Merged
merged 9 commits into from Sep 1, 2022

Conversation

diosmosis
Copy link
Member

@diosmosis diosmosis commented Jul 7, 2022

Description:

Changes:

We're only using the smallest portion of math.js possible to support what fields need, but it still adds quite a bit to the bundle size.

5 x-dev

image

Looking through the bundled code, it seems there's still quite a bit that's not needed. It's possible it could be excluded by directly including only what we need from individual math.js files, but I'm not sure it will have any effect in the end.

There are a handful of other expression parsing libraries, but all of them seem to be very old and unmaintained, except math.js.

Review

@diosmosis diosmosis added this to the 5.0.0 milestone Jul 7, 2022
@diosmosis diosmosis marked this pull request as draft July 7, 2022 23:01
@github-actions
Copy link
Contributor

If you don't want this PR to be closed automatically in 28 days then you need to assign the label 'Do not close'.

@github-actions github-actions bot added the Stale The label used by the Close Stale Issues action label Jul 22, 2022
@diosmosis diosmosis marked this pull request as ready for review July 22, 2022 05:46
@diosmosis diosmosis added Needs Review PRs that need a code review Do not close PRs with this label won't be marked as stale by the Close Stale Issues action labels Jul 22, 2022
@github-actions github-actions bot removed the Stale The label used by the Close Stale Issues action label Jul 23, 2022
@github-actions
Copy link
Contributor

This issue is in "needs review" but there has been no activity for 7 days. ping @matomo-org/core-reviewers

@github-actions github-actions bot added Stale The label used by the Close Stale Issues action and removed Stale The label used by the Close Stale Issues action labels Jul 31, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 2022

This issue is in "needs review" but there has been no activity for 7 days. ping @matomo-org/core-reviewers

@github-actions github-actions bot added Stale The label used by the Close Stale Issues action and removed Stale The label used by the Close Stale Issues action labels Aug 8, 2022
@github-actions
Copy link
Contributor

This issue is in "needs review" but there has been no activity for 7 days. ping @matomo-org/core-reviewers

@github-actions github-actions bot added Stale The label used by the Close Stale Issues action and removed Stale The label used by the Close Stale Issues action labels Aug 16, 2022
@github-actions
Copy link
Contributor

This issue is in "needs review" but there has been no activity for 7 days. ping @matomo-org/core-reviewers

@github-actions github-actions bot added Stale The label used by the Close Stale Issues action and removed Stale The label used by the Close Stale Issues action labels Aug 24, 2022
Copy link
Member

@sgiehl sgiehl left a comment

Choose a reason for hiding this comment

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

Did some basic testing in the UI for the components that are affected by the changes. Couldn't find any issues.
Btw. @diosmosis we might need to update our LEGALNOTICE and add vue.js as well as math.js maybe

@diosmosis
Copy link
Member Author

@sgiehl updated the notice

@sgiehl sgiehl merged commit b35adae into 5.x-dev Sep 1, 2022
@sgiehl sgiehl deleted the vue-remove-angularjs-conditions branch September 1, 2022 11:43
bx80 pushed a commit that referenced this pull request Nov 25, 2022
* try replacing angularjs expression parsing w/ mathjs/number

* logical operator fixes

* only import what is needed for math.js

* remove some functionality

* optimize math.js use

* built vue files

* update legal notice

Co-authored-by: sgiehl <stefan@matomo.org>
Co-authored-by: sgiehl <sgiehl@users.noreply.github.com>
bx80 pushed a commit that referenced this pull request Nov 25, 2022
* try replacing angularjs expression parsing w/ mathjs/number

* logical operator fixes

* only import what is needed for math.js

* remove some functionality

* optimize math.js use

* built vue files

* update legal notice

Co-authored-by: sgiehl <stefan@matomo.org>
Co-authored-by: sgiehl <sgiehl@users.noreply.github.com>
bx80 pushed a commit that referenced this pull request Nov 25, 2022
* try replacing angularjs expression parsing w/ mathjs/number

* logical operator fixes

* only import what is needed for math.js

* remove some functionality

* optimize math.js use

* built vue files

* update legal notice

Co-authored-by: sgiehl <stefan@matomo.org>
Co-authored-by: sgiehl <sgiehl@users.noreply.github.com>
@sgiehl sgiehl added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. and removed Needs Review PRs that need a code review Do not close PRs with this label won't be marked as stale by the Close Stale Issues action labels May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants