Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Downloading of PDFs etc is deferred/lazy

Offen
#1,104 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
50/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Ruhig
Tech-Stack
python
Bereich
api

Rechercherichtung

Start at views.populate_pdf and inspect the similar view-population methods mentioned in the issue, along with their tests if present. Trace when the PDF request occurs relative to property access. Done means the PDF is fetched during population, remains available after sign-out or connection closure, and repeated property access does not fetch it again.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

enhancement

Describe the bug
views.populate_pdf and similar methods do not really populate the PDF but instead only populate a getter method which is later used upon property access. This has multiple drawbacks:

  1. The PDF is loaded multiple times if accessed more than once.
  2. Access to the PDF is no longer possible after closing the connection to the server
  3. Parallelizing the PDF fetching is really hard and unintuitive as the action does not happen where it should be but only later as a side effect of accessing the property. Property access should be as fast as possible and synchronous.
  4. Somewhat related to 3., this makes it impossible to create an asyncio wrapper for this library as property access must be synchronous in Python.

Versions
Details of your environment, including:

  • Tableau Server version: Tableau Online
  • Python version: 3.10.6
  • TSC library version: 0.19.0

To Reproduce

with server.auth.sign_in(tableau_auth):
    view = ...
    server.views.populate_pdf(view, pdf_req_option)

pathlib.Path("output.pdf").write_bytes(view.pdf)

Results
It raises an error as it cannot receive the PDF any longer.

Vorherrschende Sprache
Python
Sterne
716
Forks
446
Ø Merge
8 T. 8 Std.
Gemergte PRs (30 T.)
2

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus tableau/server-client-python

Alle Issues in tableau/server-client-python

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

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