| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Adds a class-level docstring plus 15 method docstrings on Favorites (get, add_favorite, 6x add_favorite_<type>, delete_favorite, 6x delete_favorite_<type>). Content ported from docs/api-ref.md's Favorites section on gh-pages so that the Sphinx pipeline in #1832 will produce equivalent output once wired up. Part of the api-ref -> Sphinx migration; see the migration audit report for the full list of methods still needing docstrings. Favorites was the largest single chunk in the "needs_docstring" bucket (15/41 methods). No behavior change. Docs only.
Sorry, something went wrong.
There was a problem hiding this comment.
This PR backfills NumPy-style docstrings for the Favorites endpoint to support upcoming Sphinx-generated API reference output, with the intent of matching the existing handwritten api-ref.md content.
Changes:
tableauserverclient/server/endpoint/favorites_endpoint.py:260
type; this method is the polymorphic entry point.
Parameters
tableauserverclient/server/endpoint/favorites_endpoint.py:400
"""Remove a metric from the user's favorites.
Parameters
----------
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Sorry, something went wrong.
- Class docstring: add missing "collections" FavoriteType (7, not 6). - add_favorite: drop misleading #add_workbook_to_favorites anchor on polymorphic method; link to Favorites Methods page root. - add_favorite_metric: add REST API link (#add_metric_to_favorites). - delete_favorite: add REST API link; polymorphic, so page root. - delete_favorite_metric: add REST API link; no per-type anchor exists, so page root. - delete_favorite_flow: fix anchor drift (#delete_flow_from_favorites -> #ref_delete_flow_from_favorites).
| Back | FazBrowse Home | New Git URL |
Motivation
Favorites was the largest single chunk in the needs-docstring bucket per
the api-ref migration audit (15 of 41 remaining public endpoint methods
without docstrings). Once #1832 wires up Sphinx, the generated output
will cover what the handwritten api-ref.md page does today.
Behavior change
Docs only. No behavior change.
Adds a class-level docstring on Favorites plus 15 method docstrings:
get, add_favorite, 6x add_favorite_<type>, delete_favorite,
6x delete_favorite_<type>. Content ported from the Favorites section of
api-ref.md on gh-pages.
Known asymmetry in the API surface (documented in the docstrings, not
resolved here): add_favorite takes content_type as a plain str with
example values like "workbook"; delete_favorite takes it as a
Resource enum. Callers reading the two side-by-side will notice the
inconsistency.
Test plan
🤖 Generated with Claude Code