Skip to content

Commit

Permalink
workspace filter state fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Jun 10, 2016
1 parent 200c407 commit 982e776
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions src/cljs/ulysses/handlers.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
update-db-pagination
verify-user-poll-response
debounce-request-grant-ops
debounce-request-faculties-pool]]))
debounce-request-faculties-pool
validate-builder-filters]]))

;; ----------------------------------------------------------------------------
;; general
Expand Down Expand Up @@ -252,10 +253,12 @@
(select-keys [:id :name
:grant-op-id :user-id
:updated-at :created-at
:faculties])
:faculties :filters])
(update :filters
(fn [jstr]
(json->clj jstr :keywords)))
(-> jstr
(json->clj :keywords)
(update :faculty-title-set set))))
(update :faculties
(fn [faculties]
(map :id faculties))))
Expand Down
2 changes: 1 addition & 1 deletion src/cljs/ulysses/utils.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@
(-> response :user :netid string/blank? not))

(defn validate-builder-filters
[{:keys [faculty-title-set faculty-years-uconn metrics :as filters]}]
[{:keys [faculty-title-set faculty-years-uconn metrics] :as filters}]
(and
; general
(map? filters)
Expand Down

0 comments on commit 982e776

Please sign in to comment.