Skip to content
Snippets Groups Projects
Unverified Commit a5ad9452 authored by Jeff Bruemmer's avatar Jeff Bruemmer Committed by GitHub
Browse files

Remove deprecation notice on dump and load commands (#29529)

parent 3f98862b
Branches
Tags
No related merge requests found
......@@ -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)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment