posit-dev / posit-dev/rsconnect-python
`RSConnectExecutor.server_settings` throws error if `self.client` is a `PositClient` object
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 37
- Fork
- 28
- Merge medio
- 1g 3h
- PR unite (30g)
- 7
Descrizione
With a RSConnectExecutor object, if .server_settings is accessed and self.client is a PositClient object (as opposed to a RSConnectClient object), it will throw an error.
I'm running into this problem while working on #545, when I try to deploy a Shiny app to shinyapps.io.
The problem is that the server_settings property accesses self.client.server_settings. self.client can be a RSConnectClient or PositClient object. However, the PositClient class does not have .server_settings.
Maybe the PositClient class could have a .server_settings field, set to None or an empty dictionary?
Guida per i contributori
Apri la guida per i contributori
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.
Direzione di ricerca
Inizia in rsconnect/api.py, nella proprietà server_settings intorno alle righe 916–919, quindi esamina come RSConnectExecutor usa self.client e confronta le classi RSConnectClient e PositClient. La correzione è completa quando l'accesso a server_settings con entrambi i tipi di client non genera più un errore di attributo e il comportamento esistente di RSConnectClient rimane invariato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- api, cli
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 50/100