#metabrainz

/

      • Cyna
        bitmap, reosarevok: I finished converting edit_alias.tt. Tested it too
      • Im not raising a PR as bitmap hasnt merged his PR with addition of Diff, FullChangeDiff components
      • What should I get on with next ?
      • bitmap
        amCap1712: it'll return a 401 saying the credentials could not be verified
      • amCap1712
        thanks bitmap
      • bitmap
        Cyna: well we'll need to convert the alias add/edit forms to React, under root/entity/alias/
      • then implement a preview component that displays the edits you converted
      • Cyna
        Hmm... I'll get on the conversion tomorrow after my Practicals
      • what is script_manifest(...) ?
      • bitmap
        it looks up a script and returns the public, versioned URL for it
      • Cyna
        dont understand
      • bitmap
        (and outputs a <script> tag for it)
      • it takes a file name relative to root/static/scripts/, so that refers to root/static/scripts/edit.js
      • this is the entry point for a webpack bundle
      • the actual bundle file as served to the public will have a hash added for caching, and a URL, in this case on https://staticbrainz.org/MB/
      • Cyna
        so its basically `publicUrl + something`
      • something is derived from the script
      • right ?
      • bitmap
        basically
      • amCap1712
        bitmap: if the authorization header is set to empty that is also considered inavlid access token
      • bitmap
        that has scripts/edit.js: "scripts/edit-4da2c51e9d.js"
      • so it knows the edit bundle will be named like scripts/edit-4da2c51e9d.js at the public url
      • xarph has quit
      • and it's a hash of the file contents, so if the bundle changes, so will the hash (and clients will download the new copy instead of the old, since it has a different name)
      • spellew
        ferbncode: iliekcomputers: I've opened the draft pr
      • bitmap
        amCap1712: it also returns a 401, but with a different message ("You are not authorized to access this resource.")
      • amCap1712
        ok thanks again
      • is there any other documentation on Oauth other than https://musicbrainz.org/doc/Development/OAuth2
      • bitmap
        I don't think so
      • amCap1712
        okay, i asked because i couldn't find any info or error codes there
      • Cyna
        edit.js in /root/static/server/ is a bunch of import commands and nothing else
      • edit_form.tt runs the script manifest command on edit.js
      • hows does it get reflected on add alias form page ?
      • amCap1712: the error code are based on standards right ? https://www.tutorialspoint.com/http/http_status...
      • iliekcomputers
        spellew: thanks. :)
      • bitmap
        it's not including or running that file directly - edit.js is the entry point for a webpack bundle
      • webpack is run via ./script/compile_resources.sh and the bundles go to root/static/build/
      • script_manifest simply looks up edit.js in the manifest and outputs a <script> tag pointing to the bundle url
      • Cyna
        Ohh so its basically converting the js file to a script tag and placing it there ?
      • amCap1712
        cyna: yes, i meant like the error messages to be specific like bitmap told above about 401 for two scenarios but different error msg to distinguish
      • Cyna
        ohh
      • bitmap
        well it doesn't convert the file there, that's done by ./script/compile_resources.sh
      • Cyna
        How do I put it in react file then 🤔
      • bitmap
        it's taking the js file *name* and outputting a script tag
      • those utilities have already been converted to JS at root/static/manifest.js
      • git grep -F manifest.js
      • Cyna
        thanks
      • Will check it out
      • ferbncode
        spellew: thanks :)
      • gr0uch0mars has quit
      • SothoTalKer
        just in case someone is using docker for anything :p https://seclists.org/oss-sec/2019/q2/131
      • zas
        SothoTalKer: thanks ;)
      • D4RK-PH0ENiX has quit
      • Freso
        "<pristine__> any user must have listened to a song that involves various artists, we can then get similar artists from the histogram project and recommend songs from a pool which belong to these related artists" I think the VA based histogram project is very cool, but I also feel like this approach (of using VA albums as a base for artist similarity) may exclude a lot of smaller and newer or just straight up less mainstream (with
      • "mainstream" meaning "mainstream in Western mostly-English locales") artists. Both based on bias of more mainstrain = on more compilations (incl. on compilations at all!) and also of the bias in the data available/the historical userbase. It also excludes artists that aren’t following the typical Release workflow, but only does standalone recordings on SoundCloud or YouTube etc. I'd rather get recommended smaller, less mainstreamy
      • artists than artists that happen to have been on dozens of compilations.
      • Anyway, I also realize that this is a difficult problem, so I’m not saying to drop this approach; I just really hope all the downfalls of this approach won’t be forgotten once there is something Good Enoughâ„¢ in place. :) (And I’m sure you and Rob have thought about these limitations, I just didn’t see either of you express them here in the channel.)
      • ZaphodBeeblebrox
        oh definitly.
      • I'm thinking about Mash-upers like who have a lot of standalone recordings