#metabrainz

/

      • iliekcomputers
      • 2019-02-08 03906, 2019

      • ruaok
        code running. edited `listenbrainz/webserver/static/js/graphs.js`
      • 2019-02-08 03920, 2019

      • ruaok
        no output from listenbrainz_static_builder_1
      • 2019-02-08 03939, 2019

      • iliekcomputers
        did the changes come through in the container?
      • 2019-02-08 03953, 2019

      • ruaok
        web_1 container?
      • 2019-02-08 03957, 2019

      • iliekcomputers
        docker exec -it listenbrainz_static_builder_1 cat /static/js/graphs.js
      • 2019-02-08 03903, 2019

      • iliekcomputers
        should be in both.
      • 2019-02-08 03923, 2019

      • ruaok
        verified.
      • 2019-02-08 03954, 2019

      • iliekcomputers
        change one of the files in static/js/jsx/
      • 2019-02-08 03908, 2019

      • iliekcomputers
        the webpack config is set to watch the files there
      • 2019-02-08 03920, 2019

      • iliekcomputers
        >verified.
      • 2019-02-08 03932, 2019

      • iliekcomputers
        this means that the volume is setup correctly, i guess.
      • 2019-02-08 03941, 2019

      • iliekcomputers
        >change one of the files in static/js/jsx/
      • 2019-02-08 03951, 2019

      • ruaok
        that works!
      • 2019-02-08 03958, 2019

      • iliekcomputers
        works meaning?
      • 2019-02-08 03911, 2019

      • ruaok
      • 2019-02-08 03924, 2019

      • iliekcomputers
        lol
      • 2019-02-08 03927, 2019

      • iliekcomputers
        nice
      • 2019-02-08 03932, 2019

      • iliekcomputers
        didn't even change anything
      • 2019-02-08 03935, 2019

      • HenryG has quit
      • 2019-02-08 03944, 2019

      • ruaok
        it was a comment that I changed. no actual code.
      • 2019-02-08 03901, 2019

      • ruaok
        so was I editing a wrong file and that is why it didn't fire?
      • 2019-02-08 03927, 2019

      • iliekcomputers
        ruaok: might be it, although I remember you saying you changed profile.jsx too
      • 2019-02-08 03928, 2019

      • ruaok
        is it supposed to fire on `listenbrainz/webserver/static`
      • 2019-02-08 03934, 2019

      • ruaok
        I did.
      • 2019-02-08 03942, 2019

      • iliekcomputers
        it'll fire on changes in the jsx files.
      • 2019-02-08 03900, 2019

      • iliekcomputers
        webpack only builds the jsx files as far as i understand.
      • 2019-02-08 03901, 2019

      • ruaok
        yep, but not outside the jsx files.
      • 2019-02-08 03911, 2019

      • ruaok
        ok, so it works as expected then?
      • 2019-02-08 03914, 2019

      • ruaok
        sure looks that way.
      • 2019-02-08 03919, 2019

      • iliekcomputers
        lol yea.
      • 2019-02-08 03919, 2019

      • iliekcomputers
        nice
      • 2019-02-08 03936, 2019

      • Cyna joined the channel
      • 2019-02-08 03928, 2019

      • ruaok
        ok, let me read #513 in detail.
      • 2019-02-08 03935, 2019

      • ruaok
        or... is there another PR I should start with?
      • 2019-02-08 03900, 2019

      • iliekcomputers
        513 first.
      • 2019-02-08 03921, 2019

      • iliekcomputers
        then we can do 509
      • 2019-02-08 03926, 2019

      • ruaok
        k
      • 2019-02-08 03958, 2019

      • ruaok
        7 line Dockerfile. lol
      • 2019-02-08 03919, 2019

      • iliekcomputers
        :(
      • 2019-02-08 03948, 2019

      • ruaok
        I see nothing wrong with that. this is a great fix, I think.
      • 2019-02-08 03905, 2019

      • ruaok moves on to 509
      • 2019-02-08 03942, 2019

      • ruaok
        do you need to merge or rebase 513 before I tackle 509?
      • 2019-02-08 03903, 2019

      • iliekcomputers
        yes, 513 merges into 509
      • 2019-02-08 03921, 2019

      • iliekcomputers
        merged.
      • 2019-02-08 03947, 2019

      • ruaok
        513 is hard for me to review. I don't know react.
      • 2019-02-08 03904, 2019

      • iliekcomputers
        i just looked at the python parts and the webpack setup.
      • 2019-02-08 03930, 2019

      • ruaok
        those parts look fine -- mostly stuff from 513...
      • 2019-02-08 03931, 2019

      • iliekcomputers adds learning react to list
      • 2019-02-08 03957, 2019

      • ruaok
        good idea.
      • 2019-02-08 03904, 2019

      • ruaok
        I can wait the 20 minutes that will take you.
      • 2019-02-08 03906, 2019

      • ruaok
        go!
      • 2019-02-08 03910, 2019

      • iliekcomputers
        lol
      • 2019-02-08 03930, 2019

      • ruaok
        damn code ninja you are. :)
      • 2019-02-08 03920, 2019

      • iliekcomputers
        :)
      • 2019-02-08 03930, 2019

      • iliekcomputers
        509 is the branch that is running on beta I think.
      • 2019-02-08 03942, 2019

      • iliekcomputers
        I vote for merging and fixing problems as we go forward.
      • 2019-02-08 03900, 2019

      • ruaok
        agreed.
      • 2019-02-08 03913, 2019

      • ruaok reads 512
      • 2019-02-08 03917, 2019

      • iliekcomputers
        +1
      • 2019-02-08 03946, 2019

      • iliekcomputers
        merged #509
      • 2019-02-08 03912, 2019

      • ruaok
        512 looks good to me.
      • 2019-02-08 03918, 2019

      • ruaok
        shall we toss #488 ?
      • 2019-02-08 03923, 2019

      • ruaok
        how about merging $70?
      • 2019-02-08 03928, 2019

      • ruaok
        #470
      • 2019-02-08 03902, 2019

      • iliekcomputers
        ruaok: yes, 488 needs closing.
      • 2019-02-08 03925, 2019

      • iliekcomputers
        I think alastairp might have some comments on 470, other than that it looks good to me.
      • 2019-02-08 03903, 2019

      • ruaok
        maybe we should merge #470. that seems to get his attention to PRs. 🤣
      • 2019-02-08 03908, 2019

      • alastairp
        hah
      • 2019-02-08 03915, 2019

      • ruaok
        oh hai.
      • 2019-02-08 03915, 2019

      • alastairp
        not true, I promise
      • 2019-02-08 03920, 2019

      • alastairp
        470 looks ok, go ahead
      • 2019-02-08 03923, 2019

      • ruaok
        glad you finally got the root beer.
      • 2019-02-08 03925, 2019

      • ruaok
        woo!
      • 2019-02-08 03930, 2019

      • ruaok
        PR zero coming quickly!
      • 2019-02-08 03937, 2019

      • alastairp
        that is, I've not actually tested it myself
      • 2019-02-08 03900, 2019

      • alastairp
        but iliekcomputers' comments were good, and vansika made the changes in response to it
      • 2019-02-08 03905, 2019

      • alastairp
        so sure, let's see how it goes
      • 2019-02-08 03916, 2019

      • ruaok is building the spotify-permissions branch
      • 2019-02-08 03903, 2019

      • alastairp
        just glancing through the changed files again, I don't see any specific tests for expiring sessions by changing a user's alternate user id
      • 2019-02-08 03923, 2019

      • alastairp
        oh,
      • 2019-02-08 03950, 2019

      • alastairp
        iliekcomputers: did we talk about defaulting the user_login_id to the username
      • 2019-02-08 03957, 2019

      • alastairp
        so that users won't get signed out?
      • 2019-02-08 03912, 2019

      • iliekcomputers
        alastairp: hmm, i think we did. defaulting to user IDs, I guess?
      • 2019-02-08 03930, 2019

      • alastairp
        whatever the current thing that we use to identify users is
      • 2019-02-08 03926, 2019

      • HenryG joined the channel
      • 2019-02-08 03903, 2019

      • ruaok
        > the spotipy lib has a bug which makes it lose the scope returned by the Spotify API.
      • 2019-02-08 03923, 2019

      • ruaok
        in this case iliekcomputers imported/crafted a custom function to deal with this.
      • 2019-02-08 03939, 2019

      • alastairp
        ruaok: if you didn't know, spotipy is paul lamere, so we should just fix the bug and ask him to make a new release ;)
      • 2019-02-08 03909, 2019

      • iliekcomputers
      • 2019-02-08 03912, 2019

      • ruaok
        an ok solution.. an alternative would be to fork the repo, fix the issue and then send a PR and use our repo for our builds.
      • 2019-02-08 03918, 2019

      • alastairp
        absolutely
      • 2019-02-08 03921, 2019

      • iliekcomputers
        just need to remove this line.
      • 2019-02-08 03928, 2019

      • alastairp
        "fix the bug", I mean send a PR
      • 2019-02-08 03948, 2019

      • ruaok
        32 PRs.
      • 2019-02-08 03953, 2019

      • ruaok
        sigh.
      • 2019-02-08 03958, 2019

      • iliekcomputers
        i can send a PR and once a release is done, remove the extra code I added.
      • 2019-02-08 03900, 2019

      • ruaok misses the old days
      • 2019-02-08 03910, 2019

      • ruaok
        yeah, lets do that.
      • 2019-02-08 03915, 2019

      • iliekcomputers
        cool.
      • 2019-02-08 03916, 2019

      • code_master5
        woah! 32! 👏
      • 2019-02-08 03900, 2019

      • ruaok
        iliekcomputers: the only real comment I have on #511 is the name of the column "active".
      • 2019-02-08 03913, 2019

      • ruaok
        that seems... confusing in this context.
      • 2019-02-08 03921, 2019

      • ruaok
        "record_listens" ?
      • 2019-02-08 03922, 2019

      • alastairp
        ruaok: the good old days when the maintainer disappears and no one is able to suggest changes?
      • 2019-02-08 03923, 2019

      • alastairp
        :)
      • 2019-02-08 03943, 2019

      • ruaok
        good ole days when we ran off to hack days all the time.
      • 2019-02-08 03948, 2019

      • alastairp
        oh yeah, those days too
      • 2019-02-08 03903, 2019

      • ruaok
        but 32PRs isn't exactly oozing with confidence that this is a priority for Paul, no?
      • 2019-02-08 03909, 2019

      • alastairp
        iliekcomputers: why is that a bug?
      • 2019-02-08 03914, 2019

      • alastairp
        sure
      • 2019-02-08 03942, 2019

      • iliekcomputers
        alastairp: the Spotify api sends the permissions associated with the code itself.
      • 2019-02-08 03903, 2019

      • alastairp
        instead of being able to request a new one?'
      • 2019-02-08 03914, 2019

      • iliekcomputers
        so, we have a use case where we have the code from the callback request but we don't know what permissions the user has granted.
      • 2019-02-08 03943, 2019

      • iliekcomputers
        if spotipy overwrites the data sent by the API, we don't have a way of knowing what permissions were granted.
      • 2019-02-08 03952, 2019

      • alastairp
        right, drat
      • 2019-02-08 03956, 2019

      • code_master5
        About CB-315, contributions for last 7 days or starting from Monday?
      • 2019-02-08 03956, 2019

      • BrainzBot
        CB-315: Show top contributors on CB homepage for a week https://tickets.metabrainz.org/browse/CB-315
      • 2019-02-08 03914, 2019

      • iliekcomputers
        code_master5: not sure, what does MusicBrainz do?
      • 2019-02-08 03931, 2019

      • alastairp
        iliekcomputers: just checking that you've seen the commit where this was added? (https://github.com/plamere/spotipy/commit/72d13dd…)
      • 2019-02-08 03954, 2019

      • alastairp
        I'm not offering to look at this myself, but just saying that it looks like there was a reason that this guy made the change as-is
      • 2019-02-08 03942, 2019

      • code_master5
        iliekcomputers: MB shows only recent additions on homepage! 🤔
      • 2019-02-08 03957, 2019

      • Cyna
        Hi Im working on the Music Brainz app
      • 2019-02-08 03906, 2019

      • Cyna
        I cant find the app on Play Store
      • 2019-02-08 03928, 2019

      • code_master5
        amCap1712: ^
      • 2019-02-08 03905, 2019

      • code_master5
        Cyna: Well, right now it's a work in progress. Please consult amCap1712 for more info.
      • 2019-02-08 03936, 2019

      • iliekcomputers
        alastairp: it looks like they're trying to save the scope in the token info, but the thing is that the spotify API now returns the `scope` key itself.
      • 2019-02-08 03948, 2019

      • iliekcomputers
        so overwriting it doesn't really make sense.
      • 2019-02-08 03958, 2019

      • amCap1712
        code_master5: 👍
      • 2019-02-08 03901, 2019

      • amCap1712
        cyna: do you mean the test version I am working on or the official app which was in use previously?
      • 2019-02-08 03947, 2019

      • iliekcomputers
        ruaok: do you want to do a schema change?
      • 2019-02-08 03953, 2019

      • alastairp
        right, do you think that this is a change that spotify made since the change was added?
      • 2019-02-08 03900, 2019

      • iliekcomputers
        yes.
      • 2019-02-08 03905, 2019

      • alastairp
        ok! that's fine then
      • 2019-02-08 03918, 2019

      • iliekcomputers
        i can't find the spotify changelog, but let me look.
      • 2019-02-08 03920, 2019

      • ruaok
        just like a root canal, no one ever wants to do a schema change. :(
      • 2019-02-08 03925, 2019

      • iliekcomputers
        lol
      • 2019-02-08 03949, 2019

      • alastairp
        iliekcomputers: nah, no problem
      • 2019-02-08 03953, 2019

      • iliekcomputers
        but if we want to change the name of the column, we should also consider storing permissions we've been granted in the db too.
      • 2019-02-08 03903, 2019

      • ruaok
        iliekcomputers: that was my original hope.
      • 2019-02-08 03909, 2019

      • alastairp
        I'm sure that if ruaok or I tweet a paul and show that it's for a good cause, he can make a PR :)
      • 2019-02-08 03920, 2019

      • alastairp
        uh, pr-> release
      • 2019-02-08 03931, 2019

      • ruaok
        I'd be happy to tweet.
      • 2019-02-08 03959, 2019

      • ruaok
        iliekcomputers: let's either fix this correctly with a schema change or make a ticket that next time we touch anything related to this, we fix it properly.
      • 2019-02-08 03906, 2019

      • iliekcomputers
        let me make a PR, then tweets would be helpful.
      • 2019-02-08 03916, 2019

      • ruaok
        I'll leave that decision to you.
      • 2019-02-08 03939, 2019

      • iliekcomputers
        let's just fix it rn.
      • 2019-02-08 03920, 2019

      • iliekcomputers
      • 2019-02-08 03933, 2019

      • ruaok
        what is the sound that a ninja makes when getting ready to fight?
      • 2019-02-08 03942, 2019

      • ruaok
        oh wait, ninjas make no sounds.