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
fd6e2f11
Unverified
Commit
fd6e2f11
authored
6 months ago
by
Alexander Solovyov
Committed by
GitHub
6 months ago
Browse files
Options
Downloads
Patches
Plain Diff
[serdes] api: better error when archive looks weird (#47721)
parent
fc737436
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
enterprise/backend/src/metabase_enterprise/serialization/api.clj
+4
-3
4 additions, 3 deletions
...ise/backend/src/metabase_enterprise/serialization/api.clj
with
4 additions
and
3 deletions
enterprise/backend/src/metabase_enterprise/serialization/api.clj
+
4
−
3
View file @
fd6e2f11
...
...
@@ -128,9 +128,10 @@
(
let
[
cnt
(
u.compress/untgz
file
dst
)
path
(
find-serialization-dir
dst
)]
(
when-not
path
(
throw
(
ex-info
"No source dir detected"
{
:dst
(
.getPath
dst
)
:count
cnt
:files
(
.listFiles
dst
)})))
(
throw
(
ex-info
"No source dir detected. Please make sure the serialization files are in the top level dir."
{
:dst
(
.getPath
dst
)
:count
cnt
:files
(
.listFiles
dst
)})))
(
log/infof
"In total %s entries unpacked, detected source dir: %s"
cnt
(
.getName
path
))
(
serdes/with-cache
(
->
(
v2.ingest/ingest-yaml
(
.getPath
path
))
...
...
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