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

use correct field in migration #3023

Merged

Conversation

ph448
Copy link
Contributor

@ph448 ph448 commented Jul 26, 2023

Description

Migration 160 currently fails for us, but probably produces incorrect results for everyone due to using an incorrect field, see issue #3022 for details

Related GitHub Issue

Fixes #3022

How Has This Been Tested?

I've built a release from the fix branch, installed it on our test system and was able to run the migration successfully.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have read the CONTRIBUTING document.
  • I have authority to submit this code.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@quoideneuf quoideneuf self-assigned this Aug 3, 2023
@quoideneuf
Copy link
Collaborator

@ph448 thanks! will take a look at this asap.

@quoideneuf quoideneuf self-requested a review August 11, 2023 14:55
@cdibella cdibella added this to the 3.4.1 milestone Aug 11, 2023
Copy link
Collaborator

@quoideneuf quoideneuf left a comment

Choose a reason for hiding this comment

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

@ph448
I tested both the original version of this migration and your change and got the same results. Here is the test I did:

  • Started V2.8.1 with a blank database
  • Created an agent_person with an agent contact with a note
  • Confirmed the note data appeared in the agent_contact table
  • Upgraded to V3.2.0
  • Confirmed the note data now appears in the note table
  • Confirmed the note data has no corresponding row in the note_persistent_id table
  • Upgraded to V3.4.0
  • Confirmed the note data now has a corresponding row in the note_persistent_id table
  • Rolled back the database to V3.2.0
  • Checkout out your branch and ran the db migration
  • Confirmed the note data now has a corresponding row in the note_persistent_id table
    So assuming this change resolved the issue you discovered, I think it should be a fine change.

@quoideneuf quoideneuf merged commit fa10601 into archivesspace:master Aug 16, 2023
10 checks passed
@cdibella cdibella added the community code contributed by community members not on or contracted by the ArchivesSpace program team label Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community code contributed by community members not on or contracted by the ArchivesSpace program team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migration 160 cannot be applied
3 participants