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

Add nb_profilable metric counting profilable visits. #19745

Open
wants to merge 19 commits into
base: 4.x-dev
Choose a base branch
from

Conversation

diosmosis
Copy link
Member

Description:

Refs #16363

I'm finishing up #16773, and thought it would be better to review/merge it piecemeal. This PR adds nb_profilable as a metric to VisitsSummary.get. It's just the sum of all profilable visits, and will be used in further PRs.

Review

@diosmosis diosmosis added the Needs Review PRs that need a code review label Sep 18, 2022
@diosmosis diosmosis added this to the 4.12.0 milestone Sep 18, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Oct 1, 2022

This issue is in "needs review" but there has been no activity for 7 days. ping @matomo-org/core-reviewers

@github-actions github-actions bot added the Stale The label used by the Close Stale Issues action label Oct 1, 2022
@justinvelluppillai justinvelluppillai modified the milestones: 4.12.0, 5.0.0 Oct 5, 2022
Copy link
Member

@sgiehl sgiehl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a couple of comments. Besides that I guess the PR needs to be rebased to 5.x-dev.

core/DataAccess/LogAggregator.php Outdated Show resolved Hide resolved
core/DataAccess/LogAggregator.php Outdated Show resolved Hide resolved
tests/PHPUnit/Fixtures/NonProfilableData.php Outdated Show resolved Hide resolved
tests/PHPUnit/Fixtures/NonProfilableData.php Show resolved Hide resolved
Comment on lines 33 to 38
<nb_uniq_visitors_returning>0</nb_uniq_visitors_returning>
<nb_users_returning>0</nb_users_returning>
<nb_visits_returning>0</nb_visits_returning>
<nb_actions_returning>0</nb_actions_returning>
<nb_visits_converted_returning>0</nb_visits_converted_returning>
<bounce_count_returning>0</bounce_count_returning>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you able to explain why there are so many test file updates, where a lot other metrics (than only the profilable metric) has been added?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't verified, but I'm guessing the returning VisitsSummary.get API method returned an empty DataTable (w/ no metrics instead of 0 values). Something must have changed here to return a DataTable w/ entries for 0 metric values. Is it important?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess the reason might be, that for nb_profilable there is a special handling in the archive writer to also write empty archives. As the additional rows are result of an segment, I guess the segment doesn't have any visits and before no archives were written and such no values were available. Now the nb_profilable archive is written nevertheless and the api requests for that segment seems to return 0 values instead.
I think for the VisitFrequency result it's better to have 0 values, than not having the metrics included at all. But not sure if this might have other implications maybe.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll see if I can make it behave as before.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@sgiehl sgiehl removed Needs Review PRs that need a code review Stale The label used by the Close Stale Issues action labels Oct 10, 2022
@diosmosis
Copy link
Member Author

@sgiehl modified the code and asked questions for other items

@diosmosis diosmosis added the Needs Review PRs that need a code review label Oct 11, 2022
@diosmosis
Copy link
Member Author

@mattab @justinvelluppillai any update on ^?

@github-actions
Copy link
Contributor

This issue is in "needs review" but there has been no activity for 7 days. ping @matomo-org/core-reviewers

@github-actions github-actions bot added the Stale The label used by the Close Stale Issues action label Oct 24, 2022
@justinvelluppillai
Copy link
Contributor

@mattab I am happy either way, you can maybe decide here? It is likely there will be a 4.13 to release a few things that need to be done for this quarter

@github-actions github-actions bot removed the Stale The label used by the Close Stale Issues action label Oct 26, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Nov 2, 2022

This issue is in "needs review" but there has been no activity for 7 days. ping @matomo-org/core-reviewers

@github-actions github-actions bot added the Stale The label used by the Close Stale Issues action label Nov 2, 2022
@github-actions
Copy link
Contributor

This PR was last updated more than one month ago, maybe it's time to close it. Please check if there is anything we still can do or close this PR. ping @matomo-org/core-reviewers

@github-actions github-actions bot added the Stale for long The label used by the Close Stale Issues action label Dec 15, 2022
@sgiehl
Copy link
Member

sgiehl commented Dec 15, 2022

@justinvelluppillai Has there been a decision whether to merge this into the next 4.x patch release or keep it for 5.x?

@github-actions github-actions bot removed Stale The label used by the Close Stale Issues action Stale for long The label used by the Close Stale Issues action labels Dec 16, 2022
@github-actions
Copy link
Contributor

This issue is in "needs review" but there has been no activity for 7 days. ping @matomo-org/core-reviewers

@github-actions github-actions bot added the Stale The label used by the Close Stale Issues action label Dec 23, 2022
@mattab mattab added the 5.0.0 label Jan 4, 2023
@github-actions
Copy link
Contributor

This PR was last updated more than one month ago, maybe it's time to close it. Please check if there is anything we still can do or close this PR. ping @matomo-org/core-reviewers

@github-actions github-actions bot added the Stale for long The label used by the Close Stale Issues action label Feb 16, 2023
@sgiehl
Copy link
Member

sgiehl commented Jun 20, 2023

@diosmosis What's the state of this PR? It will for sure not got to 4.x anymore, as we are already preparing to release Matomo 5.
If this change is still relevant and should be merged at some point, please rebase the branch to target 5.x-dev and readd the need review label or close it otherwise.

@sgiehl sgiehl removed Needs Review PRs that need a code review Stale The label used by the Close Stale Issues action Stale for long The label used by the Close Stale Issues action labels Jun 20, 2023
@diosmosis
Copy link
Member Author

@sgiehl I have no plans to work on this. I don't know if it's even a priority. You will need to ask @mattab about the original issue.

Meanwhile you can probably close this. It can always be reopened/used later.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 5, 2023

If you don't want this PR to be closed automatically in 28 days then you need to assign the label 'Do not close'.

@github-actions github-actions bot added the Stale The label used by the Close Stale Issues action label Jul 5, 2023
@mattab mattab added the Do not close PRs with this label won't be marked as stale by the Close Stale Issues action label Jul 5, 2023
@github-actions github-actions bot removed the Stale The label used by the Close Stale Issues action label Jul 6, 2023
@sgiehl sgiehl removed the 5.0.0 label Jul 10, 2023
@sgiehl sgiehl removed this from the 5.0.0 milestone Jul 10, 2023
@mattab mattab self-assigned this Jul 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Do not close PRs with this label won't be marked as stale by the Close Stale Issues action
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants