Skip to content

Conversation

@felixgateru
Copy link
Contributor

What type of PR is this?

This is a feature because it adds functionality to list entities by multiple tag values with support for AND/OR conditions

What does this do?

This pr:

  • adds tags filtering support fro domains and groups
  • adds multiple tags filtering for all entities by using commas for or condition and hyphen for and condition

Which issue(s) does this PR fix/relate to?

Have you included tests for your changes?

Yes, tests have been updated.

Did you document any new/modified feature?

Yes, in code documentation as well as updates to the OpenAPI spec are included

Notes

@codecov
Copy link

codecov bot commented Sep 24, 2025

Codecov Report

❌ Patch coverage is 38.42105% with 117 lines in your changes missing coverage. Please review.
✅ Project coverage is 47.35%. Comparing base (4ee7736) to head (5b942ec).

Files with missing lines Patch % Lines
pkg/sdk/sdk.go 22.72% 17 Missing ⚠️
channels/channels.go 0.00% 14 Missing ⚠️
clients/clients.go 0.00% 14 Missing ⚠️
domains/domains.go 0.00% 14 Missing ⚠️
groups/page.go 0.00% 14 Missing ⚠️
users/users.go 0.00% 14 Missing ⚠️
clients/events/events.go 0.00% 6 Missing ⚠️
groups/events/events.go 0.00% 6 Missing ⚠️
channels/events/events.go 0.00% 4 Missing ⚠️
channels/postgres/channels.go 80.00% 1 Missing and 1 partial ⚠️
... and 6 more
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #3154       +/-   ##
===========================================
+ Coverage   35.54%   47.35%   +11.80%     
===========================================
  Files         307      140      -167     
  Lines       39233    24063    -15170     
===========================================
- Hits        13945    11394     -2551     
+ Misses      24440    11960    -12480     
+ Partials      848      709      -139     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@felixgateru felixgateru marked this pull request as ready for review September 24, 2025 09:38
@felixgateru felixgateru requested a review from a team as a code owner September 24, 2025 09:38
token: validToken,
authnRes: smqauthn.Session{UserID: validID, DomainID: domainID, DomainUserID: domainID + "_" + validID, SuperAdmin: false},
query: "list_perms=true&listPerms=true",
query: "metadata=%7B%22domain%22%3A%20%22example.com%22%7D&metadata=%7B%22domain%22%3A%20%22example.com%22%7D",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use url.PathEscape() instead of manually providing escaped path.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@felixgateru This has not been addressed yet.

@dborovcanin
Copy link
Collaborator

Please fix tests.

@felixgateru felixgateru force-pushed the mg291-tags branch 2 times, most recently from d75749d to f1d1812 Compare September 29, 2025 13:29
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.

Retrieve entities (e.g. clients) by multiple tag values with support for AND/OR conditions

2 participants