-
Notifications
You must be signed in to change notification settings - Fork 27
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
🎨🐛 web-api: projects search can query filters and fixes on projects repo #7004
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #7004 +/- ##
==========================================
+ Coverage 86.80% 87.99% +1.18%
==========================================
Files 1638 1326 -312
Lines 64617 55583 -9034
Branches 2041 900 -1141
==========================================
- Hits 56094 48910 -7184
+ Misses 8183 6536 -1647
+ Partials 340 137 -203
Continue to review full report in Codecov by Sentry.
|
3b2db9d
to
f5c523a
Compare
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.
Thanks! 🥇
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.
thanks!
Quality Gate passedIssues Measures |
What do these changes do?
The web API exposes two collections that can be nested:
projects
andfolders
. Listing items from these collections can be performed in two ways:Standard List Operation:
Example:
GET /projects
This operation retrieves items one level under a parent location, which is specified via query parameters. By default:
projects
, the parent is identified byfolder_id == None
(defaulting to the root folder).folders
, the parent is identified byworkspace_id
(defaulting toNone
, i.e., MyWorkspace).Custom Search Operation:
Example:
GET /projects:search
This operation retrieves items recursively (full-depth) from the root.
To list items in the trash bin, we must use the "custom search operation" for both
projects
andfolders
with the query filter{"trashed": true}
. For example:GET /projects:search?filters={"trashed": true}
GET /folders:search?filters={"trashed": true}
In detail
filters
query in/projects:search
Related issue/s
How to test
Dev-ops
None