-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
properly encode segment definitions from table so the hash will be the same as from query params #17029
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
Merged
Merged
properly encode segment definitions from table so the hash will be the same as from query params #17029
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
464b5e9
initial fix
diosmosis 53a54a8
when creating a Segment or getting a segment hash using a segment def…
diosmosis ea70406
try to make segment definition change appear in tests (seems like thi…
diosmosis 07366d6
Merge branch '4.x-dev' into segment-definition-fix
diosmosis 66caccc
add test demonstrating bug
diosmosis 737d75f
check access in exampleplugin
diosmosis 56b1530
Merge branch '4.x-dev' into segment-definition-fix
diosmosis 028812a
Merge branch '4.x-dev' into segment-definition-fix
diosmosis 7ea8a46
Add missing use
diosmosis 2db2a20
fix test
diosmosis 94d53ee
Merge branch '4.x-dev' into segment-definition-fix
diosmosis 90d9048
better fix
diosmosis 8be2fa4
fix tests
diosmosis 71fe39c
fix test
diosmosis 9393356
update expected screenshots
diosmosis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 13 additions & 1 deletion
14
...m/expected/test_ArchiveCronTest_segmentNoAutoArchive_noOptions__VisitsSummary.get_day.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,18 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<results> | ||
<result idSite="1" /> | ||
<result idSite="1"> | ||
<nb_uniq_visitors>4</nb_uniq_visitors> | ||
<nb_users>0</nb_users> | ||
<nb_visits>4</nb_visits> | ||
<nb_actions>4</nb_actions> | ||
<nb_visits_converted>4</nb_visits_converted> | ||
<bounce_count>4</bounce_count> | ||
<sum_visit_length>0</sum_visit_length> | ||
<max_actions>1</max_actions> | ||
<bounce_rate>100%</bounce_rate> | ||
<nb_actions_per_visit>1</nb_actions_per_visit> | ||
<avg_time_on_site>0</avg_time_on_site> | ||
</result> | ||
<result idSite="2" /> | ||
<result idSite="3" /> | ||
</results> |
42 changes: 39 additions & 3 deletions
42
...expected/test_ArchiveCronTest_segmentNoAutoArchive_noOptions__VisitsSummary.get_month.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,42 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<results> | ||
<result idSite="1" /> | ||
<result idSite="2" /> | ||
<result idSite="3" /> | ||
<result idSite="1"> | ||
<nb_uniq_visitors>12</nb_uniq_visitors> | ||
<nb_users>0</nb_users> | ||
<nb_visits>12</nb_visits> | ||
<nb_actions>15</nb_actions> | ||
<nb_visits_converted>11</nb_visits_converted> | ||
<bounce_count>10</bounce_count> | ||
<sum_visit_length>305</sum_visit_length> | ||
<max_actions>3</max_actions> | ||
<bounce_rate>83%</bounce_rate> | ||
<nb_actions_per_visit>1.3</nb_actions_per_visit> | ||
<avg_time_on_site>25</avg_time_on_site> | ||
</result> | ||
<result idSite="2"> | ||
<nb_uniq_visitors>1</nb_uniq_visitors> | ||
<nb_users>0</nb_users> | ||
<nb_visits>1</nb_visits> | ||
<nb_actions>1</nb_actions> | ||
<nb_visits_converted>0</nb_visits_converted> | ||
<bounce_count>1</bounce_count> | ||
<sum_visit_length>0</sum_visit_length> | ||
<max_actions>1</max_actions> | ||
<bounce_rate>100%</bounce_rate> | ||
<nb_actions_per_visit>1</nb_actions_per_visit> | ||
<avg_time_on_site>0</avg_time_on_site> | ||
</result> | ||
<result idSite="3"> | ||
<nb_uniq_visitors>1</nb_uniq_visitors> | ||
<nb_users>0</nb_users> | ||
<nb_visits>1</nb_visits> | ||
<nb_actions>3</nb_actions> | ||
<nb_visits_converted>0</nb_visits_converted> | ||
<bounce_count>0</bounce_count> | ||
<sum_visit_length>1</sum_visit_length> | ||
<max_actions>3</max_actions> | ||
<bounce_rate>0%</bounce_rate> | ||
<nb_actions_per_visit>3</nb_actions_per_visit> | ||
<avg_time_on_site>1</avg_time_on_site> | ||
</result> | ||
</results> |
14 changes: 13 additions & 1 deletion
14
.../expected/test_ArchiveCronTest_segmentNoAutoArchive_noOptions__VisitsSummary.get_week.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,18 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<results> | ||
<result idSite="1" /> | ||
<result idSite="1"> | ||
<nb_uniq_visitors>11</nb_uniq_visitors> | ||
<nb_users>0</nb_users> | ||
<nb_visits>11</nb_visits> | ||
<nb_actions>14</nb_actions> | ||
<nb_visits_converted>10</nb_visits_converted> | ||
<bounce_count>9</bounce_count> | ||
<sum_visit_length>305</sum_visit_length> | ||
<max_actions>3</max_actions> | ||
<bounce_rate>82%</bounce_rate> | ||
<nb_actions_per_visit>1.3</nb_actions_per_visit> | ||
<avg_time_on_site>28</avg_time_on_site> | ||
</result> | ||
<result idSite="2" /> | ||
<result idSite="3" /> | ||
</results> |
36 changes: 33 additions & 3 deletions
36
.../expected/test_ArchiveCronTest_segmentNoAutoArchive_noOptions__VisitsSummary.get_year.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,36 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<results> | ||
<result idSite="1" /> | ||
<result idSite="2" /> | ||
<result idSite="3" /> | ||
<result idSite="1"> | ||
<nb_visits>12</nb_visits> | ||
<nb_actions>15</nb_actions> | ||
<nb_visits_converted>11</nb_visits_converted> | ||
<bounce_count>10</bounce_count> | ||
<sum_visit_length>305</sum_visit_length> | ||
<max_actions>3</max_actions> | ||
<bounce_rate>83%</bounce_rate> | ||
<nb_actions_per_visit>1.3</nb_actions_per_visit> | ||
<avg_time_on_site>25</avg_time_on_site> | ||
</result> | ||
<result idSite="2"> | ||
<nb_visits>1</nb_visits> | ||
<nb_actions>1</nb_actions> | ||
<nb_visits_converted>0</nb_visits_converted> | ||
<bounce_count>1</bounce_count> | ||
<sum_visit_length>0</sum_visit_length> | ||
<max_actions>1</max_actions> | ||
<bounce_rate>100%</bounce_rate> | ||
<nb_actions_per_visit>1</nb_actions_per_visit> | ||
<avg_time_on_site>0</avg_time_on_site> | ||
</result> | ||
<result idSite="3"> | ||
<nb_visits>1</nb_visits> | ||
<nb_actions>3</nb_actions> | ||
<nb_visits_converted>0</nb_visits_converted> | ||
<bounce_count>0</bounce_count> | ||
<sum_visit_length>1</sum_visit_length> | ||
<max_actions>3</max_actions> | ||
<bounce_rate>0%</bounce_rate> | ||
<nb_actions_per_visit>3</nb_actions_per_visit> | ||
<avg_time_on_site>1</avg_time_on_site> | ||
</result> | ||
</results> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fyi do we maybe need to check for permissions here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's the exampleplugin, so i guess it's not important, but it might be better to have a good demonstration, so I added it