Added DONE_INVALIDATED flag to archiving and considering it when fetching archives
Added DONE_INVALIDATED constant
Added purging of invalidated archives in scheduled tasks
Merge remote-tracking branch 'upstream/master' into feature/5932-invalidate-archived-reports
Added integration test case for data invalidation
Added tests for segments, renamed fixtures, removed code duplication, changed purge invaldiated data task priority
Merge master
Fixed tests to work with current master
Remove unnecessary comment
Merge remote-tracking branch 'upstream/master' into feature/5932-invalidate-archived-reports
Small changes in purgeInvalidatedArchives query
Merge remote-tracking branch 'upstream/master' into feature/5932-invalidate-archived-reports
Fix codeStyle in ArchivePurger, ArchiveInvalidationTest
Adding new PivotByDimension DataTable filter that can pivot a report by (almost) any dimension. The filter can pivot reports by their subtable dimension and can also pivot by other dimensions (by using segments).

Notes:

- in the UI, only pivoting by subtable is supported
- change to CSV DataTable renderer so column names w/ commas & quotes can appear in text
- change to XML DataTable renderer so column names w/ invalid XML characters can be rendered (bit of an iffy change, XML format needs an overhaul I think)
- includes new config option 'pivot_by_filter_enable_fetch_by_segment'
- includes additions to component metadata classes (ie, Report/Dimension)
Fixing build.
Fixing build.
Fix XML rendering regression.
refs #4996 there is a difference between link tracking enabled and installed. When replacing the initial link urls link tracking might not be installed yet but enabled (will be installed on load event). When a click is happening on a content block we still need to use linkTrackingInstalled since then the credirect/tracking request is actually happening and we need to know whether outlink/download will track it or whether we have to do it separately. Make sure to call enableLinkTracking before trackContentImpressions although there should be no huge difference as both will be delayed until ready/load event anyway
refs #4996 php tests are there, we cannot test segments auto suggest yet as they have to be returned in Live API which will be v2
refs #4996 disable contents live test for now as it works on my server but returns different order or so on travis and I cannot fix it