Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty day messages breaking history chain #136

Open
oxalorg opened this issue May 3, 2021 · 0 comments
Open

Empty day messages breaking history chain #136

oxalorg opened this issue May 3, 2021 · 0 comments

Comments

@oxalorg
Copy link
Member

oxalorg commented May 3, 2021

As dotemacs pointed out on slack:

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.

My response to that:

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 :slightly_smiling_face:
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

This was a temporary fix, but we need to look into why an empty day is being cached

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant