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

Note persistent id issue #2649

Merged
merged 2 commits into from Mar 10, 2022
Merged

Note persistent id issue #2649

merged 2 commits into from Mar 10, 2022

Conversation

quoideneuf
Copy link
Collaborator

Re-submission of #2627 (see that PR for original description).

While testing, I realized that certain previous migrations (088, 142) that transformed legacy data into notes failed to populate the note_persistent_id table while populating the note table. This is a fairly obscure omission, but could break the note-referencing functionality that supports index notes.

Copy link
Contributor

@lorawoodford lorawoodford left a comment

Choose a reason for hiding this comment

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

@quoideneuf Sorry for the slow reply to this, but thanks for catching this! This looks good to me, with the caveat that I don't really have any real-life messy dbs hanging around to fully test the migration. But everything looks right.

I was pretty surprised how hard it was to trace a note (whether single- or multi-part) back up to it's parent record. I considered making a helper method to do it, but this had already gotten far more complex than I thought it should be.

Thanks again!

@quoideneuf quoideneuf merged commit 68c8c5e into master Mar 10, 2022
@quoideneuf quoideneuf deleted the note-persistent-id-issue branch March 10, 2022 09:24
@cdibella cdibella added this to the 3.2.1 milestone Apr 27, 2022
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.

None yet

3 participants