TOPIC: MetaBrainz Community and Development channel | MusicBrainz non-development: #musicbrainz | New GSoC students start here: https://goo.gl/7jsjG2 | Channel is logged; see https://musicbrainz.org/doc/IRC for details | Meeting agenda (Europe will have entered DST, so time will be 17:00 UTC): Reviews
reosarevok
Oh no. DST.
alastairp
europe has entered the room
reosarevok
alastairp: more like europe has left the room, given the recent vote :p
alastairp
well, the important parts of europe are still here
did David get back to you?
aliamo joined the channel
aliamo_ joined the channel
aliamo has quit
reosarevok
Not yet
But I assume he has more stuff to do too
Mr_Monkey
akhilesh: Maybe make it a secondary goal. I think having the auth mechanism in place would allow for some flexibility, for example with our rate-limiting policy, and for future POST endpoints.
reosarevok
I mean, MB wants to eventually require auth for everything FWIW
(and tokens)
akhilesh
Mr_Monkey: You mean optional goal, if we will have remaining?
Mr_Monkey
Correct.
akhilesh
But it will require some schema changes because we should not varify every request by sending one more request to MB. Mr_Monkey
akhilesh: We'll definitely be using MB to authenticate rather than store tokens ourselves. I'll leave it to the pros to think about how to implement it for the various MetaBrainz projects. Having the mechanism in place for an auth request to MB would be a good first step. I'm thinking for example in the near future using the API to submit user collections .
akhilesh
Mr_Monkey: When we will implement submit user collection, Think if we will store token of that user at MB and if the user will not be registered at BB, then MB verify that user correct, but BB will not know that user. Then how will handle that situation?
akhilesh: the BB web server currently uses tokens from MB validated by a passport strategy (https://github.com/LordSputnik/passport-musicbr...) and checking the user with its own editor table. I think that would work for the API as well (as a first step)
Is there someone here who is experience on creating dockerfile ??
akhilesh
Mr_Monkey: ok, I am thinking about it.
amCap1712
cyna: yvanzo perhaps
yvanzo
Cyna: what for?
Cyna
I'm trying to make work easy by dockerizing musicbrainz-server
I've made great progress but have some issues to face
I've created dockerfile for both musicbrainz-server and the db to be used and created builds for the same
problem here is whenever I bind mount a directory its replacing the original contents in the container with the empty folder on my machine path specified
Is there a way to prevent the over writing due to superiority ?
reosarevok
Isn't there already a docker version of mbs?
Cyna
there is musicbrainz-docker if you are speaking of it
aliamo_ has quit
its weird working with that setup... It has a lot built into it
aliamo joined the channel
alastairp
Cyna: what's your final goal? why do you want musicbrainz in docker?
BhaskarSing joined the channel
Cyna
I want to be able to work on any machine by just deploying the container as to what docker is meant for
BhaskarSing has quit
alastairp
are you working on musicbrainz-server?
Cyna
My current setup is using docker but its a bit complex for someone who has no experience in working with one, so Im trying to make it much easier
yes
alastairp
what folder are you connecting as a volume?
BhaskarSingh joined the channel
the behaviour that you describe is correct for how docker works, there are a few solutions depending on your need
MBS-10089: Don't show "named after" relationships on artist works page
akhilesh
reosarevok: yvanzo : How can I authenticate user via postman for submitting request to API sever as in docs at https://beta.musicbrainz.org/doc/Development/XM... ? Could you give an example of real post request so that I can check via postman please?
I won’t review/merge other PRs but contribs, I’m quite busy with JIRA anyway.
reosarevok
Please, please, please, let's merge the relationships code
There's a lot of other stuff that depends on that before it can be worked on
yvanzo
We have been delaying release for too long, I mostly selected PRs which are finishing parts of other already merged issues.
The milestone just points to PRs still missing for release, it is not a restrictive list of what will be released.
reosarevok
Well sure, and I don't really even care that much whether we release the rels thing
Just want it merged to work on top of properly :)
yvanzo
But it doesn’t work at the moment :D
reosarevok
It doesn't? It seemed to work yesterday for me
What broke? (did you flush redis?)
akhilesh
reosarevok & yvanzo : I am waiting to your response, for above msg
yvanzo
akhilesh: sorry, never used postman before and did not find ready example, doc is terribly lacking examples :(
reosarevok: relationship-editor doesn’t load for me at least, and yes I flushed it all.
Cyna
reosarevok: Yea so I was wondering about those issues with required entity attributes I spoke to you last time
reosarevok
yvanzo: ... sigh, I might have forgotten to check that :p
yvanzo
reosarevok: it seems to be just a small issue though, the rest I checked seems to be fine.
CallerNo6
akhilesh, I didn't understand your question. do you want to see what a web service call w/ authorization looks like? or were you asking about how postman works?
reosarevok
Cyna: that is a mess and needs a lot of work, but I don't have the time for it atm. Maybe tomorrow I can try to look
akhilesh
CallerNo6: want to see what a web service call w/ authorization looks like?
Cyna
sure thanks... I'll try understanding the code base for GSoC project then
yvanzo
reosarevok: while you are waiting for rels PR, you may want to improve ws doc instead ;)
reosarevok
I'm trying to fix a bug with a rels query rn
Unrelated to that PR
akhilesh
CallerNo6: How does I put username and password with api request?
reosarevok
yvanzo, bitmap: am I being dense or is this ultra borked?
This does JOIN $target ON $target_id = ${target}.id (L168)
CallerNo6
akhilesh, authorization info goes in the header of the request. you can use programs like python's requests to insert it.
reosarevok
But if you have, say, l_artist_artist, that'll just join on entity0 and won't check entity1 at all since $target_id = 'entity0'; in L148
CallerNo6
(which would look something like requests.get(url, auth=HTTPDigestAuth('user', 'pass'))
^ unlike query parameters, you don't pass it in the url itself
akhilesh
CallerNo6: Ok, Thanks :)
CallerNo6
akhilesh, does that make sense? you could use curl or whatever program makes sense in your context.
Cyna
yvanzo: is there any way where I can change the path for redis server ? from localhost:6378 to redis:6379 ?
yvanzo
Cyna: yes in lib/DBDefs.pm
Cyna
I've made changes there
But it didnt work
I composed down, made the changes and composed up
and it doesnt rebuild the images
yvanzo
I’m not sure what you changed and how you compose these, so...
Cyna
I guess that is the issue
Ill try pruning images and starting the compose again
akhilesh
CallerNo6, yvanzo: One another question, Does MB have any method so that we can verify user with his username and password programmatically? mean without opening GUI like https://beta.musicbrainz.org/login?uri=%2F