chore: Data migration script for overlay edit_type field and corresponding pghistory event#979
Conversation
…nding pghistory event
| ignored.click() | ||
| expect(active.get_by_text("alpha")).to_be_visible() | ||
| expect(active.get_by_text("charlie")).to_be_visible() | ||
| # Expand the ignored packages section before asserting since it will close due to re-render |
There was a problem hiding this comment.
Wasn't the previous version doing just that?
There was a problem hiding this comment.
it started failing, for some weird reason, and this fixed it
|
|
||
| # let freeze the time for a bit long after the debounce time | ||
| # so that we delete event does not get folded to properly test | ||
| frozen_time.tick( |
There was a problem hiding this comment.
I think it's fine to add the new checks to the existing test. Maybe update the name. The setup takes quite long, also repeating test cases is very bad for readability.
There was a problem hiding this comment.
This is not a repeated testcase, this testcase it testing when there is a delete the activity log reflect that it was deleted based on the new event label conventions.
There was a problem hiding this comment.
But up to this line the test is identical to the previous one. Why not just continue that one?
| return wrapped | ||
|
|
||
|
|
||
| @pytest.fixture() |
There was a problem hiding this comment.
I don't think it makes much sense moving that, since we're only using it in that one place
There was a problem hiding this comment.
but fixtures should be in conftests
There was a problem hiding this comment.
Yeah but not for those we use exactly once for a very particular test. I'm fine moving it when there's a need :)
|
The tests failed due to running out of space. We may need to increase the VM disk size: nix-security-tracker/nix/tests/default.nix Lines 9 to 15 in 6f3b269 |
Ah, Thank you , i will fix it. |
| "is_event_table": True, | ||
| }, | ||
| { | ||
| "class": MaintainerOverlayEvent, |
There was a problem hiding this comment.
I haven't looked at the PR in full yet, but I think this is wrong as it doesn't take into account edit _type which adds semantics for what it means to add/remove a maintainer.
There was a problem hiding this comment.
sorry, not sure i understand your comment, please clarify more ?
|
I guess we can close this as duplicate of #945 |
Description:
Migrate overlay edit_type values and event labels, Updates existing overlay records and pghistory event tables to use new field values:
Edit Type
PGH Label
Notes