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

[Bug] conditional Segments with "continent", the NOT (conditional filter) is broken #22509

Open
4 tasks done
atom-box opened this issue Aug 15, 2024 · 2 comments
Open
4 tasks done
Labels
Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. triaged

Comments

@atom-box
Copy link
Contributor

What happened?

For continent IS NOT ______ the result is the opposite of what is expected

These segments all fail

  • continent IS NOT eur (returns countries like Sweden and Germany)
  • continent IS NOT afr (returns countries like Zaire, Zimbabwe, and Sudan)
  • continent IS NOT amn (returns Canada, Mexico, et al)

Other conditionals work fine (IS eur, STARTS WITH eur, CONTAINS eur, …)
Other metrics work fine (IS NOT sweden, IS NOT stockholm)

What should happen?

The opposite of what happened should happen.

How can this be reproduced?

To reproduce, make a custom report. Add any filter as shown in the screenshots below.

Even easier:

  1. Go to Visitors >> Visits Log or Visitors >> Locations
  2. Make a new segment: (continent) (is not) (eur)
  3. Hit test.
    c8826722-e9c2-42bc-bf83-1ab189fba031
    2de5d8a2-52cc-4650-a4a6-fce85153d5d7
    8d280480-565a-4898-8b69-a9f38c854080
    3728a3b7-f509-4b29-a7ff-6ff51049774c

Matomo version

5.1.0

PHP version

No response

Server operating system

No response

What browsers are you seeing the problem on?

No response

Computer operating system

No response

Relevant log output

No response

Validations

@atom-box atom-box added Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. To Triage An issue awaiting triage by a Matomo core team member labels Aug 15, 2024
@atom-box atom-box changed the title [Bug] conditional In segments for "continent" the NOT (conditional filter) is broken [Bug] conditional Segments with "continent", the NOT (conditional filter) is broken Aug 15, 2024
@hamzzaa12 hamzzaa12 added triaged and removed To Triage An issue awaiting triage by a Matomo core team member labels Aug 16, 2024
@atom-box
Copy link
Contributor Author

atom-box commented Jan 8, 2025

This bug is still present.

I work for Matomo - and can reproduce it.

Another user emailed today about it.

It is easy to reproduce (see my screenshot).
The fix seems to just be to swap IS and NOT.
image

@kmccallumc
Copy link

Dear team
This bug, even thought has an easy overcome, is not a final solution for end-users, that will need to re-do their Custom Reports after the bug is fixed. If we manage many websites then this is a tedious work, and also "invalidations" must be executed.

I hope this bug is fixed soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. triaged
Projects
None yet
Development

No branches or pull requests

3 participants