codeant-ai-for-open-source[bot] commented on code in PR #43906:
URL: https://github.com/apache/superset/pull/43906#discussion_r3940897500
##########
docs/docs/using-superset/embedding.mdx:
##########
@@ -139,6 +139,25 @@ The following URL parameters can be passed through the
`urlParams` option in `da
---
+## Embedding a Single Chart
+
+Individual charts can also be embedded standalone, outside of a dashboard,
using a chart permalink. From Explore, generate a permalink for the chart, then
append URL parameters to it:
+
+```
+/explore/p/<permalink-key>/?standalone=1&show_download=1
+```
+
+| Parameter | Values | Effect
|
+| --------------- | -------- |
-------------------------------------------------------------------------- |
+| `standalone` | `0`, `1` | `0`: normal Explore view; `1`: hide the Explore
header and controls |
+| `show_download` | `0`, `1` | Show a compact download control (CSV, JSON,
Excel) on the standalone chart |
+
+`show_download` is opt-in and has no effect outside of `standalone=1`. The
download control still respects the viewer's export permissions โ it's hidden
for users who lack them even when the parameter is set. With the
`GRANULAR_EXPORT_CONTROLS` feature flag enabled, this requires the
`can_export_data` permission on `Superset`; otherwise it falls back to
`can_csv` on `Superset`.
+
Review Comment:
**Suggestion:** The iframe may not receive Superset's session cookie when
embedded cross-site, so an existing session does not always authenticate the
viewer and the chart can show login or authorization errors. [api mismatch]
**Assessment:** ๐ `Major` ยท ๐ `Occurrence: Sometimes`
[](https://docs.codeant.ai/cli/resolve-pr-comments-skill)
[](https://app.codeant.ai/fix-in-ide?tool=cursor&prompt_id=57728999eabf475abce1fdb076a5b60f&service=github&base_url=https%3A%2F%2Fgithub.com&org=apache&repo=apache%2Fsuperset)
[](https://app.codeant.ai/fix-in-ide?tool=vscode-claude&prompt_id=57728999eabf475abce1fdb076a5b60f&service=github&base_url=https%3A%2F%2Fgithub.com&org=apache&repo=apache%2Fsuperset)
<details>
<summary><b>Prompt for AI Agent ๐ค </b></summary>
```mdx
This is a comment left during a code review.
**Path:** docs/docs/using-superset/embedding.mdx
**Line:** 156:156
**Comment:**
*Api Mismatch: The iframe may not receive Superset's session cookie
when embedded cross-site, so an existing session does not always authenticate
the viewer and the chart can show login or authorization errors.
Validate the correctness of the flagged issue. If correct, How can I resolve
this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask
user if the user wants to fix the rest of the comments as well. if said yes,
then fetch all the comments validate the correctness and implement a minimal fix
```
</details>
<a
href='https://app.codeant.ai/feedback?pr_url=https%3A%2F%2Fgithub.com%2Fapache%2Fsuperset%2Fpull%2F43906&comment_hash=cee8ccdca81582af31960d8ea5b4cdeca0549d4ed7450ba28a59bd116c0cd109&reaction=like'>๐</a>
| <a
href='https://app.codeant.ai/feedback?pr_url=https%3A%2F%2Fgithub.com%2Fapache%2Fsuperset%2Fpull%2F43906&comment_hash=cee8ccdca81582af31960d8ea5b4cdeca0549d4ed7450ba28a59bd116c0cd109&reaction=dislike'>๐</a>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]