docs(cli): document import_directory --username option - #43602
Conversation
PR #40994 added an optional --username/-u flag to the import_directory CLI command (mirroring import_datasources) so imported assets are assigned an owner instead of ending up with an empty owners list. That flag, its default, and its fail-fast behavior for unknown users weren't documented anywhere; this adds a short section alongside the other import commands' user-resolution behavior. Co-Authored-By: Claude <noreply@anthropic.com>
Code Review Agent Run #40007eActionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
✅ Deploy Preview for superset-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
The flagged issue is correct. The documentation implies that To resolve this, you should update the documentation to clarify the supported asset types. Here is the suggested update for ## Importing a Directory of Assets
The `import_directory` command imports a directory of exported assets (databases, datasets,
dashboards, and charts) in the same layout produced by the ZIP-based export. Note that saved
queries and tag files are not supported and will be ignored.
```bash
superset import_directory <path / directory> |
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Code Review Agent Run #a70265Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
SUMMARY
#40994 added an optional
--username/-uflag to theimport_directoryCLI command (mirroringimport_datasources) so imported assets get assigned an owner instead of ending up with an empty owners list. That flag, its default value, and its fail-fast behavior for unknown users weren't documented anywhere. This adds a short section to the import/export admin doc, alongside the existing write-up ofimport_datasources's user-resolution behavior.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
N/A - docs only.
TESTING INSTRUCTIONS
Docs-only change. Confirm the new "Importing a Directory of Assets" section in
docs/admin_docs/configuration/importing-exporting-datasources.mdxrenders correctly and reflects the CLI behavior added in #40994.ADDITIONAL INFORMATION
Follow-up to #40994.
Co-Authored-By: Claude noreply@anthropic.com