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] migrate reporting page directive #18430

Merged
merged 504 commits into from Dec 15, 2021
Merged

[Vue] migrate reporting page directive #18430

merged 504 commits into from Dec 15, 2021

Conversation

diosmosis
Copy link
Member

@diosmosis diosmosis commented Dec 2, 2021

Description:

This PR is based off of #18429.

Changes:

  • Migrate piwik-reporting-page directive.
  • Migrate reportingPageModel service to store.
  • Moving interfaces around so different services can use them.

image

Review

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.

Found one regression caused by this migration. Otherwise looks good to me

v-for="widget in widgets"
:key="widget.uniqueId"
>
<Widget
Copy link
Member

Choose a reason for hiding this comment

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

I guess we need to add some special class or attribute here. We have some javascript looking for [piwik-widget], which no longer does exist. See

var tooltip = $(this).parents('[piwik-widget]').tooltip('instance');

This also causes the UI test failure where a tooltip is still visible.

Copy link
Member Author

Choose a reason for hiding this comment

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

👍 nice catch, I'll put looking for selectors like this on my checklist.

@sgiehl sgiehl removed the Needs Review PRs that need a code review label Dec 14, 2021
…#18497)

* forward compareSegments in when applying period selector change + check if comparing periods in period selector

* built vue files
@diosmosis diosmosis added the Needs Review PRs that need a code review label Dec 14, 2021
@diosmosis
Copy link
Member Author

@sgiehl updated

…class to use kebab case, check for field using css class as well in Widget.vue
@diosmosis
Copy link
Member Author

fixed another test failure + made some tweaks

Copy link
Contributor

@peterhashair peterhashair left a comment

Choose a reason for hiding this comment

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

that looks good to me, just one test here failed, Travis didn't catch up.

 Cannot read properties of undefined (reading 'toDisplayString')
  at plugins/CoreVue/polyfills/dist/MatomoPolyfills.min.js:7:135

@diosmosis
Copy link
Member Author

@peterhashair I don't see this failure in https://app.travis-ci.com/github/matomo-org/matomo/builds/243453117 can you link to it?

@diosmosis
Copy link
Member Author

@peterhashair nevermind, I see it now.

@sgiehl
Copy link
Member

sgiehl commented Dec 15, 2021

@diosmosis seems to work in general. But I got this JS error when a report page is loaded:
image

@diosmosis
Copy link
Member Author

@sgiehl fixed that

@sgiehl sgiehl merged commit 8fb83ba into 4.x-dev Dec 15, 2021
@sgiehl sgiehl deleted the vue-reporting-page branch December 15, 2021 15:30
@justinvelluppillai justinvelluppillai added the not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. label Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review 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

5 participants