Provide convenience method for adding a client-id header
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
Inizia nella classe Query, accanto ai metodi token e bearer_token esistenti, quindi verifica come viene esposta la versione del pacchetto python_cmr. Il lavoro è completato quando un metodo di convenienza client_id imposta Client-Id con il comportamento richiesto per il valore predefinito o il suffisso di versione, con una copertura sia per gli ID forniti dall’utente sia per gli ID predefiniti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
The Headers section of the CMR Search API documentation describes the Client-Id header as follows:
Client-Id- Indicates a name for the client using the CMR API. Specifying this helps Operations monitor query performance per client. It can also make it easier for them to identify your requests if you contact them for assistance.
Given that there are token and bearer_token methods in the Query class for conveniently setting the Authorization header, providing a client_id method would be convenient for supplying the Client-Id header.
Further, I recommend the following:
- When the user does not invoke the
client_idmethod to specify their own chosen ID for identification for assistance, a default should be set. I recommend something like this:python_cmr-vX.Y.Z, whereX.Y.Zis the version ofpython_cmr - When the user does invoke the
client_idmethod, the following suffix should be added to the value specified by the user:(python_cmr-vX.Y.Z), with a space character between the user-supplied value and the suffix.
- Lingua principale
- Python
- Stelle
- 29
- Fork
- 32
- Merge medio
- 19h 6m
- PR unite (30g)
- 1
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di nasa/python_cmr
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
nasa/python_cmr#108 ·
-
additional attributes Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
nasa/python_cmr#104 ·
-
enhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 38/100
nasa/python_cmr#95 · 1 commento ·
-
enhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
nasa/python_cmr#94 ·
-
Drop support for Python 3.8 Apertachore
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
nasa/python_cmr#93 ·
Tutte le issue di nasa/python_cmr
Issue simili
-
bug priority:low
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
CyberAgent/psd2svg#436 ·
-
area/install-update comp/cli comp/desktop P3 sweeper:risk-compatibility type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
NousResearch/hermes-agent#122386 · 1 commento ·
-
ai-generated
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
vllm-project/production-stack#1105 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100