Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
a5ad9452
Unverified
Commit
a5ad9452
authored
2 years ago
by
Jeff Bruemmer
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Remove deprecation notice on dump and load commands (#29529)
parent
3f98862b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/metabase/cmd.clj
+13
-13
13 additions, 13 deletions
src/metabase/cmd.clj
with
13 additions
and
13 deletions
src/metabase/cmd.clj
+
13
−
13
View file @
a5ad9452
...
...
@@ -152,10 +152,8 @@
e
))))]
(
apply
f
args
)))
(
defn
^
:command
^
:deprecated
load
"Deprecated: prefer [[import]] instead.
Load serialized metabase instance as created by [[dump]] command from directory `path`.
(
defn
^
:command
load
"Load serialized metabase instance as created by [[dump]] command from directory `path`.
`--mode` can be one of `:update` or `:skip` (default). `--on-error` can be `:abort` or `:continue` (default)."
[
path
&
options
]
...
...
@@ -166,15 +164,15 @@
(
call-enterprise
'metabase-enterprise.serialization.cmd/v1-load
path
opts
)))
(
defn
^
:command
import
"Load serialized Metabase instance as created by the [[export]] command from directory `path`."
"This command is in development. For now, use [[load]].
Load serialized Metabase instance as created by the [[export]] command from directory `path`."
[
path
&
options
]
(
let
[
opts
{
:abort-on-error
(
boolean
(
some
#
{
"--abort-on-error"
}
options
))}]
(
call-enterprise
'metabase-enterprise.serialization.cmd/v2-load
path
opts
)))
(
defn
^
:command
^
:deprecated
dump
"Deprecated: prefer [[export]] instead.
Serialized metabase instance into directory `path`. `args` options may contain --state option with one of
(
defn
^
:command
dump
"Serialized metabase instance into directory `path`. `args` options may contain --state option with one of
`active` (default), `all`. With `active` option, do not dump archived entities."
[
path
&
options
]
(
log/warn
(
u/colorize
:red
(
trs
"''dump'' is deprecated and will be removed in a future release. Please migrate to ''export''."
)))
...
...
@@ -189,12 +187,14 @@
(
map
#
(
Integer/parseInt
%
)
(
str/split
s
#
","
))))
(
defn
^
:command
export
"Serialize a Metabase into directory `path`. Replaces the [[dump]] command..
"This command is in development. For now, use [[dump]].
Serialize a Metabase into directory `path`.
Options:
Options:
--collections [collection-id-list] - a comma-separated list of IDs of collection to export
--include-field-values - flag, default false, controls export of field values"
--collections [collection-id-list] - a comma-separated list of IDs of collection to export
--include-field-values - flag, default false, controls export of field values"
[
path
&
options
]
(
let
[
opts
(
->
options
cmd-args->map
(
update
:collections
parse-int-list
))]
(
call-enterprise
'metabase-enterprise.serialization.cmd/v2-dump
path
opts
)))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment