-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Work always on one idSite in API.getReportMetadata #7834
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
Comments
I'm pretty sure it was done 4+ years ago for performance reasons. Today these kind of solutions don't make sense definitely 👍 to remove |
Maybe we could do this in 2.15.1 since we need it for #9129 Suggestion
|
Note: ideally we shouldn't break any API during minor release but it's acceptable IMO in this case because we only partially break the API (only in use case when called with more than one website), which impacts very few users (rough guess: almost nobody) who would use getSegmentsMetadata with multiple site IDs. |
A partial break is pretty much never acceptable in a patch release unless it is maybe security related or so. We don't have to do it in |
Looks like it will be quite hard to do this for I am changing behaviour for API.getReportMetadata but need to see what tests are saying :) |
Do you want to move this issue back to 3.0.0 milestone? (most of these issues will be moved to 4.0.0 milestone) |
just realised you fixed most of this issue already, so renamed this issue + created follow up issue: #10403 |
This is resolved and new issue was created for #10403 |
There are currently two API methods that operate on multiple
idSites
:API.getSegmentsMetadata (idSites = 'Array')
API.getReportMetadata (idSites = '', period = '', ...)
I'm not quite sure why this is the case. Handling multiple idSites becomes complicated when dealing with #7131 and #4734 . In those issues we want plugin developers to be able to define a new type. A "type" could be a plugin that defines a type "Website" or "MobileApp". Different types need different reports and different naming of reports.
How would we behave eg when someone requests the report metadata for many sites, that all have a different type. Re renaming we'd have to fall back to generic wording, this would be easy. But would we only return reports that are supported by both types, or all reports that are supported by any report?
I'm not sure what the use case was behind this but I think we should remove it to keep things easy. This will break BC. So we should do it for Piwik 3.0.0
The text was updated successfully, but these errors were encountered: