Skip to content
Snippets Groups Projects
Unverified Commit 15fc3351 authored by Chris Truter's avatar Chris Truter Committed by GitHub
Browse files

Update various TODO comments (#39422)

* Vague uncertainty from 5 years ago - gone

* Remove obsolete TODO

* Link to issue for incomplete date formatting
parent 3d76f3d3
No related branches found
No related tags found
No related merge requests found
......@@ -159,7 +159,7 @@
:joinedUserName (or (:first_name new-user) (:email new-user))
:joinedViaSSO google-auth?
:joinedUserEmail (:email new-user)
:joinedDate (t/format "EEEE, MMMM d" (t/zoned-date-time)) ; e.g. "Wednesday, July 13". TODO - is this what we want?
:joinedDate (t/format "EEEE, MMMM d" (t/zoned-date-time)) ; e.g. "Wednesday, July 13".
:adminEmail (first recipients)
:joinedUserEditUrl (str (public-settings/site-url) "/admin/people")}))})))
......
......@@ -104,7 +104,7 @@
[_ value locale]
;; Test value against a series of regexes (similar to those in metabase/parameters/utils/mbql.js) to determine
;; the appropriate formatting, since it is not encoded in the parameter type.
;; TODO: this is a partial implementation that only handles simple dates
;; TODO: this is incomplete, and only handles simple dates https://github.com/metabase/metabase/issues/39385
(condp (fn [re value] (->> (re-find re value) second)) value
#"^(this[a-z]+)$" :>> #(formatted-value :date/relative % locale)
#"^~?([0-9-T:]+)~?$" :>> #(formatted-value :date/single % locale)
......
......@@ -56,7 +56,6 @@
;;; -------------------------------------------------- Schemas --------------------------------------------------
;;; TODO -- this does not actually ensure that the string cannot be BLANK at all!
(def NonBlankString
"Schema for a string that cannot be blank."
(mu/with-api-error-message ::lib.schema.common/non-blank-string (deferred-tru "value must be a non-blank string.")))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment