When a segment is set to "reports are pre-processed" and viewing a report which hasn't yet been processed, display a notification #12256
Labels
Major
Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Use case
As a user when I view a report where a segment is applied, in some cases I will see "There is no data for this report" and may think that "My segment doesn't work!". But in many cases it is just a matter of waiting for some time and the segment data will be shown later once it's been processed. So I'd like to see a note that the data will be available later and I should check back after some time, rather than worry the service does not work.
This is the use case on the Piwik Cloud-hosted for some customers.
Solution
Whenever the requested segment hasn't been processed yet by
core:archive
for the requested date/period/site, we need to detect that "This segment hasn't yet been processed but will be later".Refs:
browser_archiving_disabled_enforce=1
in When a custom segment is used in an API request and browser_archiving_disabled_enforce=1, throw an exception explaining to create the segment first #12255browser_archiving_disabled_enforce=1
in The modal "Segment '%s' not applied" should display when browser_archiving_disabled_enforce=1 #12253The text was updated successfully, but these errors were encountered: