cljdoc

martinklepsch 2022-04-05T09:23:57.904489Z

OOhhhhh, I’ve been gone for a little while it seems. Lovely to see so many things happening here! Great to have you back @corasaurus-hex and thanks @lee for being so present 🙂 If there’s anything you need from me please put it in this thread and I’ll try to get back to it this week 💚

💚 1
❤️ 2
💜 1
martinklepsch 2022-04-05T09:26:50.253079Z

In case you’re wondering: everything is going well in my life. I’m still in Cape Town for a little bit and it’s just been “full with good times”… sometimes in a way that’s a challenge to balance with work 😅 so when I’m at the computer I mostly try to keep up with that. Going back to Berlin in a week or so, which might be a good change of pace in that regard but we’ll see. Hope everyone is well and you’re enjoying the spring if it has already reached your respective location 😄

lread 2022-04-05T12:37:34.654379Z

Nice to see you back and happy to hear that all is well!

❤️ 1
Cora (she/her) 2022-04-05T13:04:50.817999Z

that is the best sort of reason for being absent and I happily endorse it!! take your time and enjoy a little extra just for us 💜

❤️ 1
➕ 1
rvalentini 2022-04-05T16:24:05.855949Z

Welcome back 🥳

Matthew Davidson 2022-04-05T04:52:47.304799Z

What determines the version shown in README badges? I cut a 1.0.0-rc1 for primitive-math, verified it, and cut a 1.0.0 release a few minutes later. The badge link goes to the 1.0.0 documentation, but the badge itself still shows 1.0.0-rc1. You can see it at https://github.com/clj-commons/primitive-math

Matthew Davidson 2022-04-06T10:30:42.562469Z

Yeah, it’s working now. Sorry to raise the alarm, and thx for looking into it

rvalentini 2022-04-06T14:47:20.377229Z

Thanks for reporting that @kingmob 👍 I guess there is still room for improvement concerning the badge caching from our side, I just opened an issue for that: https://github.com/cljdoc/cljdoc/issues/573

❤️ 2
rvalentini 2022-04-05T08:02:09.679549Z

Hey kingmob 👋🙂 when calling https://cljdoc.org/badge/group-id/artifact-id, we look up the most recent cljdoc build and return the Badgen link for this version. I just learned that when your group-id and artifact-id are identical it also works when you just call https://cljdoc.org/badge/that-id. You cannot provide your own version-id when calling this endpoint though. There has been some discussion here already it seems: https://github.com/cljdoc/cljdoc/issues/348 Maybe the build just did not complete yet when you tried it? At the moment the version looks fine, right? I see 1.0.0 as expected.

rvalentini 2022-04-05T08:06:27.434919Z

But when the 1.0.0-rc1 link already resolved to the 1.0.0 documentation version the build must have been completed 🤔

rvalentini 2022-04-05T08:21:20.940819Z

On both routes (badge & documentation) the latest release version is resolved the same way internally. I don't really have an explanation how this can get out of sync.

martinklepsch 2022-04-05T09:21:25.730479Z

I think GitHub may cache the badge image for a while? Or maybe the caching is somewhere else but based on @riccardovalentini1854 said, sounds like its likely a caching issue?

lread 2022-04-05T13:16:19.064239Z

Ya GitHub https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/about-anonymized-urls#an-image-that-changed-recently-is-not-updating. And there is always your browser cache too... But we should double check our cache control headers for badges.

rvalentini 2022-04-05T16:23:24.952909Z

Good point 👍 we are currently setting a custom max-age of 30 min for badges, which would explain it.