Breaking change in 4.12.0 due to RestSharp update to 109+

Aperta
#515 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
csharp

Direzione di ricerca

Inizia esaminando l’API pubblica di ApiClient.RestClient e la dichiarazione della dipendenza che è cambiata tra le versioni client 4.11.0 e 4.12.0. Confronta le API di RestSharp 108.0.1 e 110.1.0, quindi determina se l’uso pubblico di BaseUrl può rimanere compatibile o se il versionamento del client deve riflettere la breaking change.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

question

Steps to reproduce:

Use version 4.11.0 and set a BaseUrl:

ApiClient.RestClient.BaseUrl = new Uri("http://some.url")

Upgrade to 4.12.0.

The code no longer builds even though the version upgrade was minor.

Expected behavior:

Either hide your third-party implementation details behind an interface.
Or be aware of breaking changes in your own API via third-party library changes and increase your major version accordingly.

Actual behavior:

RestSharp made a breaking change to RestClient in SHA1:507ed8 and increased heir major version to 109 accordingly.
RestSharp as part of the influx client API was updated from 108.0.1 to 110.1.0 (i. e. >=109) between influx client 4.11.0 and 4.12.0.
Even though this is a breaking API change for influx client as well, there was no major version increase.

Specifications:

  • Client Version: 4.12.0
  • InfluxDB Version: irrelevant
  • Platform: irrelevant
Lingua principale
C#
Stelle
377
Fork
93
Merge medio
9g 2h
PR unite (30g)
1

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di influxdata/influxdb-client-csharp

Tutte le issue di influxdata/influxdb-client-csharp

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.