Skip to content
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

W-17115406 feat!: remove legacy commands #1116

Merged
merged 6 commits into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 2 additions & 28 deletions command-snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,6 @@
],
"plugin": "@salesforce/plugin-data"
},
{
"alias": [],
"command": "data:export:legacy:tree",
"flagAliases": ["apiversion", "outputdir", "targetusername", "u"],
"flagChars": ["d", "o", "p", "q", "x"],
"flags": ["api-version", "flags-dir", "json", "loglevel", "output-dir", "plan", "prefix", "query", "target-org"],
"plugin": "@salesforce/plugin-data"
},
{
"alias": [],
"command": "data:export:resume",
Expand All @@ -120,7 +112,7 @@
"plugin": "@salesforce/plugin-data"
},
{
"alias": ["force:data:tree:export", "data:export:beta:tree"],
"alias": ["force:data:tree:export"],
"command": "data:export:tree",
"flagAliases": ["apiversion", "outputdir", "targetusername", "u"],
"flagChars": ["d", "o", "p", "q", "x"],
Expand Down Expand Up @@ -165,24 +157,6 @@
],
"plugin": "@salesforce/plugin-data"
},
{
"alias": [],
"command": "data:import:legacy:tree",
"flagAliases": ["apiversion", "confighelp", "contenttype", "sobjecttreefiles", "targetusername", "u"],
"flagChars": ["c", "f", "o", "p"],
"flags": [
"api-version",
"config-help",
"content-type",
"files",
"flags-dir",
"json",
"loglevel",
"plan",
"target-org"
],
"plugin": "@salesforce/plugin-data"
},
{
"alias": [],
"command": "data:import:resume",
Expand All @@ -192,7 +166,7 @@
"plugin": "@salesforce/plugin-data"
},
{
"alias": ["force:data:tree:import", "data:import:beta:tree"],
"alias": ["force:data:tree:import"],
"command": "data:import:tree",
"flagAliases": ["apiversion", "sobjecttreefiles", "targetusername", "u"],
"flagChars": ["f", "o", "p"],
Expand Down
46 changes: 0 additions & 46 deletions messages/importApi.md
Original file line number Diff line number Diff line change
@@ -1,51 +1,11 @@
# dataFileNotProvided

Provide a data plan or file(s).

# dataFileNotFound

Can't find data file. Indicate a valid path: %s.

# unknownContentType

Unable to determine content type for file: %s.

# dataFileUnsupported

Content type: %s not supported.

# dataFileEmpty

Data file is empty: %s.

# dataFileInvalidJson

Data file is invalid JSON: %s

# dataFileNoRefId

Found references in file, but no reference-id content found (%s). Were parent SObjects saved first?

# tooManyFiles

Specify either sObject tree files or a plan definition file, but not both.

# dataImportFailed

Import failed from file: %s. Results: %s.

# dataPlanValidationError

Data plan file %s did not validate against the schema. Errors: %s.

# dataPlanValidationErrorActions

- Did you run the "sf data export tree" command with the --plan flag?

- Make sure you're importing a plan definition file.

- Get help with the import plan schema by running "sf data import tree --config-help".

# FlsError

We couldn't process your request because you don't have access to %s on %s. To learn more about field-level security, visit Tips and Hints for Page Layouts and Field-Level Security in our Developer Documentation.
Expand All @@ -62,12 +22,6 @@ Data plan file %s did not validate against the schema. Errors: %s.

- Get help with the import plan schema by running "sf data import beta tree --help".

# saveResolveRefsIgnored

The plan contains the 'saveRefs' and/or 'resolveRefs' properties.
These properties will be ignored and can be removed.
In the future, the `tree export` command will not produce them.

# error.NonStringFiles

The `files` property of the plan objects must contain only strings
Expand Down
8 changes: 0 additions & 8 deletions messages/tree.export.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,3 @@ Directory in which to generate the JSON files; default is current directory.
# PrefixSlashError

`--prefix` cannot contain a forward slash or backslash.

# PlanJsonWarning

Starting on Nov 10, 2024, the JSON output for `--plan` will no longer include the `saveRefs` and `resolveRefs` properties.

# LegacyDeprecation

Starting on Nov 10, 2024, this command will no longer be available. Use `data export tree` instead.
60 changes: 0 additions & 60 deletions messages/tree.import.legacy.md

This file was deleted.

Loading
Loading