Skip to content

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

Merged
apata merged 5 commits into
masterfrom
query/refactor-locations-tests
Jun 1, 2026
Merged

Ensures locations can be requested over POST /query endpoint with full parity#6412
apata merged 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"]]]

@apata apata added this pull request to the merge queue Jun 1, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 1, 2026
@apata apata added this pull request to the merge queue Jun 1, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 1, 2026
@apata apata added this pull request to the merge queue Jun 1, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 1, 2026
@apata apata added this pull request to the merge queue Jun 1, 2026
Merged via the queue into master with commit c50e67e Jun 1, 2026
37 of 39 checks passed
@apata apata deleted the query/refactor-locations-tests branch June 1, 2026 07:57
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