Skip to content

Commit

Permalink
Update pulse with dashboard name before sending it
Browse files Browse the repository at this point in the history
  • Loading branch information
grios-stratio committed Jan 29, 2024
1 parent f2b45ae commit ed2b2f7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/metabase/pulse.clj
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,11 @@
;; This is usually already done by this step, in the `send-pulses` task which uses `retrieve-pulse`
;; to fetch the Pulse.
pulse/hydrate-notification
(merge (when channel-ids {:channel-ids channel-ids})))]
(merge (when channel-ids {:channel-ids channel-ids}))
;; < STRATIO - Use dashboard name in email subscriptions: update pulse name with dashboard
;; name if there is dahsboard (i. e., pulse is a subscription). The "original" name we have
;; changed by an UUID in order to be able to do export/import operations in CICD.
(assoc :name (or (:name dashboard) (:name pulse))))]
;; STRATIO >
(when (not (:archived dashboard))
(send-notifications! (pulse->notifications pulse dashboard)))))

0 comments on commit ed2b2f7

Please sign in to comment.