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
fc55f139
Commit
fc55f139
authored
8 years ago
by
Allen Gilliland
Browse files
Options
Downloads
Patches
Plain Diff
lint fix
parent
af5013a1
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/email/messages.clj
+1
-1
1 addition, 1 deletion
src/metabase/email/messages.clj
src/metabase/task/follow_up_emails.clj
+3
-4
3 additions, 4 deletions
src/metabase/task/follow_up_emails.clj
with
4 additions
and
5 deletions
src/metabase/email/messages.clj
+
1
−
1
View file @
fc55f139
...
...
@@ -106,7 +106,7 @@
{
:heading
"We’d love your feedback."
:callToAction
"It looks like Metabase wasn’t quite a match for you. Would you mind taking a fast 5 question survey to help the Metabase team understand why and make things better in the future?"
:link
"http://www.metabase.com/feedback/this-thing-sucks"
}
{
:heading
"We hope you've been enjoing Metabase."
{
:heading
"We hope you've been enjo
y
ing Metabase."
:callToAction
"Would you mind taking a fast 6 question survey to tell us how it’s going?"
:link
"http://www.metabase.com/feedback/best-analytics-evar"
}))
message-body
(
stencil/render-file
"metabase/email/follow_up_email"
context
)]
...
...
This diff is collapsed.
Click to expand it.
src/metabase/task/follow_up_emails.clj
+
3
−
4
View file @
fc55f139
...
...
@@ -38,12 +38,11 @@
(
k/order
:date_joined
:ASC
)
(
k/limit
1
))
first
:date_joined
.getTime
)]
:date_joined
)]
;; 2. we need to be 2+ weeks (14 days) from creation to send the follow up
(
when
(
<
(
*
14
24
60
60
1000
)
(
-
(
System/currentTimeMillis
)
instance-created
))
;; 3. we need
access to email AND the instance must be opted into anonymous tracking
(
-
(
System/currentTimeMillis
)
(
.getTime
^
java.sql.Timestamp
instance-created
))
)
;; 3. we need access to email AND the instance must be opted into anonymous tracking
(
when
(
and
(
email/email-configured?
)
(
let
[
tracking?
(
setting/get
:anon-tracking-enabled
)]
(
or
(
nil?
tracking?
)
(
=
"true"
tracking?
))))
...
...
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