Skip to content
/ sir Public

SEARCH-642 (indexer): Drop id fields for cdstub and tag#118

Draft
reosarevok wants to merge 3 commits intomasterfrom
SEARCH-642
Draft

SEARCH-642 (indexer): Drop id fields for cdstub and tag#118
reosarevok wants to merge 3 commits intomasterfrom
SEARCH-642

Conversation

@reosarevok
Copy link
Member

Problem

SEARCH-642.

These are not the unique identifiers we use and are not exposed.
For cdstub we expose unique discid, for tag unique name.

Solution

This pull request stops filling this search field.

It also has to be removed it from search schema, see metabrainz/mbsssss#59

Checklist for author

  • Remove the fields from the documentation.

Action

Deploy metabrainz/mbsssss#59
Deploy this pull request
Rebuild cdstub and tag search indexes

@yvanzo
Copy link
Contributor

yvanzo commented May 12, 2022

Just rebased on the latest master branch.

Copy link
Contributor

@yvanzo yvanzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it is a breaking change that requires updating mbsssssat the same time, and thus a new release of mb-solr, I would prefer to merge this pull request and release the related MB Solr schema change separately from the MB Postgres schema change, so as not to further complicate our tests and deployment steps.

LGTMBDNT otherwise.

@yvanzo yvanzo marked this pull request as draft May 26, 2025 13:25
@yvanzo
Copy link
Contributor

yvanzo commented May 26, 2025

It can’t be tested without getting metabrainz/mbsssss#59 ready, hence marked as draft.

reosarevok and others added 2 commits January 30, 2026 13:15
These are not the unique identifiers we use and are not exposed.
For cdstub we expose unique discid, for tag unique name.
Run the following commands to regenerate SQL files:

        python -m sir triggers -bid 2
        ./GenerateDropSql.pl
This updates tests to drop tag and cdstub IDs; since a key is
expected, we use "tag" (the name) for tags and discid
for cdstubs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants