dci-control-server icon indicating copy to clipboard operation
dci-control-server copied to clipboard

While listing components, limiting results seems to be applied before some filters

Open fcharlier opened this issue 5 years ago • 0 comments

Note: This might be a duplicate of #57.

When using dcictl as a partner:

$ dcictl component-list --topic-id=8bd5a6f6-fe80-4699-b422-27c33e92f60a | wc -l                       
5
$ dcictl component-list --topic-id=8bd5a6f6-fe80-4699-b422-27c33e92f60a --where state:active | wc -l
54
$ dcictl component-list --topic-id=8bd5a6f6-fe80-4699-b422-27c33e92f60a --where export_control:True | wc -l
54

As an administrator, I can see that there are a lot of components with state:inactive & ``export_control:False``` for this topic.

I suspect that the first command is applying the 100 results limit & only then applying the export_control or state filtering when it should apply the 100 results limit only before returning the results.

fcharlier avatar May 10 '19 10:05 fcharlier