Commit 3c06bad
committed
Add support for tags_all parameter with AND logic
Implemented a new tags_all query parameter that works alongside the
existing tags parameter to support both OR and AND tag filtering logic:
- tags: Filters with OR logic (matches resources with ANY of the tags)
- tags_all: Filters with AND logic (matches resources with ALL of the tags)
- Both parameters can be used together in a single query
Changes:
- Updated API design to include tags_all parameter
- Modified OpenSearch template to handle tags_all in must clause
- Updated mock implementation with two-pass filtering
- Added TagsAll field to SearchCriteria domain model
- Updated all converter functions to map tags_all from payload
- Added comprehensive test coverage for both parameters
- Regenerated Goa API code
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Signed-off-by: Andres Tobon <[email protected]>1 parent f5c5c55 commit 3c06bad
File tree
17 files changed
+342
-39
lines changed- cmd/service
- design
- gen
- http
- cli/lfx_v2_query_service
- query_svc
- client
- server
- query_svc
- internal
- domain/model
- infrastructure
- mock
- opensearch
17 files changed
+342
-39
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| 95 | + | |
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
| |||
119 | 121 | | |
120 | 122 | | |
121 | 123 | | |
| 124 | + | |
122 | 125 | | |
123 | 126 | | |
124 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
55 | 58 | | |
56 | 59 | | |
57 | 60 | | |
| |||
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
| 80 | + | |
77 | 81 | | |
78 | 82 | | |
79 | 83 | | |
| |||
110 | 114 | | |
111 | 115 | | |
112 | 116 | | |
113 | | - | |
114 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
115 | 122 | | |
116 | 123 | | |
117 | 124 | | |
| |||
138 | 145 | | |
139 | 146 | | |
140 | 147 | | |
| 148 | + | |
141 | 149 | | |
142 | 150 | | |
143 | 151 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments