VITAS changed the topic of #spacedock to: Problems?: https://github.com/KSP-SpaceDock/SpaceDock/issues | Matrix/Riot Chat: https://im.52k.de +spacedock:52k.de Feel free to ask for help, we only bite a little bit! | If you want to help, please check https://github.com/KSP-SpaceDock/SpaceDock-Backend/issues/5 :) | <VITAS> inet users have the attentionspan of a squirrel...
DasSkelett- has joined #spacedock
DasSkelett has quit [Ping timeout: 189 seconds]
Pheonix_Dev[m] has joined #spacedock
<Pheonix_Dev[m]> Hello
VITAS[m] has joined #spacedock
<VITAS[m]> hi
<Pheonix_Dev[m]> How are you?
<VITAS[m]> helathy and in a low risk area so i would say good :)
<VITAS[m]> yourself?
HebaruSan[m] has joined #spacedock
<HebaruSan[m]> Trying to decide whether to hoard guns, gasoline, or bottle caps
<Pheonix_Dev[m]> Defensively guns
<VITAS[m]> im for nukacola caps
<VITAS[m]> they will buy you everything when you need it later
<VITAS[m]> :P
<VITAS[m]> we can also all move to Darklight s place
<VITAS[m]> its a bit out of hamrs way
<VITAS[m]> harms
<HebaruSan[m]> Does he live on Sealand?
<VITAS[m]> i wish he was a prince
<VITAS[m]> but australia is safe enough
<VITAS[m]> with all those deadly animals
FireStriker[m] has joined #spacedock
<FireStriker[m]> Think again
<FireStriker[m]> Nan itโ€™s cool here
<FireStriker[m]> But I did buy a tv cabinet with a redback and itโ€™s best under it
Pheonix_Dev[m] has quit [Quit: Client limit exceeded: 6]
DasSkelett[m] has joined #spacedock
<HebaruSan[m]> Oh! So treating 'update' as a version
<HebaruSan[m]> You know what, who cares about mods named `download`. Let's just go with the easy and obvious format and forget `//`
<DasSkelett[m]> Yes, and it doesn't exist, so 404.
<DasSkelett[m]> I guess FLask goes through the URL segment by segment and for each segment if first checks whether there is one path with with the segment value hardcoded.
<DasSkelett[m]> Yes, and it doesn't exist, so 404.
<DasSkelett[m]> I guess FLask goes through the URL segment by segment and for each segment if first checks whether there is one path with the submitted segment value hardcoded.
<VITAS[m]> btw hows that seeding working?
<DasSkelett[m]> Paused the work on it.
<VITAS[m]> because of our uhm discussion?
<HebaruSan[m]> Sshhhh, he's doing code review on my PRs, don't distract.... ๐Ÿ˜‰
<VITAS[m]> uh oh
<VITAS[m]> dont want to waltz into your date
<VITAS[m]> :P
<VITAS[m]> < migrated his nextcloud instance to 20 lts and bind mount today
<VITAS[m]> so hopfulyl that will not break down anymore and be usefull
<VITAS[m]> (in case you guys ever need space on it....)
<DasSkelett[m]> Mostly because I didn't do any coding work at all, had to reduce my Netflix backlog ;-)
<DasSkelett[m]> Now I first want to review the bunch of open PRs from HebaruSan, he's waiting long enough.
<DasSkelett[m]> But for when I continue work on it, can you take a look at the database and tell me how many mod versions and how many download events there are?
<HebaruSan[m]> Did alpha's db get reset? I can't log in, and all the games and mods seem to be gone
<HebaruSan[m]> I guess it's a new instance because the secret got shared?
<DasSkelett[m]> Yes, it's currently pointing to a empty one.
<HebaruSan[m]> OK
<DasSkelett[m]> It's the one VITAS gave me to test the db upgrading during the prod upgrade.
<DasSkelett[m]> We should probably switch back to the old one, but we need a new secret for that.
<VITAS[m]> that involves me setting a new pw doesnt it?
<DasSkelett[m]> Yes, for `spacedock_testing`
<VITAS[m]> i should also rename the dbs
<VITAS[m]> i find them confusing now
<VITAS[m]> like spacedock_alpha and beta
<VITAS[m]> can you stop alpha and beta sd quick?
<DasSkelett[m]> Okay
<DasSkelett[m]> Done
<VITAS[m]> so alpha db is now spacedock_alpha
<VITAS[m]> same for user
<VITAS[m]> and analog for beta
<VITAS[m]> you have the pw
<VITAS[m]> :)
FireStriker[m] has quit [Quit: Client limit exceeded: 6]
HebaruSan[m] has quit [Quit: Client limit exceeded: 6]
DasSkelett[m] has quit [Quit: Client limit exceeded: 6]
DasSkelett[m] has joined #spacedock
<DasSkelett[m]> Python gives the shape of braces too much relevance
Pheonix_Dev[m] has joined #spacedock
<Pheonix_Dev[m]> How do I download a KSP mod?
<Pheonix_Dev[m]> How do I download a KSP mod?
<DasSkelett[m]> Go to spacedock.info, search for the mod you want, then click the big "Download" button on the right.
<DasSkelett[m]> Go to https://spacedock.info, search for the mod you want, then click the big "Download" button on the right.
<DasSkelett[m]> Uhm, for some reason alpha is throwing database authentication errors now.
VITAS[m] has quit [Quit: Client limit exceeded: 6]
HebaruSan[m] has joined #spacedock
<HebaruSan[m]> BTW `/` on prod scans 20258 rows in the Game table to find the two active ones, why isn't it slower?
<HebaruSan[m]> `Game.active` should probably be indexed
<DasSkelett[m]> Maybe because it's just checking a simple bool?
<HebaruSan[m]> Does postgresql cache certain queries when tables don't change?
<HebaruSan[m]> 20258 simple bools ๐Ÿ™‚
<HebaruSan[m]> I guess it keeps the Game table in memory
Pheonix_Dev[m] has quit [Quit: Client limit exceeded: 6]
<HebaruSan[m]> I'm trying to decide whether it's worth it to take the plunge into multi-column indexes
<HebaruSan[m]> At this point single columns seem to be doing OK for SD
<DasSkelett[m]> Also regarding #295, had pretty much the same thoughts. I'm trying to find a way to remove the DownloadEvent table all together without breaking the "Downloads over time" graph.
Github[m] has joined #spacedock
<Github[m]> https://github.com/KSP-SpaceDock/SpaceDock/pull/295 : Chart downloads per mod version
<DasSkelett[m]> Oh dear
<HebaruSan[m]> Yeah there are bots now
<DasSkelett[m]> Rather slow ones, it looks like.
<HebaruSan[m]> Probably had to route Matrix -> IRC -> Matrix -> ICQ -> Matrix -> Discord to get to us
VITAS[m] has joined #spacedock
<VITAS[m]> i could make them faster
<VITAS[m]> and i thought github would be usefull
Github[m] has quit [Client Quit]
<DasSkelett[m]> <span class="d-mention d-user">VITAS</span> if you have some spare time, can you look at the database and tell us the row count of ModVersion and DownloadEvent ?
HebaruSan[m] has quit [Quit: Client limit exceeded: 6]
KineticSloth8StoneBlue[m] has joined #spacedock
<KineticSloth8StoneBlue[m]> mebbe different channel for Github notifications?... lots of other servers do it that way
VITAS[m] has quit [Quit: Client limit exceeded: 6]
HebaruSan[m] has joined #spacedock
<HebaruSan[m]> SpaceDock is one channel to rule them all
<DasSkelett[m]> Well that's an "interactive" bot that posts links to PRs you mentioned. Doesn't really make sense if you move it into another channel.
<DasSkelett[m]> Very rough estimate: Assuming there's one DownloadEvent row per mod per hour it existed (thanks to the bug attributing downloads to the wrong DownloadEvent/ModVersion), and assuming a linear increase of the mod count, we have around 50.000.000 DownloadEvents.
<HebaruSan[m]> More of an upper bound, right? Lots of mods aren't downloaded frequently
<HebaruSan[m]> Also, my awesome `.with_entities`/`func.sum`/`.group_by` query is going away
<HebaruSan[m]> F
<DasSkelett[m]> Yes. On the other hand, the mods probably didn't increase linearly, but more hyperbolic (likely with a huge jump start from KerbalStuff and). Hard to do a good estimate.
<DasSkelett[m]> Yes. On the other hand, the mods probably didn't increase linearly, but more hyperbolic (likely with a huge jump start from KerbalStuff). Hard to do a good estimate.
VITAS[m] has joined #spacedock
<VITAS[m]> on prod?
<DasSkelett[m]> Yes
<VITAS[m]> sec
<VITAS[m]> 14509
<DasSkelett[m]> That's ModVersion I guess, and DownloadEvent?
<VITAS[m]> yes
<VITAS[m]> 10328064
<VITAS[m]> i still think dl count per mod for everyone and detailed stats from matomo for the mod autrhor would be a good solution
<DasSkelett[m]> Thanks! 10 million, had the right order of magnitude with my estimation. That is a lot, indeed.
<HebaruSan[m]> Pls don't drop DownloadEvent until I import it into ModVersion.download_count ๐Ÿ™‚
<DasSkelett[m]> Haha, I for one didn't plan to.
KineticSloth8StoneBlue[m] has quit [Quit: Client limit exceeded: 6]
<HebaruSan[m]> That parses perfectly to my eye
<HebaruSan[m]> Ohh never mind. It's because Coffeescript thought we were in an object context.
<HebaruSan[m]> It was looking for the colon between the property name and value
oeuf has joined #spacedock
uovo has quit [Ping timeout: 189 seconds]
VITAS[m] has quit [Quit: Idle timeout reached: 10800s]
<HebaruSan[m]> SD has its own custom styling made as edits to bootstrap_dark.min.css ๐Ÿคฎ
<DasSkelett[m]> Really?!
<HebaruSan[m]> `.hidden` isn't defined in the standard version of that file as far as I can tell
<HebaruSan[m]> Neither is `.navbar-toggle`
<DasSkelett[m]> Woah
<HebaruSan[m]> I don't even know why that's called `.min.css`, there's not much minimized about that file
<HebaruSan[m]> I don't even know why that's called `.min.css`, there's not much minified about that file