clojureverse-ops

dotemacs 2021-04-26T17:28:07.012200Z

Not sure what’s going on, but on https://clojurians-log.clojureverse.org/datascript/2019-04-10 if you click on the < button, which links to: https://clojurians-log.clojureverse.org/datascript/2019-03-18 I get 404. Thanks

oxalorg (Mitesh) 2021-04-26T17:43:04.013600Z

Just repl'd in to check whats the issue, somehow there are no messages for that day but it still shows up as a valid date. This breaks our frontend rendering.

user=> (some #{"2019-03-18"} (map first (q/channel-days (db) "datascript")))
"2019-03-18"
user=> (q/channel-day-messages (db) "datascript" "2019-03-18")
()
As a temporary workaround you can use these dates so you can keep traversing the history πŸ™‚
user=> (take 5 (drop-while #(not= % "2019-03-18") (map first (q/channel-days (db) "datascript"))))
("2019-03-18" "2019-02-28" "2019-02-16" "2019-02-15" "2019-02-09")
https://clojurians-log.clojureverse.org/datascript/2019-02-28

oxalorg (Mitesh) 2021-05-03T07:16:10.015600Z

Issue created: https://github.com/clojureverse/clojurians-log-app/issues/136

oxalorg (Mitesh) 2021-04-26T17:43:09.013700Z

@dotemacs

oxalorg (Mitesh) 2021-04-26T17:44:54.013900Z

Thanks for pointing this out, I'll create an issue over the weekend πŸ™Œ πŸ™‚

πŸ‘ 1