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

[tests]Fix test errors #19096

Closed
wants to merge 40 commits into from
Closed

[tests]Fix test errors #19096

wants to merge 40 commits into from

Conversation

peterhashair
Copy link
Contributor

Description:

Fix test errors

Review

diosmosis and others added 30 commits March 31, 2022 06:20
* start migrating segment generator directive

* get to build

* remove some TODO

* rebuilt

* get UI tests to pass

* fix ng-model handling

* remote todo

* built vue files
* Clear general cache less often when launching the archiving

* invalidate only when needed

* optimise clear general cache

* better naming

* try better approach

* simplify

* simplify further
* Update translation files

Updated by "Squash Git commits" hook in Weblate.

Translation: Matomo/Plugin SitesManager
Translate-URL: https://hosted.weblate.org/projects/matomo/plugin-sitesmanager/

[ci skip]

Update translation files

Updated by "Squash Git commits" hook in Weblate.

Translation: Matomo/Plugin Referrers
Translate-URL: https://hosted.weblate.org/projects/matomo/plugin-referrers/

[ci skip]

Translated using Weblate (Indonesian)

Currently translated at 100.0% (118 of 118 strings)

Translation: Matomo/Plugin SitesManager
Translate-URL: https://hosted.weblate.org/projects/matomo/plugin-sitesmanager/id/

[ci skip]

Translated using Weblate (Indonesian)

Currently translated at 100.0% (96 of 96 strings)

Translation: Matomo/Plugin Referrers
Translate-URL: https://hosted.weblate.org/projects/matomo/plugin-referrers/id/

[ci skip]

Update translation files

Updated by "Squash Git commits" hook in Weblate.

Translation: Matomo/Plugin SitesManager
Translate-URL: https://hosted.weblate.org/projects/matomo/plugin-sitesmanager/

[ci skip]

Update translation files

Updated by "Squash Git commits" hook in Weblate.

Translation: Matomo/Plugin Referrers
Translate-URL: https://hosted.weblate.org/projects/matomo/plugin-referrers/

[ci skip]

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Taufik Adi Wicaksono <taufikadi.wicaksono@tutamail.com>

* Update translation files

Updated by "Squash Git commits" hook in Weblate.

Translation: Matomo/Plugin SitesManager
Translate-URL: https://hosted.weblate.org/projects/matomo/plugin-sitesmanager/

[ci skip]

Co-authored-by: Hosted Weblate <hosted@weblate.org>

* Update translation files

Updated by "Squash Git commits" hook in Weblate.

Translation: Matomo/Plugin SitesManager
Translate-URL: https://hosted.weblate.org/projects/matomo/plugin-sitesmanager/

[ci skip]

Update translation files

Updated by "Squash Git commits" hook in Weblate.

Translation: Matomo/Plugin Referrers
Translate-URL: https://hosted.weblate.org/projects/matomo/plugin-referrers/

[ci skip]

Co-authored-by: Hosted Weblate <hosted@weblate.org>

* Update translation files

Updated by "Squash Git commits" hook in Weblate.

Translation: Matomo/Plugin SitesManager
Translate-URL: https://hosted.weblate.org/projects/matomo/plugin-sitesmanager/

[ci skip]

Co-authored-by: Hosted Weblate <hosted@weblate.org>

* Update translation files

Updated by "Squash Git commits" hook in Weblate.

Translation: Matomo/Plugin SitesManager
Translate-URL: https://hosted.weblate.org/projects/matomo/plugin-sitesmanager/

[ci skip]

Co-authored-by: Hosted Weblate <hosted@weblate.org>

* Update translation files

Updated by "Squash Git commits" hook in Weblate.

Translation: Matomo/Plugin SitesManager
Translate-URL: https://hosted.weblate.org/projects/matomo/plugin-sitesmanager/

[ci skip]

Co-authored-by: Hosted Weblate <hosted@weblate.org>

* Added translation using Weblate (Irish)

[ci skip]

Added translation using Weblate (Irish)

[ci skip]

Added translation using Weblate (Irish)

[ci skip]

Added translation using Weblate (Irish)

[ci skip]

Added translation using Weblate (Irish)

[ci skip]

Added translation using Weblate (Irish)

[ci skip]

Added translation using Weblate (Irish)

[ci skip]

Added translation using Weblate (Irish)

[ci skip]

Added translation using Weblate (Irish)

[ci skip]

Added translation using Weblate (Irish)

[ci skip]

Added translation using Weblate (Irish)

[ci skip]

Added translation using Weblate (Irish)

[ci skip]

Added translation using Weblate (Irish)

[ci skip]

Added translation using Weblate (Irish)

[ci skip]

Added translation using Weblate (Irish)

[ci skip]

Added translation using Weblate (Irish)

[ci skip]

Added translation using Weblate (Irish)

[ci skip]

Added translation using Weblate (Irish)

[ci skip]

Added translation using Weblate (Irish)

[ci skip]

Added translation using Weblate (Irish)

[ci skip]

Added translation using Weblate (Irish)

[ci skip]

Added translation using Weblate (Irish)

[ci skip]

Added translation using Weblate (Irish)

[ci skip]

Added translation using Weblate (Irish)

[ci skip]

Added translation using Weblate (Irish)

[ci skip]

Added translation using Weblate (Irish)

[ci skip]

Added translation using Weblate (Irish)

[ci skip]

Added translation using Weblate (Irish)

[ci skip]

Added translation using Weblate (Irish)

[ci skip]

Added translation using Weblate (Irish)

[ci skip]

Added translation using Weblate (Irish)

[ci skip]

Added translation using Weblate (Irish)

[ci skip]

Added translation using Weblate (Irish)

[ci skip]

Added translation using Weblate (Irish)

[ci skip]

Added translation using Weblate (Irish)

[ci skip]

Added translation using Weblate (Irish)

[ci skip]

Added translation using Weblate (Irish)

[ci skip]

Added translation using Weblate (Irish)

[ci skip]

Update translation files

Updated by "Squash Git commits" hook in Weblate.

Translation: Matomo/Plugin SitesManager
Translate-URL: https://hosted.weblate.org/projects/matomo/plugin-sitesmanager/

[ci skip]

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Weblate <noreply@weblate.org>

Co-authored-by: Taufik Adi Wicaksono <taufikadi.wicaksono@tutamail.com>
* migrate transition exporter to Vue

* migrate transition switcher to Vue

* get ui tests to pass locally + test manually

* compile vue entry components for dashboard widgets

* fix export in dashboard

* fix warning caused by empty translation key
* migrate report deletion service, delete-logs/delete-reports controllers

* migrate schedule report deletion controller

* delete angularjs files

* couple fixes

* get to work in UI

* fix ajax request params not having every required param & add missing translation for manual purge estimate feature

Co-authored-by: sgiehl <stefan@matomo.org>
* try to avoid random filesystem cache write failure during UI tests by retrying

* update ui-test.php

* forgot return
fix cache wrong path
* migrate campaign builder directive to vue

* fix angularjs/vue binding combinations

* fix spacing and make sure adapter is exported

* fix variable reference

* fix reset of generated URL

* update expected screenshots

* fix ui test

* update expected screenshots

Co-authored-by: sgiehl <stefan@matomo.org>
Because execute bit might be a security risk and has no useful
purpose for files that are not meant to be executed in the first place.
* Revert "Update global.php (#19048)"

This reverts commit 9d6d7a9.

* Fix twig cache path

* apply PSR12 code formatting
* start migrating segment generator directive

* get to build

* remove some TODO

* rebuilt

* get UI tests to pass

* fix ng-model handling

* migrate manage gdpr directive to vue

* fixing UI tests in PrivacyManager

* update expected screenshots

* apply review fixes

* fix missing translation key

Co-authored-by: sgiehl <stefan@matomo.org>
* finish migration and get to build

* test manually and fix UI tests

* remove whole paragraph in test

* update screenshots

* remove unneeded twig template

Co-authored-by: sgiehl <stefan@matomo.org>
…19026)

* migrate location-provider-selection directive to vue component

* test manually

* fix UI tests

* fix paragraph markup

Co-authored-by: sgiehl <stefan@matomo.org>
Co-authored-by: diosmosis <diosmosis@users.noreply.github.com>
…#19012)

* finish initial migration pass

* get changes to build

* delete angularjs and twig

* extract select phone numbers macro to vue and make sure angularjs directives are initialized in scheduled reports event content

* fixing several issues + getting report addition extending working

* fix UI tests

* possibly provide some BC for inline script use

* fix several bugs, use better approach for accessing report in event child vue components, provide backwards compatibility for angularjs/inline javascript potentially used by third party plugins

* apply review fixes

* decode scheduled report description as it is stored escaped in the DB + remove some vue warnings

Co-authored-by: sgiehl <stefan@matomo.org>
…PI method (#19054)

* Disable datatable PostProcessor for PrivacyManager API

* Adds some API tests for PrivacyManager.findDataSubjects

* apply PSR12 code formatting

* fix region not displayed correctly in tooltip
* Add the hostname to the tracker exception log so multi-tenant domains are easier to debug

* Add hostname to error log to help with debugging

* use Url::getHost and add method to Url class instead

* apply PSR12 code formatting

Co-authored-by: sgiehl <stefan@matomo.org>
* migrate widget preview directive

* migrate export-widget controller to vue

* fix ui tests

* update expected screenshot

* remove unneeded deletes
…19030)

* extend request with options and method

when options header and method is options do not record in the database.

* update function

update function

* update tests

update tests

* update tests

adjust code only trigger on option request

* remove class variable

remove server

* Update Request.php

add check request method

* drop option request

drop prefight request

* update reset

update reset

* return 204 on prefight

return 204 on prefight

* Update Tracker.php

accept cors

* fix typo & add type hint

* Update core/Tracker/RequestSet.php

* apply PSR12 code formatting

* adds test

Co-authored-by: sgiehl <stefan@matomo.org>
* migrate opt-out-customizer to vue

* update expected screenshot

* remove angularjs files

* remove left over todo

* built vue files

Co-authored-by: sgiehl <stefan@matomo.org>
Co-authored-by: sgiehl <sgiehl@users.noreply.github.com>
…eateErrorNotification is set to false… (#19071)

* add piwik-api.js error handling logic to AjaxHelper.fetch if createErrorNotification is set to false and do not call AjaxHelper errorCallback in this case too

* undo submodule change
* Adds update script to remove broken scheduled reports from db

* Update core/Updates/4.10.0-b1.php

Co-authored-by: Ben Burgess <88810029+bx80@users.noreply.github.com>

Co-authored-by: Ben Burgess <88810029+bx80@users.noreply.github.com>
sgiehl and others added 10 commits April 12, 2022 10:01
…e access (#19068)

* Prevent failure in scheduled report task if a user does no longer have access

* apply PSR12 code formatting
* Only use dimensions for formatting if they don't define a special sql segment

* apply PSR12 code formatting
…nated (#19038)

* Adds a note to password change form that other sessions will be terminated

* updates expected UI files
Co-authored-by: sgiehl <sgiehl@users.noreply.github.com>
* adding events for use with AnonymousPiwikUsageMeasurement (so angularjs does not have to be used)

* adding more events and changes required for AnonymousPiwikUsageMeasurement

* undo submodule change

* bump version to beta for plugin tests

* built vue files

* revert submodule change

Co-authored-by: sgiehl <stefan@matomo.org>
* remove invalid host tracker settings cache

* only check ini cache file if it exists

* Revert "remove invalid host tracker settings cache"

This reverts commit 88ec3b9.

* check host structure before cache init

* fix tests - removing original file isn't necessary for test

* apply PSR12 code formatting

Co-authored-by: sgiehl <stefan@matomo.org>
* create assets folder if it is missing when writing Report

* apply PSR12 code formatting

Co-authored-by: sgiehl <stefan@matomo.org>
* Remove json files from static file list to serve

* Update changelog
update test img
@sgiehl
Copy link
Member

sgiehl commented Apr 14, 2022

closing in favor of #19100

@sgiehl sgiehl closed this Apr 14, 2022
@sgiehl sgiehl deleted the fix-test-errors branch April 14, 2022 09:41
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.

None yet

7 participants