forked from Stratio/stratio-metabase
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- adaptations for toucan 2 - remove backend code linter git hook - configure stratio modules in clj-kondo ns-module-checker - fix clj-kondo linter warnings - fix in front to make it show our "editing user first namd is forbidden" message - small adaptations in stratio dockerfile
- Loading branch information
1 parent
37a3a7c
commit ab79bb0
Showing
9 changed files
with
115 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
(ns metabase.stratio.util | ||
(:require [clojure.string :as str])) | ||
|
||
(:require | ||
[clojure.stacktrace :refer [print-stack-trace]] | ||
[clojure.string :as str])) | ||
|
||
(defn make-vector | ||
"takes a string containing a coma-seperated list of values an returns a vetor containing those values" | ||
[comma-separated-values] | ||
(if (empty? comma-separated-values) | ||
[] | ||
(->> comma-separated-values | ||
(#(str/split % #",")) | ||
(mapv str/trim) | ||
(filterv #(not (empty? %)))))) | ||
|
||
(filterv seq)))) | ||
|
||
(defn stack-trace [e] | ||
(with-out-str (clojure.stacktrace/print-stack-trace e))) | ||
(defn stack-trace | ||
"returns the stack trace of the exception as a string" | ||
[e] | ||
(with-out-str (print-stack-trace e))) |
Oops, something went wrong.