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
7de85c1f
Commit
7de85c1f
authored
10 years ago
by
Allen Gilliland
Browse files
Options
Downloads
Patches
Plain Diff
reset 'latitude' column to its proper state.
parent
9b59cd4b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/metabase/api/meta/field_test.clj
+4
-3
4 additions, 3 deletions
test/metabase/api/meta/field_test.clj
with
4 additions
and
3 deletions
test/metabase/api/meta/field_test.clj
+
4
−
3
View file @
7de85c1f
...
...
@@ -55,11 +55,12 @@
;; ## PUT /api/meta/field/:id
;; Check that we can update a Field
;; TODO - this should NOT be modifying a field from our test data, we should create new data to mess with
(
expect-eval-actual-first
(
match-$
(
sel
:one
Field
:id
(
field->id
:venues
:latitude
))
{
:description
nil
:table_id
(
table->id
:venues
)
:special_type
"
latitude
"
:special_type
"
fk
"
:name
"LATITUDE"
:updated_at
$
:active
true
...
...
@@ -69,8 +70,8 @@
:preview_display
true
:created_at
$
:base_type
"FloatField"
})
(
let
[
result
((
user->client
:rasta
)
:put
200
(
format
"meta/field/%d"
(
field->id
:venues
:latitude
))
{
:special_type
:latitude
})]
(
let
[
result
((
user->client
:rasta
)
:put
200
(
format
"meta/field/%d"
(
field->id
:venues
:latitude
))
{
:special_type
"fk"
})]
;; this is sketchy. But return the Field back to its unmodified state so it won't affect other unit tests
(
upd
Field
(
field->id
:venues
:latitude
)
:special_type
nil
)
(
upd
Field
(
field->id
:venues
:latitude
)
:special_type
"latitude"
)
;; return the modified Field
result
))
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