yvanzo, it would be nice if the script checked how much space was free and you should have a good estimate of how much each process will take, build, populating the database, building the index, and whether the operation is likley to succeed or not.
ruaok: i looked into spark missing data. it seems incremental dumps have not been happening since 22, no dump -> no spark import. hence the missing data.
reosarevok
Jeez. Found out JetBrains software doesn't clean after itself, so I had 6 GB of old cache crap
nelgin joined the channel
nelgin
Agghhh...over 4 hours into loading the indexes and lose power...of course my UPS is bad and I've been waiting for an opportunity to swap it out. Looks like I got one :/
tykling_
:|
nelgin
Now I don't know if my db will be corrupt, but I expect pgsql will check its tables when it comes up?
Darkloke joined the channel
_lucifer
Mr_Monkey: regarding the react context PR, I had taken a shot at it the last month. I didn't get time to complete it. However, I was able to get the server side up and running at that time. https://github.com/metabrainz/listenbrainz-serv...
The frontend and backend parts are unrelated so we can merge them separately as well. If you prefer, I can add that to the current PR otherwise I can open a different PR.
Mr_Monkey
Oh nice ! Let't keep them separate _lucifer, I've got another 20 modified files to commit on that one…
But that's great, We'll only have to connect the two after they're done
_lucifer
sure 👍
yup, that should be one or two line change
akshaaatt[m]: ping
akshaaatt[m]
Hi _lucifer !
_lucifer
akshaaatt[m], hi! i reviewed the tagger fix. just one change needed to add a user friendly message other than that its ready to merge and deploy.
akshaaatt[m]
Okayy I'm on it!
_lucifer
awesome, thanks!
akshaaatt[m]
So I'll add the toast in the catch block?
_lucifer
yeah that should work, just like the one that was already there
akshaaatt[m]
Cool
_lucifer
something like "Something went wrong! We could not select the directory"
akshaaatt[m]
Okaayy
Done _lucifer
The starting with tests PR is incomplete. We can review that at last and if possible I could work on it today as per your directions
ruaok: what do you think say we read 8000 lines at a time from normal dump, send chunks of 1000 to 8 threads for serializing/deserializing then wait for their output and write it to the spark dump and repeat?
also, i just remembered let's apply for google oauth verification
I'll follow your lead. We can do it in a separate PR to easy reviewing.
That's not an english sentence. "to ease reviewing."
But I agree we should hold off merging 1361 until the connect services page is done.
_lucifer
yup agreed, i have fixed the unit tests. I'll add some more and then get to the connect services page.
Mr_Monkey
Happy to help on that one if you need it
_lucifer
thanks!
alastairp, have you had the chance to look at the spotify rewrite or youtube PRs specifically deleting the user on revoking authorization. I wanted to run a catch by you and see if we should change some things.
alastairp
let me open it up, and you can run it past me now
_lucifer
cool. so the issue is we delete the user entry from external_service_oauth table but keep it in the listens_importer table if the user has externally revoked auth.
we also have to add a bit of logic in the template to figure out the current status.
to delete the entry from the listens_import table, the only way is that the user unlinks manually.
now i wonder if this special logic is worth it, if instead of deleting the user we add a flag to listens_import table as you had suggested some time ago
all of this boils down to simply checking that flag.
alastairp
right
so currently you check if there's an error by doing the outer join and seeing if there is a row in listens_importer, but no row in external_service_auth?
_lucifer
yeah right
alastairp
ah, but get_user_import_details first selects from external_service_oauth
what does listens_importer contain? this is like a request of a user to import from a given service?
why don't you `SELECT FROM listens_import OUTER JOIN external_service_auth` ?
that'd make external_service_auth.whatever null in this case, which is almost as easy as a flag