Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-cli
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Operations
Operations
Metrics
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-cli
Commits
6753a12f
Unverified
Commit
6753a12f
authored
Oct 25, 2023
by
Alessio Perugini
Committed by
GitHub
Oct 25, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BREAKING]: gRPC drop query field from LibrarySearchRequest (#2388)
parent
b7ce9c8b
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
255 additions
and
270 deletions
+255
-270
commands/lib/search.go
commands/lib/search.go
+0
-4
docs/UPGRADING.md
docs/UPGRADING.md
+4
-0
rpc/cc/arduino/cli/commands/v1/lib.pb.go
rpc/cc/arduino/cli/commands/v1/lib.pb.go
+249
-262
rpc/cc/arduino/cli/commands/v1/lib.proto
rpc/cc/arduino/cli/commands/v1/lib.proto
+2
-4
No files found.
commands/lib/search.go
View file @
6753a12f
...
...
@@ -40,10 +40,6 @@ func LibrarySearch(ctx context.Context, req *rpc.LibrarySearchRequest) (*rpc.Lib
func
searchLibrary
(
req
*
rpc
.
LibrarySearchRequest
,
lm
*
librariesmanager
.
LibrariesManager
)
*
rpc
.
LibrarySearchResponse
{
res
:=
[]
*
rpc
.
SearchedLibrary
{}
query
:=
req
.
GetSearchArgs
()
if
query
==
""
{
query
=
req
.
GetQuery
()
}
matcher
:=
MatcherFromQueryString
(
query
)
for
_
,
lib
:=
range
lm
.
Index
.
Libraries
{
...
...
docs/UPGRADING.md
View file @
6753a12f
...
...
@@ -4,6 +4,10 @@ Here you can find a list of migration guides to handle breaking changes between
## 0.36.0
### gRPC `cc.arduino.cli.commands.v1.LibrarySearchRequest` message has been changed.
The
`query`
field has been removed, use
`search_args`
instead.
### CLI `core list` and `core search` changed JSON output.
Below is an example of the response containing an object with all possible keys set.
...
...
rpc/cc/arduino/cli/commands/v1/lib.pb.go
View file @
6753a12f
This diff is collapsed.
Click to expand it.
rpc/cc/arduino/cli/commands/v1/lib.proto
View file @
6753a12f
...
...
@@ -137,13 +137,11 @@ message LibraryDependencyStatus {
message
LibrarySearchRequest
{
// Arduino Core Service instance from the `Init` response.
Instance
instance
=
1
;
// Deprecated. Use search_args instead.
string
query
=
2
[
deprecated
=
true
];
// Set to true to not populate the releases field in the response (may save a
// lot of bandwidth/CPU).
bool
omit_releases_details
=
3
;
bool
omit_releases_details
=
2
;
// Keywords for the search.
string
search_args
=
4
;
string
search_args
=
3
;
}
enum
LibrarySearchStatus
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment