mirror of
https://github.com/apache/superset.git
synced 2026-05-08 09:25:56 +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-user-registrations-by-pk
|
|
title: "Update security user registrations by pk"
|
|
description: "Update security user registrations by pk"
|
|
sidebar_label: "Update security user registrations by pk"
|
|
hide_title: true
|
|
hide_table_of_contents: true
|
|
api: eJzFV21v2zYQ/ivEYUATTImTogMKFf2QBi2arkuN2N4GRIFLi2dbjUSyJOXEE/TfhyMlWX4p9tIN+WSTujve8/DhHVmB5oYX6NBYiG8ryCTEoLlbQgSSF0ije4jA4NcyMyggdqbECGy6xIJDXIFba7LKpMMFGqjru2CN1r1RYk0mqZIOpaO/XOs8S7nLlBx8sUrS3CaWNkqjcRlaGmXiYPyonVKzL5g6iMBlLqeJiUVzg4vMOuNXsDdo3cXw6lSXDuoI8JEXmixD7POaggm0qck02UMMvyiBOWsy2oVd04TVStqQ4POzs++AZ9CWufvfYe85bhOxyaKlZI+TK4cFS5dcLlCQ94vvgl2gtXyBPYzWmUwu/jLTzhHecMEaicXsSq54ngm2ETLTRq0yQcnug+n5BiznT4tlInnplspkf6CI2UXplihdsz7r5HcASN8xIHnxtEiulWNzVUoRs/ESW5KR6LaqNCkyodAyqRzDx4z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R+euQgHjOc4t7SXb3Gji6aa6vx2xD/3byzSSXa38K8pJGEFGxDy/P+o7U68uiXz186Be4nuPePYoOZ/C4SFP0xf7btne98jKckIZmzfu1UIJcDH+gJyF/CDkqHYikRxTNhY5ThjtWCEkyo1t6b/M6OTZ/CNRBFqoqWITyXnek+OZIvNT1n9amdAc=
|
|
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 user registrations by pk"}
|
|
>
|
|
</Heading>
|
|
|
|
<MethodEndpoint
|
|
method={"put"}
|
|
path={"/api/v1/security/user_registrations/{pk}"}
|
|
context={"endpoint"}
|
|
>
|
|
|
|
</MethodEndpoint>
|
|
|
|
|
|
|
|
Update security user registrations by pk
|
|
|
|
<Heading
|
|
id={"request"}
|
|
as={"h2"}
|
|
className={"openapi-tabs__heading"}
|
|
>
|
|
<Translate id="theme.openapi.request.title">Request</Translate>
|
|
</Heading>
|
|
|
|
<ParamsDetails
|
|
{...require("./update-security-user-registrations-by-pk.ParamsDetails.json")}
|
|
>
|
|
|
|
</ParamsDetails>
|
|
|
|
<RequestSchema
|
|
{...require("./update-security-user-registrations-by-pk.RequestSchema.json")}
|
|
>
|
|
|
|
</RequestSchema>
|
|
|
|
<StatusCodes
|
|
{...require("./update-security-user-registrations-by-pk.StatusCodes.json")}
|
|
>
|
|
|
|
</StatusCodes>
|