Skip to content
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

Allow CLI archiving for only specific segments #7912

Closed
mgazdzik opened this issue May 15, 2015 · 5 comments
Closed

Allow CLI archiving for only specific segments #7912

mgazdzik opened this issue May 15, 2015 · 5 comments
Assignees
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Milestone

Comments

@mgazdzik
Copy link
Contributor

Goal of this issue is to give ability of processing only certain segments when running CLI archiver.
There are some cases when only couple of segments need to be re-processed (due to archiving failure or so). For this purpose it would be ideal to have new parameter for ex. --force-idsegments, that will allow passing id's of segments to archive. For sites with 20-30-40 segments it may be extremely inefficient to query for all segments.

Please let me know if you have any questions or want better justification for this request?

@mgazdzik
Copy link
Contributor Author

I've been also thinking about passing segment definitions, but it's opening lots of places for possible error while using such param.
Also possibly a good company to 'force-idsegments' would be 'skip-idsegments' so we can include and exclude some pre-defined segments from being processed (may be many reasons for that I believe)

@mattab
Copy link
Member

mattab commented May 20, 2015

Thanks for the suggestion @mgazdzik

  • sounds good to me to add --force-idsegments and --skip-idsegments
  • if we add these, we need to display the idsegments in the core:archive output as well. Maybe could be done as follows:
INFO [2015-05-20 05:48:11] - pre-processing all visits
INFO [2015-05-20 05:48:11] - pre-processing segment 1/1 contentName==xx (idsegment = 42)
  • when a idsegment is forced, it should be forced only for those websites where the segment is actually defined and available (ie. either the segment was created for this website specifically, or the segment is set to 'Displayed to [all websites]')

@mattab mattab added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label May 20, 2015
@mattab
Copy link
Member

mattab commented May 20, 2015

Do you ideally need this feature in 2.14.0 ?

@mattab mattab added this to the 2.14.0 milestone May 20, 2015
@diosmosis diosmosis self-assigned this May 21, 2015
@quba
Copy link
Contributor

quba commented Jun 9, 2015

Would be also nice to have option to skip all segments.

@diosmosis
Copy link
Member

Forgot about this issue, will put up a PR soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

4 participants