-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Extend anonymisation settings to allow them to be site specific #23443
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
Merged
Merged
Changes from 131 commits
Commits
Show all changes
138 commits
Select commit
Hold shift + click to select a range
fa5828c
Extend anonymisation settings to allow them to be site specific
michalkleiner 433f979
Mark api methods as internal
michalkleiner 51dbcf7
Only set idSite if truthy
michalkleiner 5b6dc78
Mark UI-only API methods as ignored for system tests
michalkleiner fd0282c
Update UI test screenshots
michalkleiner ccfb1bb
Use correct cache setting method
michalkleiner 6d884c6
Remove controller methods and use API instead
michalkleiner 17854e2
Use local variable
michalkleiner 8f03851
Remove ignore annotation so the method is available via API
michalkleiner 5fe367b
Use better descriptive name
michalkleiner 56b963b
Fix test
michalkleiner f8e1742
Merge branch '5.x-dev' into dev-19315
michalkleiner 6f7abd7
Tweaks from testing
michalkleiner 396027f
Add more privacy config tests
michalkleiner 9211dca
Merge branch '5.x-dev' into dev-19315
michalkleiner 8176f20
Fix CS and minor comment tweaks
michalkleiner c48ac89
Add expected system test files for new PrivacyManager API method
michalkleiner 0875739
Fix CS
michalkleiner 0e00852
Remove forgotten logging
michalkleiner 8946262
Build vue files
innocraft-automation f0f9c72
Undo comment change as now covered by PHPStan baseline exception
michalkleiner bdf0b84
Fix CS
michalkleiner 9ad3b6e
Temporarily update submodule reference
michalkleiner f536069
Merge branch '5.x-dev' into dev-19315
michalkleiner 8e52ccf
Temporarily update submodule reference
michalkleiner a64a817
Merge branch '5.x-dev' into dev-19315
michalkleiner e3a6b1e
Merge branch '5.x-dev' into dev-19315
michalkleiner 56fb3ed
Use site-specific config in more places
michalkleiner 2c6e0a1
Fix CS after 5.x-dev merge
michalkleiner 4986135
Add class to cancel button
michalkleiner 5e983a4
Add classes to individual field wrappers for easier targetting in tests
michalkleiner afd8211
Add site information to the top of anonymisation settings
michalkleiner fcbdc3f
Add site-specific privacy settings UI test and screenshots
michalkleiner 96c9145
Merge branch '5.x-dev' into dev-19315
michalkleiner 564ecdd
Remove option to set cookieless tracking per site
michalkleiner 7328283
Remove console debugging
michalkleiner 3861ed9
Fix type hints in class annotation
michalkleiner e57194d
Build dist files
michalkleiner 2511399
Merge branch '5.x-dev' into dev-19315
michalkleiner f0bf67b
Use instance privacy config as cookieless tracking can't be site-spec…
michalkleiner 204eceb
Fix CS
michalkleiner 5b018af
Update UI test screenshots from CI
michalkleiner 620440c
Update PHPStan baseline
michalkleiner ed36728
Merge branch '5.x-dev' into dev-19315
michalkleiner abd669d
Further removal of cookieless tracking related changes
michalkleiner 3e2f829
Update type hint
michalkleiner b1bfb1a
Allow re-setting anonymisation config for all sites
michalkleiner 5e209cf
Remove forgotten logger
michalkleiner 142cea8
Ensure we always have ?int site id
michalkleiner 364cb02
Cater for possibility of PrivacyManager plugin being disabled
michalkleiner a0750fa
Adjust permissions check within the API setter
michalkleiner 01508ec
Add site-specific suffix to field names (when available) to prevent o…
michalkleiner 3a6aaa8
Add UI test for scenario with disabled PrivacyManager plugin
michalkleiner b40bb2c
Fix CS
michalkleiner 0d725b6
Merge branch '5.x-dev' into dev-19315
michalkleiner 9f3ef08
Merge branch '5.x-dev' into dev-19315
michalkleiner 4c3b9fd
Add type hints to API setter
michalkleiner 1081732
Update UI test selectors after making field IDs unique
michalkleiner 180f5e8
Update UI test screenshot from CI
michalkleiner 7795df6
Fix UI test selectors
michalkleiner 86dac77
Merge branch '5.x-dev' into dev-19315
michalkleiner 20c5abd
Merge branch '5.x-dev' into dev-19315
michalkleiner ef3ec5b
Revert changes to API method name and params for ActivityLog compatib…
michalkleiner 4cd3c6c
Bump version so that ActivityLog can support the new API params
michalkleiner cf9065e
Merge branch '5.x-dev' into dev-19315
michalkleiner 28ad882
Merge branch '5.x-dev' into dev-19315
michalkleiner 409eaa4
Merge branch '5.x-dev' into dev-19315
michalkleiner 79b8515
Move site-specific anonymisation settings into the standard edit form
michalkleiner dc3d289
Update UI tests
michalkleiner b1de46f
Merge branch '5.x-dev' into dev-19315
michalkleiner ada71c2
Don't show anonymisation settings when creating a new site
michalkleiner a330d89
Update UI test screenshots
michalkleiner 9e232bc
Revert sites manager button layout
michalkleiner 89411c2
Revert "Update UI test screenshots"
michalkleiner b346bf6
Add link to system-level privacy settings
michalkleiner c574bb2
Update UI test screenshots
michalkleiner 29920d4
Update TagManager submodule
michalkleiner 6ceba5d
Use site specific id selector for UTC help text
michalkleiner 630d9ca
Hide UTC selector in UI tests
michalkleiner 75da914
Merge branch '5.x-dev' into dev-19315
michalkleiner cd313ec
Update UI tests
michalkleiner d565775
Update UI test screenshots from CI
michalkleiner d6ca1e5
Update TagManager submodule
michalkleiner f95184e
Update TagManager submodule
michalkleiner d1b92e6
Increase maximum bundle size
michalkleiner a6e9388
Adjust per-site anonymisation to only use a single save button
michalkleiner 95f7678
Update UI test and test screenshots after using a single set of save/…
michalkleiner 7e295e4
Update UI test screenshots from CI
michalkleiner 05024a4
Only trigger privacy settings save when editing existing site
michalkleiner 395bef6
Merge branch '5.x-dev' into dev-19315
michalkleiner fcd5a5d
Apply review feedback
michalkleiner 4e45503
Update UI test screenshots from CI
michalkleiner c429f01
Refactor fixture to prepare tracker in a reusable way
michalkleiner e9cb963
Update type hint to accept floats when adding hours
michalkleiner 2460511
Track extra visit to side id 2
michalkleiner 15ada60
Add test for IP anonymisation settings
michalkleiner 7074afa
Add expected API response files for site-specific anonymisation
michalkleiner dfaaa3f
Fix getting global fallback value before resolving to default value
michalkleiner 7ebe4de
Merge branch '5.x-dev' into dev-19315
michalkleiner 04819be
Merge branch '5.x-dev' into dev-19315
michalkleiner 9976eeb
Update implementation after 5.x-dev merge
michalkleiner 9d0761a
Ensure password is required when setting config id randomisation per …
michalkleiner a117286
Remove config id randomisation feature flag from API response for set…
michalkleiner 2654d80
Add tests for config id randomisation using per-site settings
michalkleiner 6c64f56
Remove unused method
michalkleiner 9497fd9
Add type hints to API setter
michalkleiner 17ca7f4
Fix variable name after refactoring
michalkleiner 7f944c0
Fix CS
michalkleiner ff82190
Fix API param name after refactoring
michalkleiner 26073e8
Update UI test screenshots
michalkleiner 9199e38
Merge branch '5.x-dev' into dev-19315
michalkleiner 66140c6
Update UI test screenshots
michalkleiner da9dfa1
Ensure password is only required when enabling config id randomisation
michalkleiner e6c1e7f
Disable saving state when success notification is displayed
michalkleiner df60d38
Merge branch '5.x-dev' into dev-19315
caddoo d66a227
Merge branch '5.x-dev' into dev-19315
caddoo 3f4d6aa
Merge branch '5.x-dev' into dev-19315
michalkleiner e4e7635
Merge branch '5.x-dev' into dev-19315
michalkleiner e39b32d
Update config to work with compliance policy mechanism and per-site s…
michalkleiner db427d2
Improve code legibility and add docblocks
michalkleiner 0132d04
Rebuild dist file
michalkleiner c148806
Use Config's mechanism to get raw option value
michalkleiner 4eb3d5b
Fix type
michalkleiner fd59bb3
Fix namespace
michalkleiner 3e04463
Update test to cater for ip mask length and ip anonymisation being se…
michalkleiner dc53a25
Revert baseline change
michalkleiner 473b0f6
Remove getOptionValue overrides
michalkleiner e4eac3a
Revert "Remove getOptionValue overrides"
michalkleiner 9273862
Add a custom setting interface for cases where the setting value is p…
michalkleiner 17fa142
Use custom setting interface
michalkleiner c517015
Merge branch '5.x-dev' into dev-19315
michalkleiner e031dbc
Update TagManager submodule
michalkleiner eba84bc
Add interface types
michalkleiner cee9213
Add explicit API method param type
michalkleiner b35ba78
Ensure site-specific settings are removed when a site is deleted
michalkleiner 337f5cf
Merge branch '5.x-dev' into dev-19315
michalkleiner 31fcbb2
Update expected system tests to a correct global default value
michalkleiner 97b7f6d
Update UI test screenshot from CI
michalkleiner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| <?php | ||
|
|
||
| namespace Piwik\Settings\Interfaces; | ||
|
|
||
| interface CustomSettingInterface | ||
| { | ||
| public static function getCustomValue(?int $idSite = null); | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...Measurable/tests/UI/expected-screenshots/IntranetMeasurable_intranet_create.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...easurable/tests/UI/expected-screenshots/IntranetMeasurable_intranet_created.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.