⚡ [#621] add key value search to data#699
Conversation
04bb0c0 to
78a38a2
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #699 +/- ##
==========================================
+ Coverage 83.95% 84.12% +0.17%
==========================================
Files 131 134 +3
Lines 2480 2576 +96
Branches 199 208 +9
==========================================
+ Hits 2082 2167 +85
- Misses 354 362 +8
- Partials 44 47 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
danielmursa-dev
left a comment
There was a problem hiding this comment.
In my comment #621 (comment) I meant to use the same pattern as in the API filters, for example with underscores, in this way also the URL format is consistent: /admin/core/object/?q=key__value. You can also improve this search by adding options like exact, contains, etc.
Using a : in the search bar I'm not sure if the nested search works properly.
- last thing could you also add some tests?
ba8b6f5 to
0044a32
Compare
939f23a to
4d260ff
Compare
0a70d69 to
8a57f85
Compare
8a57f85 to
cef45e3
Compare
85a60eb to
878fb0b
Compare
|
@stevenbal should we also add the same |
hmm yeah let's do that. @TimdeBeer1 could you add this explanation to the admin docs as well? |
950df1d to
c936e00
Compare
804ec74 to
fc1b627
Compare
Fixes #621
Changes
New query:
SELECT "core_object"."id", "core_object"."uuid", "core_object"."object_type_id", "core_object"."created_on", "core_object"."modified_on", (("core_objectrecord"."data" ->> boomspiegel))::varchar AS "key_text" FROM "core_object" INNER JOIN "core_objectrecord" ON ("core_object"."id" = "core_objectrecord"."object_id") WHERE ("core_objectrecord"."data" ? boomspiegel AND UPPER((("core_objectrecord"."data" ->> boomspiegel))::varchar::text) LIKE UPPER(%ipsu%))