Eliminates Yodlee1, because it's broken.

This commit is contained in:
2022-07-07 14:22:37 -07:00
parent 42c9c93623
commit f64df06110
9 changed files with 5 additions and 16 deletions

View File

@@ -1,5 +1,5 @@
{:linters {:clojure-lsp/unused-public-var {:exclude-when-defined-by #{mount.core/defstate}} {:linters {:clojure-lsp/unused-public-var {:exclude-when-defined-by #{mount.core/defstate}}
:clojure-lsp/unresolved-var {:exclude [(amazonica.aws.s3)]} :clojure-lsp/unresolved-var {:exclude [(amazonica.aws.s3 amazonica.aws.sqs)]}
:unresolved-var {:exclude [amazonica.aws.s3]} :unresolved-var {:exclude [amazonica.aws.s3]}
:private-call {:level :off} :private-call {:level :off}
:mount/defstate {:level :warning}} :mount/defstate {:level :warning}}

View File

@@ -17,7 +17,6 @@
(let [[{:keys [message-id receipt-handle body]}] (:messages (sqs/receive-message {:queue-url queue-url (let [[{:keys [message-id receipt-handle body]}] (:messages (sqs/receive-message {:queue-url queue-url
:wait-time-seconds 1 :wait-time-seconds 1
:count 1}))] :count 1}))]
(when message-id (when message-id
(sqs/delete-message {:queue-url queue-url (sqs/delete-message {:queue-url queue-url
:receipt-handle receipt-handle} ) :receipt-handle receipt-handle} )
@@ -26,9 +25,6 @@
(= ":intuit" body) (= ":intuit" body)
(i/import-intuit) (i/import-intuit)
(= ":yodlee" body)
(y/import-yodlee)
(= ":yodlee2" body) (= ":yodlee2" body)
(y2/import-yodlee2) (y2/import-yodlee2)

View File

@@ -81,6 +81,6 @@
(def import-yodlee (allow-once import-yodlee)) (def import-yodlee (allow-once import-yodlee))
(mount/defstate import-worker #_(mount/defstate import-worker
:start (scheduler/every (* 1000 60 60 8) (heartbeat import-yodlee "import-yodlee")) :start (scheduler/every (* 1000 60 60 8) (heartbeat import-yodlee "import-yodlee"))
:stop (scheduler/stop import-worker)) :stop (scheduler/stop import-worker))

View File

@@ -9,7 +9,7 @@
(defroutes routes (defroutes routes
(wrap-routes (wrap-routes
(context "/yodlee" [] #_(context "/yodlee" []
(GET "/fastlink" {:keys [identity]} (GET "/fastlink" {:keys [identity]}
(assert-admin identity) (assert-admin identity)
(let [[session token] (yodlee/get-access-token)] (let [[session token] (yodlee/get-access-token)]

View File

@@ -98,7 +98,6 @@
#'sysco/sysco-invoice-importer #'sysco/sysco-invoice-importer
#'auto-ap.background.invoices/close-auto-invoices-worker #'auto-ap.background.invoices/close-auto-invoices-worker
#'gq-clients/current-balance-worker #'gq-clients/current-balance-worker
#'yodlee/import-worker
#'yodlee2/import-worker #'yodlee2/import-worker
#'yodlee2/account-worker #'yodlee2/account-worker
#'intuit/import-worker #'intuit/import-worker

View File

@@ -391,7 +391,7 @@
(log/error e))))) (log/error e)))))
(mount/defstate in-memory-cache-worker #_(mount/defstate in-memory-cache-worker
:start (scheduler/every (* 5 60 1000) refresh-in-memory-cache) :start (scheduler/every (* 5 60 1000) refresh-in-memory-cache)
:stop (scheduler/stop in-memory-cache-worker)) :stop (scheduler/stop in-memory-cache-worker))

View File

@@ -15,7 +15,6 @@
"reminders" :admin-reminders "reminders" :admin-reminders
"vendors" :admin-vendors "vendors" :admin-vendors
"excel-import" :admin-excel-import "excel-import" :admin-excel-import
"yodlee" :admin-yodlee
"yodlee2" :admin-yodlee2 "yodlee2" :admin-yodlee2
"plaid" :admin-plaid} "plaid" :admin-plaid}
"invoices/" {"" :invoices "invoices/" {"" :invoices

View File

@@ -51,11 +51,6 @@
[:span {:class "name"} "Rules"]]] [:span {:class "name"} "Rules"]]]
[:li.menu-item
[:a {:href (bidi/path-for routes/routes :admin-yodlee), :class (str "item" (active-when ap = :admin-yodlee))}
[:span {:class "icon icon-saving-bank-1" :style {:font-size "25px"}}]
[:span {:class "name"} "Yodlee Link"]]]
[:li.menu-item [:li.menu-item
[:a {:href (bidi/path-for routes/routes :admin-yodlee2), :class (str "item" (active-when ap = :admin-yodlee2))} [:a {:href (bidi/path-for routes/routes :admin-yodlee2), :class (str "item" (active-when ap = :admin-yodlee2))}
[:span {:class "icon icon-saving-bank-1" :style {:font-size "25px"}}] [:span {:class "icon icon-saving-bank-1" :style {:font-size "25px"}}]

View File

@@ -410,6 +410,6 @@
{:component-did-mount (fn [] {:component-did-mount (fn []
(re-frame/dispatch [::mounted]))})]) (re-frame/dispatch [::mounted]))})])
(defn admin-yodlee-page [] #_(defn admin-yodlee-page []
[side-bar-layout {:side-bar [admin-side-bar {}] [side-bar-layout {:side-bar [admin-side-bar {}]
:main [admin-yodlee-content]}]) :main [admin-yodlee-content]}])