-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(API,CLI) add support for searches with complex filters #367
Conversation
If someone forgets to put the path in the ls command, maybe we should give a better error:
|
The classic (simple) filter could use wildcards (*) as bellow while the complex one cannot:
|
I've updated the parser so now it demands a path to be specified when performing an |
API/models/model.go
Outdated
var err error | ||
var c *mongo.Cursor | ||
|
||
var opts *options.FindOptions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I've seen this code before, maybe we can create a function for it?
Description
Created a new option for
ls
andget
to perform searches with complex filters;Created new API endpoint
/api/objects/search
;Updated the CLI autocompleter with
cp
,connect3d
anddisconnect3d
commands;Updated the layers:
filters
, which was amap[string]string
filled with multiple simple filters; when the layer was applied, anAND
operation was done between all the simple filters.filter
, a single string containing a complex filter;[slug]:filter=[new complex filter]
;AND
operation between the old filter and the new one, by doing[slug]:filter+=[new complex filter]
.Fixes Logical operators in layers filters #278
Type of change
How Has This Been Tested?