Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MBS-12359: Refactor _columns implementation in data model #3192

Merged
merged 1 commit into from
May 3, 2024

Conversation

reosarevok
Copy link
Member

Implement MBS-12359

Description

This changes the implementation of _columns to list each column on one row, and turns it into a lazy Moose attribute using a builder in order to cache the result of the join call.

Testing

Only automated testing at the moment.

@reosarevok reosarevok added the Refactoring Refactoring-only PRs (eslint fixes etc) label Feb 29, 2024
@reosarevok reosarevok added this to the Schema Change 2024 Q2 milestone Feb 29, 2024
This changes the implementation of _columns to list each column
on one row, and turns it into a lazy Moose attribute using a builder
in order to cache the result of the join call.
@mwiencek mwiencek changed the base branch from master to schema-change-2024-q2 May 3, 2024 17:13
@mwiencek mwiencek merged commit 2f89076 into metabrainz:schema-change-2024-q2 May 3, 2024
2 of 3 checks passed
yvanzo added a commit that referenced this pull request May 13, 2024
* schema-change-2024-q2:
  MBS-11962: Update privileges for all database users on schema changes
  Add `@FULL_SCHEMA_LIST` to constants
  Split upgrade script for MBS-13514
  Remove `CONCURRENTLY` from inside transaction blocks
  MBS-13421: Add support for genre collections (#3183)
  Fix a couple issues with the Solr test service
  Set a new musicbrainz-tests tag for the schema change
  CheckSchemaMigration.sh: restore previous t/sql/initial.sql
  Fix installing pending.so
  MBS-13403: Drop unused priority column from link_type (#3179)
  MBS-12359: Refactor _columns implementation in data model (#3192)
  MBS-13361: Require PostgreSQL 16 (#3234)
  MBS-13514: Support 6-digit label codes (#3208)
yvanzo added a commit that referenced this pull request May 13, 2024
* master:
  Update POT files using the production database
  Update Yarn version to the latest 4.2.2
  Fix installing our xgettext-js fork using Yarn v4
  MBS-11962: Update privileges for all database users on schema changes
  Add `@FULL_SCHEMA_LIST` to constants
  Split upgrade script for MBS-13514
  Amend 2e89f39: Limit to USER triggers
  Remove reference to `a_ins_instrument` trigger from t/sql/initial.sql
  Remove `CONCURRENTLY` from inside transaction blocks
  MBS-13421: Add support for genre collections (#3183)
  Fix a couple issues with the Solr test service
  Set a new musicbrainz-tests tag for the schema change
  Verify the OpenJDK/Solr release checksums
  Update Java and Solr versions in Dockerfile.tests
  CheckSchemaMigration.sh: restore previous t/sql/initial.sql
  Fix installing pending.so
  MBS-13557: Set a Referrer-Policy on login/register pages (#3245)
  MBS-13403: Drop unused priority column from link_type (#3179)
  MBS-12359: Refactor _columns implementation in data model (#3192)
  MBS-13361: Require PostgreSQL 16 (#3234)
  MBS-13514: Support 6-digit label codes (#3208)
yvanzo added a commit that referenced this pull request May 13, 2024
* beta:
  Update translation files
  Update POT files using the production database
  Update Yarn version to the latest 4.2.2
  Fix installing our xgettext-js fork using Yarn v4
  MBS-11962: Update privileges for all database users on schema changes
  Add `@FULL_SCHEMA_LIST` to constants
  Split upgrade script for MBS-13514
  Remove `CONCURRENTLY` from inside transaction blocks
  MBS-13421: Add support for genre collections (#3183)
  Fix a couple issues with the Solr test service
  Set a new musicbrainz-tests tag for the schema change
  Verify the OpenJDK/Solr release checksums
  Update Java and Solr versions in Dockerfile.tests
  CheckSchemaMigration.sh: restore previous t/sql/initial.sql
  Fix installing pending.so
  MBS-13557: Set a Referrer-Policy on login/register pages (#3245)
  MBS-13403: Drop unused priority column from link_type (#3179)
  MBS-12359: Refactor _columns implementation in data model (#3192)
  MBS-13361: Require PostgreSQL 16 (#3234)
  MBS-13514: Support 6-digit label codes (#3208)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactoring Refactoring-only PRs (eslint fixes etc)
Projects
None yet
2 participants