Freso: There are two ways of doing things - without a JSON endpoint on MB, we'd need to do https://meta.discourse.org/t/login-to-discourse... which is what would require all the Ruby. If we can add a JSON endpoint to MB for authenticated users, then we can use the ready-made basic OAuth2 plugin (which is the easier option, IMO)
Freso
Ah, right.
Okay. :)
Then we agree. 🙌
(I would love to do a custom MusicBrainz OAuth2 provider module which we could also contribute upstream to Discourse, but I also agree the 2nd option is likely easier.)
Hm. Maybe we could lure some volunteer at Discourse to do the former option?
weeksio_ joined the channel
LordSputnik
Not sure whether they'd see the value in that
Freso
opatel99: How's your Ruby? XD
(Poor opatel99 :p)
weeksio_
chirlu`: where can I find the patch you used to get solr to work with your sandbox yesterday?
didn't you have it working yesterday? running `python run.py`?
in vagrant
weeksio_
CJ_: service solr restart
gcilou
OK. Im still not sure that it is working correctly. yes, python run.py works but it tells me nothing
CJ_
weeksio_, Trying now.
Gentlecat
gcilou: what do you mean tells you nothing? it's not supposed to, apart from log output
if you can open local server from your browser, it's working
CJ_
weeksio_, Odd. Both con and docs have values.
NM. Apparently it is only an occasional NPE.
weeksio_, For some reason there is not always a ResultContext.
weeksio_
CJ_: I really don't know much about what's happening in this code
CJ_
I am not positive what this method is trying to achieve so I am not sure of the best resolution.
But the short term fix would be to check if con is null and then skip the rest of the code.
weeksio_
Mineo ^ ?
CJ_
It looks like nothing would happen if there are no docs, so that should be a safe solution.
gcilou
Gentlecat, Ok. Is the profiler supposed to say 'inactive'?
CJ_
weeksio_, Without thoroughly digging through the entire infrastructure that is the best solution I have for you currently.
weeksio_
sounds good to me
stanislas
LordSputnik: I forgot to add test_publication.py :) Sorry if you started the tests already.
CJ_
Also, logging should be configured and used. printStackTrace should never be used.
weeksio_, I will take a look at this more tomorrow and see what I can come up with.
weeksio_
great....thanks again
CJ_
No problem. :)
Gentlecat
gcilou: you mean in the debug panel on the page?
gcilou
Yes
Gentlecat
yeah, you shouldn't need it
gcilou
OK. So if when i press 'browse reviews', 'no reviews found' comes up, I'm assuming that that means im doing something wrong right?
ariscop joined the channel
Gentlecat
why would it be wrong?
you modified review editor, so that's what you need to check
opatel99
Freso: sorry I missed ^. Ruby was the first web framework I learned and I believe I have enough knowledge of it to get by. I am pretty confident i could definitely do some work if you need me to. Of course, that is dependent on the level of the assignment. I'd like to give it a shot at least
Gentlecat
make sure that spotify player shows up on these pages
gcilou
Right but I can't enter the review editor when there aren't any reviews, can I?
Or what am I missing?
Freso
opatel99: :) I'd like to make a GCI task for making an OAuth2 plugin (or get as close to making one as possible with current MB code). There are several already existing modules on this, but it's unlikely you'd be able to get much Ruby related help from us.
*Discourse plugin
If you think it sounds doable/reasonable, let me know.
stanislas: your master branch on the repo looks OK to me, should be possible to just add the missing file
stanislas
Can I make a separate commit and not reset the last two ?
I've found reseting the merge not very easy.
Gentlecat
gcilou: yes
stanislas
LordSputnik: It is easy, but after that I've incidentaly deleted all my non-commited changes.
Gentlecat
that will require registering an app in MusicBrainz
see installation instructions
gcilou
OK. Thank you I will try that
stanislas
LordSputnik: Could you give me the line in /config/test.py which I should change, It erased itself after the merge.
gcilou
Gentlecat, after following the instructions in the docs and at MusicBrainz, I recieved this error when trying to run `python run.py` socket.error: [Errno 98] Address already in use
chirlu`
Mineo: It might be better not to close SOLR issues that are fixed, but not deployed. (cc: yeeeargh)