It computes the entire list whereas it used not to compute it in most cases.
bitmap
right, but I'm not sure computing the list is an expensive operation
the list will be very small in most cases
yvanzo
I attempted to rewrite it to avoid that, but it doesn't work yet and doesn't look pretty either.
pristine__
alastairp: what you say makes sense. But a thought crossed my mind, do we need to replace days here. My goal is to collect dataframes of last X months from the present month, so even if it is 30-07-2019, a month before it will be 30-06-2019. Date doesn't matter here, no?
reosarevok
FWIW, in the real life cases where I tested it, the recursion didn't seem to make it particularly slow or anything
Wizzup joined the channel
As I mentioned, the chances it needs to hit more than two loops are small
bitmap
I mean, realistically it could hit a few levels of recursion at most
yvanzo
Yup, but it seems just unsafe to have a recursion based on user input.
reosarevok
I mean, what's the worst that can happen?
At most it can run for a few hundred times, if someone does try to troll by adding redirects to every wikipedia language on one WD item
And that seems like a trolling so weird, not even dseomn would bother :p
bitmap
it's still bound by what languages are actually available though
yvanzo
reosarevok: made some comments on the 1st PR, probably just minor changes
reosarevok
Ok, will check
yvanzo
I will try to make my own version work and push it (for the latest PR)
bitmap
how will you avoid calculating the list?
yvanzo
bitmap: blacklisting unwanted languages
reosarevok
Want to quickly look through a couple tiny PRs from the newer batches too?
alastairp
pristine__: right, if you're interested in collection information related to some number of months, you probably don't need the date in any of your queries
reosarevok
(I'm also happy to look at more old ones if you're not in a hurry)
bitmap
don't you have to calculate unwanted languages then?
alastairp
are you interested in knowing "statistics in the last 30 days until today" or "statistics for June"?
yvanzo
bitmap: not all of these, just the ones we checked
(no need to check them all now or anything, just might be easy pickings before beta
)
BrainzGit joined the channel
yvanzo
reosarevok: listing all of your PRs don't help with prioritizing :P
reosarevok
That's not all, that's short ones with one approval :p
yvanzo
will review these and check URL cleanup tickets then
reosarevok
Thanks!
yvanzo
(about itunes, the only way out without a style decision would be to disable auto-select for itunes/apple music URLs)
reosarevok
I know
Give me one more release cycle to figure out wtf
The links can be automatically cleaned up anyway AFAICT
SothoTalKer
itunes ftw
bitmap
sounds like we have enough work for now anyway :)
reosarevok
Sure
yvanzo: updated the doc PR
bitmap
we could go through more old PRs on friday if you'd like
reosarevok
I'm at Wikimedia Eesti Summer Days on Friday
yvanzo
yay! ty
reosarevok
So maybe not? :)
bitmap
oh okay
reosarevok
(but if you can look at some of mine without me and complain, I'll deal with them once I'm back!)
yvanzo
I will try to push a new beta this week after having reviewed/merged what can be.
reosarevok
If you both approve something of mine, feel free to merge without waiting for me
(during Fri - Sun)
D4RK-PH0ENiX has quit
spellew
ferbncode: Is there anything I should be doing while waiting for pull requests to be reviewed?
D4RK-PH0ENiX joined the channel
D4RK-PH0ENiX has quit
D4RK-PH0ENiX joined the channel
ferbncode
spellew: iliekcomputers would help us merge the approved PRs by tomorrow and then we can start with the new tasks. Till then, could you also attach a screenshot of how the artist review page looks like? (If you have it locally). I checked the code and will add the review tomorrow
spellew
ferbncode: Sure thing
ferbncode
Thanks! :)
dseomn
reosarevok: you're right that *I* wouldn't do that, but I do know a couple people who might ;)