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

Follow up for "Migrate from BlockVersion.soft to BlockVersion.block_type" #22821

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

bakulf
Copy link
Contributor

@bakulf bakulf commented Nov 4, 2024

Fixes: mozilla/addons/issues/15111

Description

This PR is the follow up for #22811. It does the following:

  • Remove the 'soft' field
  • Make 'block_type' not nullable in the model and in the DB

Context

See #22811.

Testing

No new tests needed.

Checklist

  • Add #ISSUENUM at the top of your PR to an existing open issue in the mozilla/addons repository.
  • Successfully verified the change locally.
  • The change is covered by automated tests, or otherwise indicated why doing so is unnecessary/impossible.
  • Add before and after screenshots (Only for changes that impact the UI).
  • Add or update relevant docs reflecting the changes made.

@bakulf bakulf changed the base branch from master to positiveTinyInteger November 4, 2024 20:44
@bakulf bakulf force-pushed the positiveTinyInteger branch from e68100d to ee25d84 Compare November 4, 2024 21:07
@bakulf bakulf force-pushed the positiveTinyInteger2 branch from 9f2229a to e170cae Compare November 4, 2024 21:08
@bakulf bakulf force-pushed the positiveTinyInteger branch from ee25d84 to 1d89978 Compare November 5, 2024 10:07
@bakulf bakulf force-pushed the positiveTinyInteger2 branch from e170cae to 3e43152 Compare November 5, 2024 10:07
@bakulf bakulf requested a review from KevinMind November 5, 2024 10:08
Base automatically changed from positiveTinyInteger to master November 5, 2024 10:59
@bakulf bakulf force-pushed the positiveTinyInteger2 branch from 3e43152 to da8eb68 Compare November 5, 2024 11:00
@willdurand
Copy link
Member

Fixes: mozilla/addons/issues/15111

This appears to be fixed already. Either the other PR shouldn't have closed as fixed the issue, or another issue is needed :)

@bakulf bakulf force-pushed the positiveTinyInteger2 branch from da8eb68 to d212b9f Compare November 18, 2024 18:43
@bakulf bakulf requested a review from KevinMind November 18, 2024 18:47
Copy link
Contributor

@KevinMind KevinMind left a comment

Choose a reason for hiding this comment

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

I did not verify this locally but it looks good to me code wise. The migration will run on dev and stage before prod so that might be testing enough.

Probably not a terrible idea to verify locally by

  1. create a BlockVersion with block_type==None and soft==true/false
  2. run the migration
  3. expect it passes and the value is updated correctly.

@KevinMind
Copy link
Contributor

Fixes: mozilla/addons/issues/15111

This appears to be fixed already. Either the other PR shouldn't have closed as fixed the issue, or another issue is needed :)

The former. The issue should still be open.

@bakulf bakulf merged commit 141d275 into master Dec 12, 2024
31 checks passed
@bakulf bakulf deleted the positiveTinyInteger2 branch December 12, 2024 13:57
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.

[Task]: Migrate from BlockVersion.soft to BlockVersion.block_type
3 participants