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.4 KiB
Plaintext
69 lines
3.4 KiB
Plaintext
---
|
|
id: get-security-groups-by-pk
|
|
title: "Get security groups by pk"
|
|
description: "Get an item model"
|
|
sidebar_label: "Get security groups by pk"
|
|
hide_title: true
|
|
hide_table_of_contents: true
|
|
api: eJzFWG1v2zYQ/isHYh8STI3joB0CFf3gZmmaruuKOlkHxIFLS2dbDUWqJOXEE/TfhyMlWbbl1ssG5JPNlzs+z73xqILFaCKdZDZRkoXsAi1wCYnFFFIVo2ABy7jmKVrUhoU3BUtoX8btnAVM8hRpdMcCpvFbnmiMWWh1jgEz0RxTzsKC2WVGuxJpcYaalWVQsEhJi9LSMs8ykUScEPS+GoJRtIQzrTLUNkFDo0iJPJXuL2E0LfXG6kTOWBnUE1xrvqTxHS7XJVDmKQtvmJmr+3GtMmibojUr+ARFa+yEbGIFkgGURHYb/AjDakJNvmJkWcC8hpDN0I4J2LiiXNJmZ+NvOerlysjfWHlLVjaZksZb4+T42BvlUbbsorvD4GOPodiIlqs5QmsGpkqDnSN4ISChI/icCAETBKu5NIJbjGGyhAlZlQUMH3iaOUMM4EMSfU8f2zLzllnJdHE3ThfSSbytZNPD/94ETv5/Id+laT/aG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6z7YqfGNypS7nsXBpC6temxXQ/pxib6u/+3V1Udo9JQBIzTr+hq+W+CGvmjRGjU+oDRcfiQlxGVdSaepKnm3uyzJU7UvhlRyPUlXvgo2cXHyRumUk753n69Y9a2DQtmvrrpPR7oMSHiscarRzB+rxH0WmKrtZnCYZ6gNtlv61hTFjt+36HuTGJtyd59UTSJ986n5go896rJdjd14PjYXVOeHogquxQfbywRPXAvrIq2oYv2G8SwhUH3WuhwC5k9lAQuzO4oN7/wbVhQTbvBai7Kkaf9FhBJhJ65dMO5w6b6hUOSKnNZdRtZh7JUm7laPWTjlwuB32B98qrqwQ9h1YP3ykcv2mTWQ7I6VtxTlrja50/3CIIrQVcdaZKsRWCskF+cUOdT1tW7/Jn6qP6S9E05R+B2+2JUNOlfoCWBZ/gN3jPOT
|
|
sidebar_class_name: "get 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={"Get security groups by pk"}
|
|
>
|
|
</Heading>
|
|
|
|
<MethodEndpoint
|
|
method={"get"}
|
|
path={"/api/v1/security/groups/{pk}"}
|
|
context={"endpoint"}
|
|
>
|
|
|
|
</MethodEndpoint>
|
|
|
|
|
|
|
|
Get an item model
|
|
|
|
<Heading
|
|
id={"request"}
|
|
as={"h2"}
|
|
className={"openapi-tabs__heading"}
|
|
>
|
|
<Translate id="theme.openapi.request.title">Request</Translate>
|
|
</Heading>
|
|
|
|
<ParamsDetails
|
|
{...require("./get-security-groups-by-pk.ParamsDetails.json")}
|
|
>
|
|
|
|
</ParamsDetails>
|
|
|
|
<RequestSchema
|
|
{...require("./get-security-groups-by-pk.RequestSchema.json")}
|
|
>
|
|
|
|
</RequestSchema>
|
|
|
|
<StatusCodes
|
|
{...require("./get-security-groups-by-pk.StatusCodes.json")}
|
|
>
|
|
|
|
</StatusCodes>
|