Repository navigation
Conversation
|
Please note that the test_sanity critic failure is the |
…ges from flag_activity
… drop the backfill script
…net change per request
…the user activity stats
…vity change in the bug modal
…questee is removed
…ield and the activity by product
# Conflicts: # Bugzilla/DB/Schema.pm # Bugzilla/Install/DB.pm # t/flag-activity-who.t
…ctivity, the later ones from flag_activity
|
Besides the 5 previous points, found 4 small things, fixed in separate commits:
I also merged master: |
…in one query in the activity stream
|
@copilot resolve the merge conflicts in this pull request |
# Conflicts: # Bugzilla/DB/Schema.pm # Bugzilla/Install/DB.pm # Bugzilla/Test/Util.pm # editusers.cgi # qa/t/4_test_user_delete_requestee.t # t/flag-activity-start-rows.t # t/flag-activity-who.t
|
#2830 is deployed, so I merged master into this PR: its diff now only has the code changes. |
Summary
Stops writing flag changes to
bugs_activity: new ones are only recorded inflag_activity, and everything that reads flag changes now reads both tables,bugs_activityfor the changes up to the cutoff stored by checksetup andflag_activityfor the later ones.Part 2 of 1806896, whose part 1 (#2657) moved
flag_state_activityto core asflag_activityand writes every flag change to both tables. The schema part (#2830) is already deployed, so this PR has no schema change.Changes
Bugzilla::Bug,Bugzilla::Attachmentand the user deletion ineditusers.cgino longer logflagtypes.nametobugs_activity.GetBugActivity), bugmail (_get_diffs), the BMO user activity report and the UserProfile per-product counts read theflagtypes.namerows inbugs_activityup to the cutoff and theflag_activityrows after it (Bugzilla::FlagActivity->cutoff). A change written to both tables, by a pod still on the older code, is listed once. A request that changes a flag several times shows its net change, compared with the flag's last row before the request.changedbefore/changedafter/changedfrom/changedto/changedby/everchangedon flags, and the ReleaseTracking report, match either table.flag_idinflag_activity.flag_activity: the non-bot last change time, the UserProfile stats, the TagNewUsers first activity, owner idle time, andchanged*searches on any field.flag_activityrows can only be deactivated, not deleted, as its history would be deleted with it. The user deletion check ineditusers.cgicountsflag_activityrows.t/flag-activity-history.t,-search.t,-user-stats.t,-stream.tandt/flag-type-delete.t;t/flag-activity-start-rows.tchecks the history around the starting rows.The old
flagtypes.namerows stay inbugs_activity. Nothing is deleted.Deploy
No checksetup step: the cutoff is the one stored when #2830 was deployed. During the rolling deploy, pods still on the older code read only
bugs_activity, so they miss the flag changes made on the new pods until they are replaced.Test plan
bugs_activitygets no newflagtypes.namerowneedinfo?" and the user activity report find both older and new changeseditusers.cgi: the cleared requests appear in bug historyReferences