#bookbrainz

/

      • monkey
        kellnerd: In dev it is not used so the setup does not have any provision for it, indeed. We could amend the docker-compose file to set the build arg when we build the container as described here: https://docs.docker.com/compose/compose-file/buil…
      • 2023-03-22 08121, 2023

      • monkey
        To make this dynamic, we would need to set an environment variable in a .env file using this git command: https://github.com/metabrainz/bookbrainz-site/blo…
      • 2023-03-22 08157, 2023

      • Siddhart1o1 joined the channel
      • 2023-03-22 08111, 2023

      • monkey
        So to recap, in .env we have `GIT_COMMIT_SHA=$(git rev-parse --short HEAD)`, and then in docker-compose.yml:
      • 2023-03-22 08116, 2023

      • monkey
      • 2023-03-22 08134, 2023

      • Siddhart1o1
        monkey Hi, can I share you GSOC proposal  for review?
      • 2023-03-22 08141, 2023

      • monkey
        We pass the build arg with a default of "latest"
      • 2023-03-22 08102, 2023

      • monkey
        Hi Siddhart1o1 ! Do post it on the community forums please :)
      • 2023-03-22 08103, 2023

      • monkey
      • 2023-03-22 08112, 2023

      • monkey_62 joined the channel
      • 2023-03-22 08119, 2023

      • monkey_62 has quit
      • 2023-03-22 08115, 2023

      • kellnerd joined the channel
      • 2023-03-22 08152, 2023

      • kellnerd has quit
      • 2023-03-22 08106, 2023

      • kellnerd joined the channel
      • 2023-03-22 08103, 2023

      • kellnerd
        Thanks monkey, I will try that once I am back home.
      • 2023-03-22 08116, 2023

      • kellnerd has quit
      • 2023-03-22 08158, 2023

      • RohanSasne joined the channel
      • 2023-03-22 08101, 2023

      • RohanSasne
        Hey monkey, I have uploaded my proposal on the community forum, can you please review it as and when you get free :)
      • 2023-03-22 08118, 2023

      • monkey
        Sure thing :)
      • 2023-03-22 08153, 2023

      • RohanSasne has quit
      • 2023-03-22 08109, 2023

      • Siddhart1o1
        monkey I have uploaded proposal on forums : https://community.metabrainz.org/t/gsoc-2023-admi…, please have a look when you have time. And let me know any changes required. Thanks !
      • 2023-03-22 08135, 2023

      • monkey
        👍
      • 2023-03-22 08149, 2023

      • Siddhart1o1 has quit
      • 2023-03-22 08116, 2023

      • RohanSasne joined the channel
      • 2023-03-22 08116, 2023

      • RohanSasne has quit
      • 2023-03-22 08158, 2023

      • Sahaj joined the channel
      • 2023-03-22 08158, 2023

      • rdswift has quit
      • 2023-03-22 08141, 2023

      • rdswift joined the channel
      • 2023-03-22 08136, 2023

      • Sahaj
        I had a doubt, so as BookBrainz is still in the early stages, would my proposal of building something like a recommendation system for users like listenbrainz has based on user's likes, (also improving the genre system) could be useful to bookbrainz rn?
      • 2023-03-22 08144, 2023

      • monkey
        Hi Sahaj ! At the moment there is no such thing as likes in BookBrainz, and I doubt there are any data points that would be usable for a recommendation system
      • 2023-03-22 08123, 2023

      • Sahaj
        So should the genre system (and maybe a likes system) be of any importance to bookbrainz?
      • 2023-03-22 08146, 2023

      • monkey
        Genres eventually yes, but based on the same system as MusicBrainz which uses folksonomy, more of a tag system: https://musicbrainz.org/doc/Folksonomy_Tagging
      • 2023-03-22 08143, 2023

      • Sahaj
        So would it be apt for me to propose a MusicBrainz-like tags system similar to trivia tags like Pulitzer book awards etc. along with UI/UX improvements for gsoc 23 ?
      • 2023-03-22 08143, 2023

      • Sahaj
        Or are there other priorities to focus on first.
      • 2023-03-22 08100, 2023

      • kellnerd joined the channel
      • 2023-03-22 08155, 2023

      • kellnerd
        monkey: I've followed your suggestion and almost got it working.
      • 2023-03-22 08155, 2023

      • kellnerd
        My dev server now has the following inside the footer: "Alpha Software — $(git rev-parse --short HEAD) — Report a Bug"
      • 2023-03-22 08151, 2023

      • kellnerd
        So .env file values are taken literally and will not be interpolated :/
      • 2023-03-22 08121, 2023

      • kellnerd
        Also, when passing this as Docker ARG, it is not available during runtime, e.g. via `process.env.GIT_COMMIT_SHA`
      • 2023-03-22 08122, 2023

      • kellnerd
        This leads to hacky workarounds such as `RUN echo $GIT_COMMIT_SHA > .git-version` and reading that file during runtime...
      • 2023-03-22 08119, 2023

      • kellnerd
        Wouldn't it be much easier to pass $GIT_COMMIT_SHA as an environment variable in docker-compose.yml?
      • 2023-03-22 08145, 2023

      • kellnerd
        I will try that now.
      • 2023-03-22 08154, 2023

      • kellnerd
        Ok, now I have "User-Agent: bookbrainz-site/$(git rev-parse --short HEAD) (bookbrainz.org)", but still not interpolated of course.
      • 2023-03-22 08157, 2023

      • kellnerd
        I think I've figured out how to approach this, will push my commits soon :)
      • 2023-03-22 08102, 2023

      • Sahaj has quit
      • 2023-03-22 08100, 2023

      • kellnerd
        Testing the changes took me a bit longer, because Docker rebuilds the whole image from scratch every time an ARG changes...
      • 2023-03-22 08110, 2023

      • kellnerd
        Sorry for force-pushing my branch twice in such a short period, I usually try to avoid that, but I wanted to clarify the commit messages a bit O:3
      • 2023-03-22 08117, 2023

      • kellnerd
        I think https://github.com/metabrainz/bookbrainz-site/pul… and its accompanying type definitions in https://github.com/metabrainz/bookbrainz-data-js/… should be ready to review now.
      • 2023-03-22 08118, 2023

      • kellnerd
        Only some stupid ESLint warnings with which I do not agree have not been fixed/muted so far...
      • 2023-03-22 08102, 2023

      • kellnerd
        I hope I won't immediately ruin stoichy's efforts from BB-732 with these new warnings.
      • 2023-03-22 08103, 2023

      • BrainzBot
        BB-732: Linter errors when running testing command https://tickets.metabrainz.org/browse/BB-732