Automatically update ts_created & ts_last_edit when invalidating segment reports #22169
Labels
answered
For when a question was asked and we referred to forum or answered it.
Enhancement
For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
When processing additional historical data into segments there are two steps:
For example:
Invalidate the report...
sudo -u apache -E bash -c "php /var/www/html/console core:invalidate-report-data --sites=IDSITE_HERE --segment='SEGMENT_NAME_DEFINITION_HERE' --dates=2023-01-01,2024-03-31 --matomo-domain=domain.matomo.cloud"
Log into the DB and update the
segment
table...UPDATE segment SET ts_created = '2023-01-01 00:00:00', ts_last_edit = '2023-01-01 00:00:00' WHERE name LIKE 'SEGMENT_NAME';
This process should be automatic. When the
core:invalidate-report-data
command is used in combination with--segment
, the system should check if the invalidation start date precedes the currentts_created
andts_last_edit
dates in thesegment
table for the requested segment name. If it does, these columns should be modified automatically to remove the need to perform step two above.The text was updated successfully, but these errors were encountered: