Fix syncing when needinfo has no requestee
ClosedPublic

Authored by mkrizek on Nov 7 2014, 5:15 PM.

Diff Detail

Repository
rBLKR blockerbugs
Lint
Lint Skipped
Unit
Unit Tests Skipped
mkrizek retitled this revision from to Fix syncing when needinfo has no requestee.Nov 7 2014, 5:15 PM
mkrizek updated this object.
mkrizek edited the test plan for this revision. (Show Details)
mkrizek added a reviewer: tflink.
mkrizek added inline comments.Nov 7 2014, 5:18 PM
alembic/versions/4df932caa9a9_add_needinfo_request.py
20

When upgrading, needinfo won't be set to true and we lose information whether particular bug has needinfo. Do we want to do "update bug set needinfo to true where needinfo_requestee is not empty" in the migration script? Or are we ok with the current state?

tflink accepted this revision.Nov 10 2014, 8:06 PM

Functionality looks good to me. Per discussion on IRC, the migration has been tested with postgres

alembic/versions/4df932caa9a9_add_needinfo_request.py
20

I think it depends on how much work that'd be. If it's quick, that'd be a nice-to-have but I don't think it'd be required.

We'd be talking about only a few active bugs with needinfo set, so it wouldn't be horrible if we ended up needing to alter a few db records to make sure that the upgrade went smoothly and I'm not aware of any other folks using blockerbugs

This revision is now accepted and ready to land.Nov 10 2014, 8:06 PM
mkrizek updated this revision to Diff 734.Nov 11 2014, 12:56 PM
  • Do not lose information about needinfo in data migration

Bah, I didn't notice the change - phab still shows me as approved.

But, as long as this has been tested with postgres, looks good to me and no change on approved

mkrizek closed this revision.Nov 14 2014, 2:13 PM
mkrizek updated this revision to Diff 737.

Closed by commit rBLKR19d3198dcedc (authored by @mkrizek).