grpc / grpc/grpc-java

Maybe add Status.withCode

Offen
#3,725 6 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Java
Sterne
12.1k
Forks
4k
Ø Merge
2 T. 17 Std.
Gemergte PRs (30 T.)
37

Beschreibung

Unlike other fields in Status, there is no `with` method to preserve the code. This is surprising and makes it harder to change a status code.

Would have been useful here: https://github.com/grpc/grpc-java/pull/3521/files

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start by locating the Java gRPC Status API and review the referenced pull request for how other Status fields expose with methods. Confirm the expected behavior for preserving the code when changing a status, then add the corresponding API coverage and verify the existing tests pass.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
grpc, java
Bereich
api, backend-api-design
Issue-Typ
Feature
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.