commit | fc9841438de765d6987b3c151e9c0551e48a9051 | [log] [tgz] |
---|---|---|
author | Vadim Shtayura <vadimsh@chromium.org> | Tue Jan 10 21:16:56 2023 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jan 10 21:16:56 2023 |
tree | 64d2ffb95f24effb1cf23e02c3a997b56a491e9a | |
parent | 5252f4fc7beb3cfb5ef1b49e01c21d9ec42c1f94 [diff] |
[rpcexplorer] Implement the core functionality. It now loads the descriptors and lists services and methods and can send request with or without authentication. Also, just like the existing RPC Explorer, it puts the request body into `?request=...` query parameter to make requests copy-pastable. Use the most recent version of Ace Editor for syntax highlight, autocomplete and other bells and whistles. The existing RPC Explorer also uses it, just some prehistoric version from 2016. Still to be implemented: 1. Autocomplete based on proto descriptors. 2. Extracting comments from the proto descriptor for tooltips etc. 3. Proper parsing of pRPC error responses. 4. Actual pretty UX using some UI components library (mui?). 5. Write some tests maybe... R=randymaldonado@google.com, iannucci@chromium.org Change-Id: Id7b4bbd31c2dea4168d7dc9fc5c3cdb0bc8897ca Reviewed-on: https://chromium-review.googlesource.com/c/infra/luci/luci-go/+/4113449 Reviewed-by: Randy Maldonado <randymaldonado@google.com> Commit-Queue: Vadim Shtayura <vadimsh@chromium.org>
LUCI Go code is meant to be worked on from an Chromium infra.git checkout, which enforces packages versions and Go toolchain version. First get fetch via depot_tools.git then run:
fetch infra cd infra/go eval `./env.py` cd src/go.chromium.org/luci
It is now possible to directly install tools with go install:
go install go.chromium.org/luci/auth/client/cmd/...@latest go install go.chromium.org/luci/buildbucket/cmd/...@latest go install go.chromium.org/luci/cipd/client/cmd/...@latest go install go.chromium.org/luci/client/cmd/...@latest go install go.chromium.org/luci/cv/cmd/...@latest go install go.chromium.org/luci/gce/cmd/...@latest go install go.chromium.org/luci/grpc/cmd/...@latest go install go.chromium.org/luci/logdog/client/cmd/...@latest go install go.chromium.org/luci/luci_notify/cmd/...@latest go install go.chromium.org/luci/lucicfg/cmd/...@latest go install go.chromium.org/luci/luciexe/legacy/cmd/...@latest go install go.chromium.org/luci/mailer/cmd/...@latest go install go.chromium.org/luci/mmutex/cmd/...@latest go install go.chromium.org/luci/resultdb/cmd/...@latest go install go.chromium.org/luci/server/cmd/...@latest go install go.chromium.org/luci/swarming/cmd/...@latest go install go.chromium.org/luci/tokenserver/cmd/...@latest go install go.chromium.org/luci/tools/cmd/...@latest
Contributing uses the same flow as Chromium contributions.