#bookbrainz

/

      • pbryan[m] joined the channel
      • pbryan[m] is now known as testee[m]
      • testee[m] has left the channel
      • Siddharth1o1 joined the channel
      • Siddharth1o1 has quit
      • pbryan is now known as pbryan2
      • testee[m] joined the channel
      • testee[m] is now known as pbryan
      • pbryan has quit
      • pbryan joined the channel
      • pbryan has quit
      • pbryan joined the channel
      • pbryan2 is now known as _lurking
      • pbryan has left the channel
      • _lurking is now known as pbryan
      • CatQuest is now known as BilleeKhoj
      • miraclelesdieux joined the channel
      • miraclelesdieux has quit
      • anonn joined the channel
      • anonn has quit
      • kellnerd joined the channel
      • sumit joined the channel
      • anonn joined the channel
      • sumit has quit
      • monkey
        Thanks for holding the fort over the weekend pbryan !
      • kellnerd
        monkey: Regarding my comment at https://github.com/metabrainz/bookbrainz-site/p..., I don't think that JIRA automation for GitHub PRs is set up at all for BB currently.
      • monkey
        Ah, thanks, I'll have a look
      • It's definitely set up, I've seen it at work recently, but I think it's not reacting to updates to PR titles.
      • kellnerd
        Interesting, do you have an example for me? I've just tried to find a ticket which has a comment with a link to a PR but had no luck.
      • monkey
        Huh, well I must have been thinking about ListenBrainz and been blind to the absence in BookBrainz… Can't find a single example.
      • Thanks for reporting, I'll see how to set it up properly
      • kellnerd
        Good to know that I'm not just blind :)
      • monkey
        But bad to know that I am ! XD
      • My brain still can't accept the facts.
      • kellnerd
        To your defense: I also assumed it was set up because all(?) other projects have it set up
      • pbryan
        Hi monkey. So it would seem .gitattributes needs to be adjusted.
      • monkey
        I saw your conversation. If you've figured out exactly what needs changing, could you please open a PR?
      • Looks like whatever I did way back did not work: https://github.com/metabrainz/bookbrainz-site/c...
      • > Add .gitattributes file to fix cross-platform line-ending issues
      • pbryan
        OK, the challenge will be testing. I'll see about getting a Windows VM setup so I can prove it works.
      • monkey
        Can't help you there I'm afraid, no Windows machines around. If VM is too cumbersome, we could ask assistance from other people on the channel who are on Win
      • kellnerd
        I have a Windows machine, but my Git for Windows autocrlf  option is already set up correctly to avoid CRLF (although I always forget the correct value to achieve this), so I won't be a useful tester.
      • pbryan
        I've got an ISO around here somewhere. Cue rummaging sounds. 😉
      • monkey
        Much appreciated
      • kellnerd: There's definitely some interaction between GH and JIRA, I wasn't entirely blind after all. See the last comment here: https://tickets.metabrainz.org/browse/BB-667?fo...
      • However I would expect a "Development" dropdown on the right hand side with the PR listed underneath. Will continue investigating.
      • BrainzBot
        BB-667: Bug when modifying Series relationship in Edition
      • Deogee joined the channel
      • Siddhart1o1 joined the channel
      • Siddhart1o1 has quit
      • monkey
        kellnerd: So it turns out everything was working fine with JIRA-Github integration, but 1. I was just not paying enough attention to the formatting of pull request titles and 2. The 'development' dropdown in JIRA is a separate thing to the "Github Bot" comments on the ticket.In your use-case, are the comments on the ticket good enough? https://usercontent.irccloud-cdn.com/file/NpZZ9...
      • kellnerd
        Yay! Comments are usually enough for me. Only if there are multiple PRs or direct commits to main the development dropdown is good to have.
      • monkey
        OK, will see where we stand on that, as it's a question for the rest of the MeB projects as well
      • kellnerd
        pbryan: I'm just looking into BB-712. Do you have a good real world example of an entity which has an alias with a comma?
      • BrainzBot
        BB-712: Change alias delimiter on entity detail pages https://tickets.metabrainz.org/browse/BB-712
      • kellnerd
        Because a simple change of the alias separator would affect all entity types and what looks good for e.g. authors might not for editions.
      • For author aliases most separators (including comma and middle dot) are probably fine, but for editions/works the alias titles may contain any punctuation that would fit as alias separator (e.g. slashes, dashes, pipes...)
      • pbryan
        I'll see if I can find a good example.
      • Deogee has quit
      • kellerd, here are the first 5 examples I've found:
      • kellnerd
        Thanks, so the comma is a problem for elaborate work titles, of course :)
      • pbryan
        Yes, basically anything with a comma conflicts with the delimiter we're using to separate aliases.
      • I'm sure there are authors with some kind of title or suffix with a comma as well.
      • kellnerd
        I've attached a demo screenshot to the ticket, if monkey agrees and nobody else objects, I will submit a PR.
      • monkey
        It makes a lot of sense with works, for sure. I wasn't originally convinced the author aliases would be an issue, but I can definitely see the value in this improvement
      • monkey looks at ticket
      • Middle dot works well. I was thinking of the Catalan "punt volant" (or "flying dot") which is a fatter version of the same, if we want something less subtle
      • kellnerd
        We could also make the separator configurable per entity type if we consider some of them unproblematic and better-looking with a comma.
      • monkey
        Hm, might be the same character actually
      • Im in favor of a homogenous solution
      • kellnerd
        +1
      • pbryan
        +1
      • kellnerd
        Even https://en.wikipedia.org/wiki/Template:Navbox_p... uses the interpunct as separator for the different punctuation marks :')
      • monkey
        Hah, it's a mess on this page, but you're right, the fact that it's still usable is a good point in favor fo the interpunct
      • monkey is going to keep calling it the flying dot.
      • pbryan
        That wikipedia page is using <ul> and stylesheet to separate entries, so a bit different than how BB displays them.
      • That's an interesting approach, actually.
      • monkey
        It's not a bad solution, to be honest
      • Hah, devs drooling on other people's CSS solutions :D
      • pbryan
        🤤
      • kellnerd
        Yeah, I'm currently looking at having proper markup for the individual aliases. I thought about spans but inline lists also work.
      • It depends on whether we want to keep the simple <h4> markup here: https://github.com/metabrainz/bookbrainz-site/b...
      • monkey
        I'm not attached. It doesn't make much sense in terms of HTML hierarchy, so it's probably like that mainly for styling
      • Which means, if you're reviewing the styling anyway, it can just be scrapped
      • kellnerd
        Ok, I will try to turn this into something like `<ul class="inline-aliases">` then.
      • monkey
        Sounds good. Thank you !
      • pbryan
        Nice!
      • pbryan now has WSL installed, so step 1 complete. 🙂
      • kellnerd
        Almost there, I only have to copy the h4 styling from lobes4.
      • Should I use the Roboto font of h4 as previously (only used for headings) or should I keep the default Sintony font?
      • "Keep" as in not overwrite it
      • monkey
        Hm.
      • I don't see much of a reason to use Roboto now that we're moving away from using header tags. I doubt it was on purpose.
      • But if you think it looks better to have the same font as the main alias just above, we could use Roboto
      • kellnerd
        Ok, I'm experimenting a bit. I guess we definitely want to keep font-size and probably also font-weight (only 300 for headings, while it is 400 elsewhere).
      • sumit joined the channel
      • pbryan
        Hmm, interesting. If I use git in WSL, everything is great.
      • If I use git installed in Windows, I get `\r` line endings. So, reproduced at least.
      • I'm surprised at how well integration WSL is. Not enough to make me want to switch to Windows, but...
      • kellnerd
        Never have used SCSS before, but TIL that I can simply use `@extend h4;` instead of copying properties or finding the names of the appropriate SCSS variables.
      • monkey
        Indeed
      • pbryan
        monkey: Would it be safe to say we want all text files in GH to be Unix style (never have CRs)?
      • monkey
        I… suppose? It's been so long I haven't Windowsed that I don't know what the implications could be
      • pbryan
        If I have my facts straight, it means most good editors on Windows will be fine with it. Notepad will not work well.
      • So, VScode, Sublime, etc. should all function.
      • monkey
        I think that's a sacrifice worth doing
      • pbryan
        Heh, OK.
      • monkey
        Listenbrainz doesn't have much more than we do in gitattributes, not sure why we never have an issue there: https://github.com/metabrainz/listenbrainz-serv...
      • But ¯\_(ツ)_ /¯ if you're fixing the repo for Windows users I'd say let's do it.
      • pbryan
        This currently occurs when one uses Windows git, and tries to run shell scripts inside of WSL.
      • I'm thinking though, to keep files from bouncing between LF and CRLF, just force LF across the board.
      • monkey
        Ahh, with the provided git bash?
      • pbryan
        Yes. The git bash.
      • monkey
        That pesky bash.
      • pbryan
        Well, it's more git itself realizing it's running on Windows.
      • "I'll just sprinkle some CRs in these files..."
      • monkey
        Well, I don't see why we would need CRLF to be honest
      • pbryan
        Yeah, same. LF keeps it simple.
      • OK, testing.
      • So PR by itself, or open JIRA ticket too?
      • monkey
        PR is fine
      • pbryan
        OK.
      • Siddhart1o1 joined the channel
      • Siddhart1o1
        Hi monkey can you please Review my PR https://github.com/metabrainz/bookbrainz-site/p...
      • monkey
        Hi Siddhart1o1 sorry I didn't get to your PR yet. I'll give it a look now
      • Siddhart1o1
        Thanks!
      • Siddhart1o1 has quit
      • Deogee joined the channel
      • sumit has quit
      • Deogee has quit
      • sumit joined the channel
      • kellnerd has quit
      • sumit has quit
      • Deogee joined the channel
      • Deogee
        Hello
      • I am working on issue BB-705 and i have a question
      • When adding a new Work entity or any other entity where do the options come from ?
      • BrainzBot
        BB-705: Add "Essay" work type https://tickets.metabrainz.org/browse/BB-705
      • Deogee
        I went through the codebase and it looks like the options(in this case Novel , short story , poem....) are gotten from the database and stored in the redux store
      • I am trying to add "Essay" to the list of work type options
      • Do i just need to add "Essay" to the database and that will you suffice ?
      • monkey
        Hi Deogee ! Yes unfortunately this can only be aded to the database and I'm the only one with the keys :) Please pick another ticket !
      • I hadn't seen it was marked as a good first bug, my bad !