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
ba82e0b6
Commit
ba82e0b6
authored
9 years ago
by
Allen Gilliland
Browse files
Options
Downloads
Plain Diff
Merge pull request #767 from metabase/fix_latitude_in_tests
Fix latitude in tests
parents
276b2760
e48353e9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/metabase/api/meta/field.clj
+2
-2
2 additions, 2 deletions
src/metabase/api/meta/field.clj
test/metabase/api/meta/field_test.clj
+1
-1
1 addition, 1 deletion
test/metabase/api/meta/field_test.clj
with
3 additions
and
3 deletions
src/metabase/api/meta/field.clj
+
2
−
2
View file @
ba82e0b6
...
...
@@ -41,8 +41,8 @@
display_name
NonEmptyString
}
(
write-check
Field
id
)
(
check-500
(
m/mapply
upd
Field
id
(
merge
{
:description
description
; you're allowed to unset description and special_type
:special_type
special_type
:display_name
display_name
}
; but field_type and preview_display must be replaced
:special_type
special_type
}
; but field_type and preview_display must be replaced
(
when
display_name
{
:display_name
display_name
})
(
when
field_type
{
:field_type
field_type
})
; with new non-nil values
(
when-not
(
nil?
preview_display
)
{
:preview_display
preview_display
}))))
(
Field
id
))
...
...
This diff is collapsed.
Click to expand it.
test/metabase/api/meta/field_test.clj
+
1
−
1
View file @
ba82e0b6
...
...
@@ -70,7 +70,7 @@
:table_id
(
id
:venues
)
:special_type
"fk"
:name
"LATITUDE"
:display_name
nil
:display_name
"Latitude"
:updated_at
$
:active
true
:id
$
...
...
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