Skip to content

Ensures locations can be requested over POST /query endpoint with full parity#6412

Open
apata wants to merge 5 commits into
masterfrom
query/refactor-locations-tests
Open

Ensures locations can be requested over POST /query endpoint with full parity#6412
apata wants to merge 5 commits into
masterfrom
query/refactor-locations-tests

Conversation

@apata
Copy link
Copy Markdown
Contributor

@apata apata commented May 28, 2026

Changes

  • Copies the legacy test files, adding a header about why they must remain
  • Refactors the original test files to use /query endpoint

Tests

  • Automated tests have been added

Changelog

  • This PR does not make a user-facing change

Documentation

  • This change does not need a documentation update

Dark mode

  • This PR does not change the UI

@apata apata requested a review from a team May 28, 2026 10:04
]
end

test "filtering by A1 returns only anonymous VPN visitors", %{conn: conn, site: site} do
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nicely integrated with the location library! 👌 Although I think this specific test does not do anything "new" -- the is filter acts as it would with any other country code filter, and the getting country_name by the code is tested right above.

Perhaps let's update filters in this test to search by country name?

[["contains", "visit:country_name", ["Anonymous"]]]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants