generated from salesforcecli/lerna-template
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat!: ga new tree commands #975
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
4e342d9
feat!: ga the new data tree commands
mshanemc 179e044
test: fix relative path references
mshanemc c9e3356
test: nuts for new commands use their permanent name
mshanemc 58e9758
test: don't use the old weird files format for importing
mshanemc 52d1199
test: works ok without existing save/resolve refs
mshanemc ca61218
fix: prevent undefined in template literal
mshanemc 7a21c8d
docs: fix aliases, message from old command
mshanemc 5ed1ae8
chore: correct snapshots for alias fix
mshanemc 7a23811
fix: update messages (#976)
jshackell-sfdc 1c7013e
fix: deprecation shows on legacy tree commands
mshanemc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# summary | ||
|
||
Import data from one or more JSON files into an org. | ||
|
||
# description | ||
|
||
The JSON files that contain the data are in sObject tree format, which is a collection of nested, parent-child records with a single root record. Use the "<%= config.bin %> data export tree" command to generate these JSON files. | ||
|
||
If you used the --plan flag when exporting the data to generate a plan definition file, use the --plan flag to reference the file when you import. If you're not using a plan, use the --files flag to list the files. If you specify multiple JSON files that depend on each other in a parent-child relationship, be sure you list them in the correct order. | ||
|
||
The sObject Tree API supports requests that contain up to 200 records. For more information, see the REST API Developer Guide. (https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite_sobject_tree.htm) | ||
|
||
# flags.files.summary | ||
|
||
Comma-separated and in-order JSON files that contain the records, in sObject tree format, that you want to insert. | ||
|
||
# flags.plan.summary | ||
|
||
Plan definition file to insert multiple data files. | ||
|
||
# flags.content-type.summary | ||
|
||
Content type of import files if their extention is not .json. | ||
|
||
# flags.content-type.deprecation | ||
|
||
The `config-type` flag is deprecated and will be moved to a `legacy` command after July 10, 2024. It will be completely removed after Nov 10, 2024. Use the new `data tree beta import` command. | ||
|
||
# flags.config-help.summary | ||
|
||
Display schema information for the --plan configuration file to stdout; if you specify this flag, all other flags except --json are ignored. | ||
|
||
# flags.config-help.deprecation | ||
|
||
The `config-help` flag is deprecated and will be moved to a `legacy` command after July 10, 2024. It will be completely removed after Nov 10, 2024. Use the new `data tree beta import` command. | ||
|
||
# examples | ||
|
||
- Import the records contained in two JSON files into the org with alias "my-scratch": | ||
|
||
<%= config.bin %> <%= command.id %> --files Contact.json,Account.json --target-org my-scratch | ||
|
||
- Import records using a plan definition file into your default org: | ||
|
||
<%= config.bin %> <%= command.id %> --plan Account-Contact-plan.json | ||
|
||
# schema-help | ||
|
||
schema(array) - Data Import Plan: Schema for SFDX Toolbelt's data import plan JSON. | ||
|
||
- items(object) - SObject Type: Definition of records to be insert per SObject Type | ||
- sobject(string) - Name of SObject: Child file references must have SObject roots of this type | ||
- saveRefs(boolean) - Save References: Post-save, save references (Name/ID) to be used for reference replacement in subsequent saves. Applies to all data files for this SObject type. | ||
- resolveRefs(boolean) - Resolve References: Pre-save, replace @<reference> with ID from previous save. Applies to all data files for this SObject type. | ||
- files(array) - Files: An array of files paths to load | ||
- items(string|object) - Filepath: Filepath string or object to point to a JSON or XML file having data defined in SObject Tree format. | ||
|
||
# deprecation | ||
|
||
After Nov 10, 2024, this command will no longer be available. Use `data export tree`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bump dev-scripts to avoid linting the .md files?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aww, it's on current dev-scripts. I don't know why that's still happening. Maybe something in vscode ext?