mirror of
https://github.com/apache/superset.git
synced 2026-05-08 01:15:46 +00:00
The previous import-path fixer only matched two-level relative paths (`../../src/` and `../../data/`), missing files at deeper nesting in the section tree. After the 6.1.0 cut for developer_docs, ~50 component MDX files at depth 3 still referenced `../../../src/components/StorybookWrapper` (should have been `../../../../src/...`), and the components Button page referenced `../../../superset-frontend/...` (should have been `../../../../superset-frontend/...`). The Docusaurus production build failed with module-not-found errors as a result. Replace the pattern-specific regex with a depth-aware walker that - counts the file's nesting depth within the snapshot, - bumps any relative import whose `../` count exceeds that depth (i.e. the import escapes the section root and so must compensate for the extra `version-X.X.X/` directory the snapshot lives under), - skips fenced code blocks so documented sample imports (e.g. Playwright page-object examples in developer_docs/testing/e2e-testing.md) are not rewritten. Re-cut all four sections under the new fixer. yarn build now passes locally.
69 lines
3.3 KiB
Plaintext
69 lines
3.3 KiB
Plaintext
---
|
|
id: update-security-roles-by-role-id-groups
|
|
title: "Update security roles by role_id groups"
|
|
description: "Update security roles by role_id groups"
|
|
sidebar_label: "Update security roles by role_id groups"
|
|
hide_title: true
|
|
hide_table_of_contents: true
|
|
api: eJzVV21v2zYQ/ivEYUATTImTogMKFf2QBu2armiN2N4GRIZLi2ebrUSqJOXEE/TfhyMlWX4pVqwDgn2ySR2P9zz3ygoKbniODo2F+K4CqSCGgrsVRKB4jhCD0RnOpIAIDH4tpUEBsTMlRmDTFeYc4grcpiBRqRwu0UBdT4M0WvdKiw2JpFo5VI7+8qLIZMqd1Grw2WpFe1tdhdEFGifR0mppdFnMpPALgTY1sqCDEMN7aR3TC+ZFGIlEIB3m9phFUbvDjeEbqOs+nLveNdNOUs8/Y+ogAiddRhu3OsNfSXBYulGwt44AH3he0PcdY+8upzVdsmvypBDcISNKg9mWNcD32fX22UIrG3h4enHxAywatGXm/n/s1vviu3xvYfWZJ+IPmL/tUV56LwhS9uyHaM3RWr7EHiPWGamW/2h4dxBeccGaTInZjVrzTAq2TUpWGL2Wgow9xNQ7G7BcPi6WieKlW2kj/0IR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rS74OwajLiDnghyYhL6HXkyD9ISWG8fZk2l0zbILmDqppzixOT1TVtfy3RUDefbuPUp4+QfiASEC94ZvHAym6ygZPbZoA9ZVs/7FrfvoHUxqdDVtIKIqr6vXd0Tc4IJdKbEL72i13v9ME4RakaTlylKfrS/23Zaa/WDCcUUfPmNZ5r4d/2/J4I5ffBUO1xhxcj7YX+U4ZRK6ikoKNhvefCLjibPwTqKBVVFSRCqa87ZnyrJF7q+m+Q7r84
|
|
sidebar_class_name: "put api-method"
|
|
info_path: developer-docs/api/superset
|
|
custom_edit_url: null
|
|
hide_send_button: true
|
|
show_extensions: true
|
|
---
|
|
|
|
import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
|
|
import ParamsDetails from "@theme/ParamsDetails";
|
|
import RequestSchema from "@theme/RequestSchema";
|
|
import StatusCodes from "@theme/StatusCodes";
|
|
import OperationTabs from "@theme/OperationTabs";
|
|
import TabItem from "@theme/TabItem";
|
|
import Heading from "@theme/Heading";
|
|
import Translate from "@docusaurus/Translate";
|
|
|
|
<Heading
|
|
as={"h1"}
|
|
className={"openapi__heading"}
|
|
children={"Update security roles by role_id groups"}
|
|
>
|
|
</Heading>
|
|
|
|
<MethodEndpoint
|
|
method={"put"}
|
|
path={"/api/v1/security/roles/{role_id}/groups"}
|
|
context={"endpoint"}
|
|
>
|
|
|
|
</MethodEndpoint>
|
|
|
|
|
|
|
|
Update security roles by role_id groups
|
|
|
|
<Heading
|
|
id={"request"}
|
|
as={"h2"}
|
|
className={"openapi-tabs__heading"}
|
|
>
|
|
<Translate id="theme.openapi.request.title">Request</Translate>
|
|
</Heading>
|
|
|
|
<ParamsDetails
|
|
{...require("./update-security-roles-by-role-id-groups.ParamsDetails.json")}
|
|
>
|
|
|
|
</ParamsDetails>
|
|
|
|
<RequestSchema
|
|
{...require("./update-security-roles-by-role-id-groups.RequestSchema.json")}
|
|
>
|
|
|
|
</RequestSchema>
|
|
|
|
<StatusCodes
|
|
{...require("./update-security-roles-by-role-id-groups.StatusCodes.json")}
|
|
>
|
|
|
|
</StatusCodes>
|