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
77a09410
Unverified
Commit
77a09410
authored
4 years ago
by
Cam Saul
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Test fix
(#15082)
* Test fix
* Fix whitespace error
parent
cecb7d6c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/metabase/api/notify.clj
+1
-1
1 addition, 1 deletion
src/metabase/api/notify.clj
test/metabase/query_processor_test/date_bucketing_test.clj
+8
-8
8 additions, 8 deletions
test/metabase/query_processor_test/date_bucketing_test.clj
with
9 additions
and
9 deletions
src/metabase/api/notify.clj
+
1
−
1
View file @
77a09410
...
...
@@ -16,7 +16,7 @@
Caller can optionally specify a `:table_id` or `:table_name` in the body to limit updates to a single
`Table`. Optional Parameter `:scan` can be `\"full\" or \"schema\" for a full sync or a schema sync, available
regardless if a `:table_id` or `:table_name` is passed.
This endpoint is secured by an API key that needs to be passed as a `X-METABASE-APIKEY` header which needs to be defined in
This endpoint is secured by an API key that needs to be passed as a `X-METABASE-APIKEY` header which needs to be defined in
the `MB_API_KEY` [environment variable](https://www.metabase.com/docs/latest/operations-guide/environment-variables.html#mb_api_key)"
[
id
:as
{{
:keys
[
table_id
table_name
scan
]}
:body
}]
{
table_id
(
s/maybe
su/IntGreaterThanZero
)
...
...
This diff is collapsed.
Click to expand it.
test/metabase/query_processor_test/date_bucketing_test.clj
+
8
−
8
View file @
77a09410
...
...
@@ -1074,7 +1074,7 @@
(
deftest
field-filter-start-of-week-test
(
testing
"Field Filters with relative date ranges should respect the custom start of week setting (#14294)"
(
mt/dataset
checkins
:1-per-day
(
let
[
query
(
mt/native-query
{
:query
(
str
"SELECT
id,
dayname(\"TIMESTAMP\") as day "
(
let
[
query
(
mt/native-query
{
:query
(
str
"SELECT dayname(\"TIMESTAMP\") as day "
"FROM checkins "
"[[WHERE {{date_range}}]] "
"ORDER BY \"TIMESTAMP\" ASC "
...
...
@@ -1088,13 +1088,13 @@
:name
"created_at"
:target
[
:dimension
[
:template-tag
"date_range"
]]
:value
"past1weeks"
}]})]
(
doseq
[[
first-day-of-week
expected
]
{
"sunday"
[
6
"Sunday"
]
"monday"
[
7
"Monday"
]
"tuesday"
[
8
"Tuesday"
]
"wednesday"
[
9
"Wednesday"
]
"thursday"
[
3
"Thursday"
]
"friday"
[
4
"Friday"
]
"saturday"
[
5
"Saturday"
]}]
(
doseq
[[
first-day-of-week
expected
]
{
"sunday"
[
"Sunday"
]
"monday"
[
"Monday"
]
"tuesday"
[
"Tuesday"
]
"wednesday"
[
"Wednesday"
]
"thursday"
[
"Thursday"
]
"friday"
[
"Friday"
]
"saturday"
[
"Saturday"
]}]
(
mt/with-temporary-setting-values
[
start-of-week
first-day-of-week
]
(
is
(
=
expected
(
mt/first-row
...
...
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