15672: Fixes filter usage on tag service.
authorLucas Di Pentima <lucas@di-pentima.com.ar>
Mon, 16 Dec 2019 21:24:46 +0000 (18:24 -0300)
committerLucas Di Pentima <lucas@di-pentima.com.ar>
Mon, 16 Dec 2019 21:24:46 +0000 (18:24 -0300)
Noticed that OrderBuilder does the same kind of translation, but it
isn't trivial to fix as it does type checking on the properties used
to do the ordering.

Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas@di-pentima.com.ar>

src/services/tag-service/tag-service.ts

index 9f5b34fd412a725de32e2279b670067fa764bb96..bb1eed469cfacf44421245d5c098bc3985a09d36 100644 (file)
@@ -26,9 +26,9 @@ export class TagService {
 
     list(uuid: string) {
         const filters = new FilterBuilder()
-            .addEqual("headUuid", uuid)
-            .addEqual("tailUuid", TagTailType.COLLECTION)
-            .addEqual("linkClass", LinkClass.TAG)
+            .addEqual("head_uuid", uuid)
+            .addEqual("tail_uuid", TagTailType.COLLECTION)
+            .addEqual("link_class", LinkClass.TAG)
             .getFilters();
 
         const order = new OrderBuilder<TagResource>()