#metabrainz

/

      • travis-ci
        Project bookbrainz-site build #3830: passed in 4 min 39 sec: https://travis-ci.org/bookbrainz/bookbrainz-site/…
      • 2021-04-06 09601, 2021

      • travis-ci has left the channel
      • 2021-04-06 09632, 2021

      • ruaok
        _lucifer: I do hope this sort of banter doesn't put any pressure on you. that is not intended. :)
      • 2021-04-06 09655, 2021

      • alastairp
        good point, he does such good work we don't want to burn him out
      • 2021-04-06 09600, 2021

      • alastairp
        I've been there before, not fun
      • 2021-04-06 09658, 2021

      • _lucifer
        hah! no worries regarding that. i take breaks regularly to try to avoid that as much as possible ;)
      • 2021-04-06 09631, 2021

      • reosarevok
        alastairp: wait, you've done good work before?
      • 2021-04-06 09639, 2021

      • alastairp
        reosarevok: not very often
      • 2021-04-06 09629, 2021

      • reosarevok
        I mean, as long as you stopped when you got to Spain
      • 2021-04-06 09600, 2021

      • reosarevok
        Also, re: bikepacking. I watched a YouTube video about https://bikepacking.com/routes/montanas-vacias/ the other day and it seemed really cool
      • 2021-04-06 09614, 2021

      • alastairp
        yeah, montañas vacias is high up on my list
      • 2021-04-06 09615, 2021

      • reosarevok
        Then I remembered that I'm used to cycling a max elevation of 150m, so I'd probably die
      • 2021-04-06 09604, 2021

      • alastairp
        I've done part of https://cyclingtips.com/2019/05/bikepacking-the-p…, though I'd like to do it all
      • 2021-04-06 09600, 2021

      • alastairp
      • 2021-04-06 09606, 2021

      • reosarevok
        I guess you've been doing mountain riding for a long-ass time though :)
      • 2021-04-06 09647, 2021

      • alastairp
        actually, no. I only do road riding. but I'm in the process of getting a gravel/touring bike and want to get into that more
      • 2021-04-06 09656, 2021

      • alastairp
        unless by mountain riding you mean riding up hills :)
      • 2021-04-06 09617, 2021

      • alastairp
        1000m desnivel yesterday
      • 2021-04-06 09649, 2021

      • reosarevok
        Well, I mean "you're used to not dying when going up for a bit"
      • 2021-04-06 09655, 2021

      • alastairp
        yes, that
      • 2021-04-06 09627, 2021

      • reosarevok
        Since our highest point is 318m, it's not very easy to train that here :p
      • 2021-04-06 09639, 2021

      • alastairp
        you just have to go up and down _lots_
      • 2021-04-06 09615, 2021

      • reosarevok
        Up the one hill, down the one hill, up the same hill, down the same hill...
      • 2021-04-06 09631, 2021

      • alastairp
        let me introduce you to https://everesting.cc/
      • 2021-04-06 09646, 2021

      • alastairp
        a friend from the bike club just organised this ride the past weekend too. next time you're in spain I'll take you on it ;) https://usercontent.irccloud-cdn.com/file/w0cx3pK…
      • 2021-04-06 09648, 2021

      • BrainzGit
        [bookbrainz-site] MonkeyDo merged pull request #586 (master…fix/remove_trailing_space_get_entity): fix: Removed trailing space in getEntityLabel (BB-601) https://github.com/bookbrainz/bookbrainz-site/pul…
      • 2021-04-06 09659, 2021

      • MRiddickW_ joined the channel
      • 2021-04-06 09602, 2021

      • MRiddickW has quit
      • 2021-04-06 09657, 2021

      • travis-ci joined the channel
      • 2021-04-06 09657, 2021

      • travis-ci
        Project bookbrainz-site build #3831: passed in 4 min 31 sec: https://travis-ci.org/bookbrainz/bookbrainz-site/…
      • 2021-04-06 09657, 2021

      • travis-ci has left the channel
      • 2021-04-06 09646, 2021

      • BrainzGit
        [bookbrainz-site] MonkeyDo merged pull request #589 (master…date-picker-fix): fixes date picker popper position in author section on smaller viewports https://github.com/bookbrainz/bookbrainz-site/pul…
      • 2021-04-06 09600, 2021

      • travis-ci joined the channel
      • 2021-04-06 09600, 2021

      • travis-ci
        Project bookbrainz-site build #3832: passed in 4 min 34 sec: https://travis-ci.org/bookbrainz/bookbrainz-site/…
      • 2021-04-06 09600, 2021

      • travis-ci has left the channel
      • 2021-04-06 09631, 2021

      • Darkloke has quit
      • 2021-04-06 09621, 2021

      • CatQuest
      • 2021-04-06 09621, 2021

      • BrainzBot
        I will remember "workflow" for you CatQuest.
      • 2021-04-06 09647, 2021

      • CatQuest
        oooh missing -data-in-lb-fix-button! oohhh
      • 2021-04-06 09657, 2021

      • alastairp
        _lucifer: hi, can you give me an overview of the PRs for BU? 52, 53, 54, 55?
      • 2021-04-06 09613, 2021

      • _lucifer
        sure
      • 2021-04-06 09618, 2021

      • alastairp
        can we close 24? (replaced by 58?)
      • 2021-04-06 09600, 2021

      • alastairp
        and I just saw your comment in 22 saying that it has the functionality added in 29?
      • 2021-04-06 09620, 2021

      • _lucifer
        yes, we can close that
      • 2021-04-06 09627, 2021

      • _lucifer
        and yes that one as well
      • 2021-04-06 09610, 2021

      • _lucifer
      • 2021-04-06 09621, 2021

      • alastairp
        yes, just looking at that
      • 2021-04-06 09637, 2021

      • BrainzGit
        [brainzutils-python] alastair closed pull request #22 (master…entity_place_event): BU-21: Use direct MB database access for event and place entity https://github.com/metabrainz/brainzutils-python/…
      • 2021-04-06 09654, 2021

      • BrainzGit
        [brainzutils-python] alastair closed pull request #25 (master…bu24): BU-24: Change function definitions in artist.py, release.py in musicbrainz_db module https://github.com/metabrainz/brainzutils-python/…
      • 2021-04-06 09625, 2021

      • _lucifer
        we will be keeping PR #48 on hold i think. as we want to try out GH Actions?
      • 2021-04-06 09634, 2021

      • BrainzGit
        [musicbrainz-server] reosarevok opened pull request #2041 (master…MBS-9376): MBS-9376: Indicate that edit searches can be bookmarked + link docs https://github.com/metabrainz/musicbrainz-server/…
      • 2021-04-06 09603, 2021

      • alastairp
        yeah, it's got a handful of things to improve - needs to have the musicbrainz db tests added in, and we can remove the py2 version anyway
      • 2021-04-06 09620, 2021

      • alastairp
        it's on my short-term list to look at, but I don't think it's important now
      • 2021-04-06 09630, 2021

      • _lucifer
        👍
      • 2021-04-06 09648, 2021

      • alastairp
        I'm just looking back at chat history for last week to see where we stopped
      • 2021-04-06 09649, 2021

      • _lucifer
        next PR 52, to remove namespace versioning
      • 2021-04-06 09607, 2021

      • alastairp
        we looked at adding sets in order to improve the code in the CB cache PR?
      • 2021-04-06 09613, 2021

      • _lucifer
        yes
      • 2021-04-06 09650, 2021

      • _lucifer
        i did some further work on it. also, did you see https://github.com/metabrainz/brainzutils-python/…
      • 2021-04-06 09616, 2021

      • alastairp
        not yet. let me read that next
      • 2021-04-06 09618, 2021

      • BrainzGit
        [bookbrainz-site] MonkeyDo reopened pull request #595 (master…feature/collection): Feat[BB-607] : display total number of entity present in a particular collection https://github.com/bookbrainz/bookbrainz-site/pul…
      • 2021-04-06 09622, 2021

      • _lucifer
        alastairp, regarding ascii only keys. i have currently implemented that as key.encode(ENCODING_ASCII, errors='xmlcharrefreplace').decode(ENCODING_ASCII).
      • 2021-04-06 09647, 2021

      • alastairp
        yeah, that looks about right
      • 2021-04-06 09652, 2021

      • alastairp
        are we happy with xmlcharrefreplace
      • 2021-04-06 09613, 2021

      • akshaaatt[m] uploaded a video: (3757KiB) < https://matrix.org/_matrix/media/r0/download/matrix.org/noavPYfKUjaHfTBxARUjceLS/bandicam%202021-04-06%2017-51-29-170.mp4 >
      • 2021-04-06 09624, 2021

      • akshaaatt[m]
        _lucifer: Have a look at this
      • 2021-04-06 09652, 2021

      • akshaaatt[m]
        It was some extra line of code that was causing the tagger issue XD
      • 2021-04-06 09659, 2021

      • _lucifer
        it was that way hence i kept it. we need some error handling for non ascii characters or do we want to error out?
      • 2021-04-06 09618, 2021

      • alastairp
      • 2021-04-06 09628, 2021

      • alastairp
        more a question of which error handler we should use
      • 2021-04-06 09633, 2021

      • alastairp
        xmlcharref or backslash
      • 2021-04-06 09612, 2021

      • akshaaatt[m]
        _lucifer: let me know if this is considered as the fix for the issue or should I work on something more for this? I have pushed the latest fix to the PR 😇
      • 2021-04-06 09640, 2021

      • _lucifer
        alastairp, seems to make more sense to me.
      • 2021-04-06 09649, 2021

      • _lucifer
        *backslash
      • 2021-04-06 09651, 2021

      • Cyna[m]
        bitmap: reosarevok yvanzo I have pushed my proposal for review. I'm currently working on the UI prototype to add images to the proposal till then do have a look into the textual matter and let me know if its not detailed enough
      • 2021-04-06 09603, 2021

      • _lucifer
        backslash seems to make more sense to me.
      • 2021-04-06 09608, 2021

      • ShivamAwasthi joined the channel
      • 2021-04-06 09629, 2021

      • alastairp
        _lucifer: I wondered if something was missing :)
      • 2021-04-06 09634, 2021

      • alastairp
        sure, sounds good to me
      • 2021-04-06 09611, 2021

      • _lucifer
        akshaaatt[m]: thanks. it looks good but i would want to test it on some older devices as well because i am not sure why it was not implemented this way in the first place.
      • 2021-04-06 09614, 2021

      • akshaaatt[m]
        <_lucifer "akshaaatt: thanks. it looks good"> Great! I am planning to upgrade the dependencies for the project soon. Like the versions and all. Will need to check the compatibility then. I will keep this as a long term goal maybe for the next month as the deadline in case there are issues that need to be resolved. I will even finalize my gsoc proposal in the meantime. If you want any more issues resolved in between,
      • 2021-04-06 09614, 2021

      • akshaaatt[m]
        let me know by mentioning me here 😁
      • 2021-04-06 09630, 2021

      • ShivamAwasthi has quit
      • 2021-04-06 09645, 2021

      • _lucifer
        alastairp: i have taken a look at your comments on PR 52. a couple of them are already done in other PRs. the remaining I am tracking, I'll open a PR for the leftovers from all the PRs together later.
      • 2021-04-06 09659, 2021

      • _lucifer
        akshaaatt[m]: sure. regarding upgrading the dependencies. we mostly use jetpack which are maintained by google. unless you are changing the major version, you should be good to go.
      • 2021-04-06 09616, 2021

      • _lucifer
        regarding more issues, i don't have any other in mind particularly but i would like to add some more tests. I had cleaned up the code last year, added DI etc to make adding new ones easier.
      • 2021-04-06 09655, 2021

      • _lucifer
        let me know if you are interested in that and we can discuss it in some more detail later.
      • 2021-04-06 09659, 2021

      • akshaaatt[m]
        _lucifer: I am new to writing tests as of now. If you can guide me, I would love that.
      • 2021-04-06 09637, 2021

      • _lucifer
        sure.
      • 2021-04-06 09609, 2021

      • _lucifer
        as you might have already seen we have both unit tests and integration tests (not many though).
      • 2021-04-06 09637, 2021

      • akshaaatt[m]
        <_lucifer "as you might have already seen w"> Right 💯
      • 2021-04-06 09614, 2021

      • _lucifer
        2 particular things i usually keep in mind are: test the API not the implementation and avoid mocks.
      • 2021-04-06 09627, 2021

      • akshaaatt[m]
        Yeah I get that
      • 2021-04-06 09606, 2021

      • _lucifer
      • 2021-04-06 09615, 2021

      • _lucifer
      • 2021-04-06 09616, 2021

      • _lucifer
        so we have the LookupRepository interface that defines the API, the actual one is `LookupRepositoryImpl`
      • 2021-04-06 09624, 2021

      • akshaaatt[m]
        Right
      • 2021-04-06 09625, 2021

      • _lucifer
      • 2021-04-06 09658, 2021

      • akshaaatt[m]
        Cool cool I get it
      • 2021-04-06 09627, 2021

      • _lucifer
        cutting to the chase, the ViewModel accepts the Repository as a parameter so we can do that seemlessly
      • 2021-04-06 09643, 2021

      • akshaaatt[m]
        Right
      • 2021-04-06 09635, 2021

      • _lucifer
        so while writing a unit test the aim is to test a single component of the app, a ViewModel or a Repository or an Activity
      • 2021-04-06 09604, 2021

      • akshaaatt[m]
        Makes sense
      • 2021-04-06 09610, 2021

      • _lucifer
        we have an example of each in the app
      • 2021-04-06 09632, 2021

      • sumedh joined the channel
      • 2021-04-06 09644, 2021

      • _lucifer
      • 2021-04-06 09642, 2021

      • _lucifer
        this one if for ViewModels
      • 2021-04-06 09652, 2021

      • akshaaatt[m]
        Yass
      • 2021-04-06 09656, 2021

      • _lucifer
      • 2021-04-06 09620, 2021

      • _lucifer
        this is the CollectionViewModel class, it is used to fetch a user's collections from the MB API
      • 2021-04-06 09633, 2021

      • akshaaatt[m]
        Correct
      • 2021-04-06 09602, 2021

      • _lucifer
        so taking reference from the LookupViewModel class I would suggest you to write a test for this class
      • 2021-04-06 09622, 2021

      • akshaaatt[m]
        Okaaaay! Sounds good.
      • 2021-04-06 09641, 2021

      • killme joined the channel
      • 2021-04-06 09636, 2021

      • _lucifer
        i see we do not have an API/interface separation in CollectionRepository yet
      • 2021-04-06 09624, 2021

      • akshaaatt[m]
        Yeah we should do that
      • 2021-04-06 09616, 2021

      • _lucifer
        so you can do the following:
      • 2021-04-06 09616, 2021

      • _lucifer
        1) Create a CollectionRepository interface, move the current class to CollectionRepositoryImpl
      • 2021-04-06 09616, 2021

      • _lucifer
        2) Make sure the app uses CollectionRepository interface everywhere
      • 2021-04-06 09616, 2021

      • _lucifer
        3) create a fake class implementing CollectionRepository
      • 2021-04-06 09616, 2021

      • _lucifer
        4) Write a test for the CollectionViewModel by injecting the fake class
      • 2021-04-06 09616, 2021

      • akshaaatt[m]
        _lucifer: Sounds great! Will surely work on all these. This month might get heavy for me because it's the last month of this semester for me. On it though! 😀
      • 2021-04-06 09619, 2021

      • _lucifer
        for sample data to use during testing, create a couple of collections on the website. i would suggest one private and one public at least so that we can test that as well later. store it as a json file where other files are located.
      • 2021-04-06 09637, 2021

      • _lucifer
        for loading the data, we already have a utility function.
      • 2021-04-06 09648, 2021

      • akshaaatt[m]
        <_lucifer "for sample data to use during te"> Yaass 💯
      • 2021-04-06 09618, 2021

      • _lucifer
        sure, no worries. take your time and feel free to ask any queries you might have.
      • 2021-04-06 09648, 2021

      • _lucifer
        (to clarify I refer to using a mocking library as mockito when saying mocks, creating our own fake classes is fine though during unit testing.)
      • 2021-04-06 09612, 2021

      • akshaaatt[m]
        <_lucifer "(to clarify I refer to using a m"> Cool
      • 2021-04-06 09617, 2021

      • akshaaatt[m]
        <_lucifer "sure, no worries. take your time"> Sure!
      • 2021-04-06 09650, 2021

      • ruaok
      • 2021-04-06 09615, 2021

      • ruaok
        In case we ever need another oh no image.
      • 2021-04-06 09625, 2021

      • sumedh has quit
      • 2021-04-06 09600, 2021

      • reosarevok
        haha
      • 2021-04-06 09651, 2021

      • reosarevok
        ruaok, bitmap or any other mac user around: to multi-select something, like in http://localhost:5000/search/edits?auto_edit_filt…
      • 2021-04-06 09612, 2021

      • reosarevok
      • 2021-04-06 09629, 2021

      • reosarevok
        On Windows / Linux it is ctrl + click, is it command + click on OS?
      • 2021-04-06 09644, 2021

      • reosarevok
        (writing some docs)
      • 2021-04-06 09655, 2021

      • alastairp
        yes, command
      • 2021-04-06 09600, 2021

      • alastairp
        reosarevok:
      • 2021-04-06 09627, 2021

      • reosarevok
        Thanks!
      • 2021-04-06 09658, 2021

      • BrainzGit
        [brainzutils-python] alastair merged pull request #52 (master…namespace-version): BU-25: Cache namespace versions don't work in docker or with distributed hosts https://github.com/metabrainz/brainzutils-python/…
      • 2021-04-06 09613, 2021

      • BrainzGit
        [brainzutils-python] alastair merged pull request #53 (master…msgpack): BU-32: PendingDeprecationWarning: msgpack.unpackb(... encoding=x) https://github.com/metabrainz/brainzutils-python/…
      • 2021-04-06 09630, 2021

      • alastairp
        _lucifer: I added a comment somewhere where I pointed out that redis pexpire is milliseconds but expire is seconds
      • 2021-04-06 09637, 2021

      • alastairp
        do you remember where that is?
      • 2021-04-06 09639, 2021

      • BrainzGit
        [brainzutils-python] alastair merged pull request #54 (master…timeout): BU-41: Enforce cache timeouts https://github.com/metabrainz/brainzutils-python/…
      • 2021-04-06 09602, 2021

      • BrainzGit
        [brainzutils-python] alastair merged pull request #55 (master…ratelimit-namespace): BU-29: Use cache namespaces in ratelimit module https://github.com/metabrainz/brainzutils-python/…
      • 2021-04-06 09638, 2021

      • _lucifer
      • 2021-04-06 09655, 2021

      • alastairp
        ah, there it is :)
      • 2021-04-06 09617, 2021

      • alastairp
        I don't know what `_r.expire(1.5)` will do
      • 2021-04-06 09644, 2021

      • alastairp
        > (error) ERR value is not an integer or out of range