Swap integer and bigint columns for notes and dependent tables for self-managed
This is the next step after Initialize the migration of notes.id and depend... (#389306 - closed). The process is outlined here.
These columns were already swapped for GitLab.com with #392815 (closed), now we have to do it for self-managed instances.
The columns we need to migrate are
-
notes.id
!127566 (merged) -
todos.note_id
!125837 (merged) -
system_note_metadata.note_id
!128803 (merged) -
epic_user_mentions.note_id
!128797 (merged) -
suggestions.note_id
!128892 (merged) -
issue_user_mentions.note_id
!128934 (merged) -
note_diff_files.diff_note_id
!128983 (merged) -
snippet_user_mentions.note_id
!128991 (merged) -
design_user_mentions.note_id
!129111 (merged) -
vulnerability_user_mentions.note_id
!129082 (merged) -
commit_user_mentions.note_id
!129117 (merged) -
merge_request_user_mentions.note_id
!129134 (merged) -
timelogs.note_id
!129258 (merged) -
award_emoji.awardable_id
!129263 (merged) -
events.targe_id
!129379 (merged)
Designs
- Show closed items
Relates to
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Krasimir Angelov changed milestone to %16.2
changed milestone to %16.2
- Krasimir Angelov assigned to @krasio
assigned to @krasio
- Krasimir Angelov marked this issue as related to #392815 (closed)
marked this issue as related to #392815 (closed)
- Krasimir Angelov added to epic &8070
added to epic &8070
- Krasimir Angelov removed missed:15.10 label
removed missed:15.10 label
- Krasimir Angelov removed missed:15.11 label
removed missed:15.11 label
- Krasimir Angelov removed missed:16.1 label
removed missed:16.1 label
- Krasimir Angelov removed missed:16.0 label
removed missed:16.0 label
@krasio In order to get a better understanding of our throughput and capacity, using issue weights based on merge requests. For this issue, would you consider how many merge requests it may take to implement this, add a comment enumerating them, and add the count as the issue weight? Thanks!
Examples (click to view)
An issue that just needs to update some documentation would be
/weight 1
accompanied by a comment:Just one merge request to documentation
An issue that might be broken out into separate merge requests for database, functional, documentation, and omnibus changes would be
/weight 4
accompanied by a comment:One to gitlab for database changes, one for new functionality, one for documentation changes, and one to omnibus
Collapse replies - Author Maintainer
One MR per table, so 15.
- Krasimir Angelov set weight to 15
set weight to 15
- Krasimir Angelov mentioned in merge request !125837 (merged)
mentioned in merge request !125837 (merged)
- Krasimir Angelov changed the description
Compare with previous version changed the description
- Krasimir Angelov mentioned in issue gitlab-org/database-team/team-tasks#361 (closed)
mentioned in issue gitlab-org/database-team/team-tasks#361 (closed)
- Krasimir Angelov mentioned in commit d660776a
mentioned in commit d660776a
- Krasimir Angelov mentioned in commit b879ee53
mentioned in commit b879ee53
- Krasimir Angelov mentioned in commit e001b86a
mentioned in commit e001b86a
- 🤖 GitLab Bot 🤖 changed milestone to %16.3
changed milestone to %16.3
- 🤖 GitLab Bot 🤖 added missed:16.2 label
added missed:16.2 label
- Krasimir Angelov marked the checklist item
todos.note_id
!125837 (merged) as completedmarked the checklist item
todos.note_id
!125837 (merged) as completed - Author Maintainer
@l.rosa @dfrazao-gitlab @praba.m7n I had a chat with @alexives about this one. It would be awesome if can merge 2 or 3 more MRs to for some of the other tables while I am on leave. Swapping the columns for self-managed is slightly more complicated that what we had to do for GitLab.com, as we have to consider the state of the instance (this depends on the release it was created from).
We can use !125837 (merged) as an example, I think all other cases will need the same checks. Diogo also has some experience with this as he had to do the same for
merge_request_metrics
.If you manage to cover some of the other tables, this will be awesome, otherwise I'll continue when I get back from OOO. Thanks!
Collapse replies - Maintainer
@Kras, sure! I believe we can work async through this issue. As we're start picking an item to work, we can report a note in this issue, like:
I'm starting working on:
-
Item
+, we can pair and sync if the questions pop up along the way.
1 -
- Author Maintainer
@l.rosa @dfrazao-gitlab @praba.m7n Thanks a lot! Feel free to send me the MRs for maintainer review.
1
- Krasimir Angelov assigned to @praba.m7n, @l.rosa, and @dfrazao-gitlab
assigned to @praba.m7n, @l.rosa, and @dfrazao-gitlab
- Maintainer
2 Collapse replies - Contributor
Working on
epic_user_mentions.note_id
1 - Maintainer
I am taking up
-
snippet_user_mentions.note_id
-
- Leonardo da Rosa changed the description
Compare with previous version changed the description
- Leonardo da Rosa mentioned in merge request !128156 (merged)
mentioned in merge request !128156 (merged)
- Leonardo da Rosa mentioned in merge request !127566 (merged)
mentioned in merge request !127566 (merged)
- Maintainer
I'm starting working on:
- system_note_metadata.note_id
- Diogo Frazão created branch
417402-swap-integer-and-bigint-columns-for-notes-and-dependent-tables-for-self-managed
to address this issuecreated branch
417402-swap-integer-and-bigint-columns-for-notes-and-dependent-tables-for-self-managed
to address this issue - Diogo Frazão mentioned in merge request !128797 (merged)
mentioned in merge request !128797 (merged)
- Leonardo da Rosa mentioned in merge request !128803 (merged)
mentioned in merge request !128803 (merged)
- Leonardo da Rosa changed the description
Compare with previous version changed the description
- Diogo Frazão changed the description
Compare with previous version changed the description
- Contributor
I'm starting working on:
- suggestions.note_id
1 - Diogo Frazão created branch
417402-swap-integer-and-bigint-columns-for-notes-and-dependent-tables-for-self-managed-2
to address this issuecreated branch
417402-swap-integer-and-bigint-columns-for-notes-and-dependent-tables-for-self-managed-2
to address this issue - Diogo Frazão mentioned in merge request !128892 (merged)
mentioned in merge request !128892 (merged)
- Leonardo da Rosa mentioned in commit 8c146ef9
mentioned in commit 8c146ef9
- Maintainer
I'm starting working on:
- issue_user_mentions.note_id
1 - Leonardo da Rosa changed the description
Compare with previous version changed the description
- Leonardo da Rosa changed the description
Compare with previous version changed the description
- Leonardo da Rosa mentioned in commit 7098b8dd
mentioned in commit 7098b8dd
- Diogo Frazão created branch
417402-swap-integer-and-bigint-columns-for-notes-and-dependent-tables-for-self-managed-3
to address this issuecreated branch
417402-swap-integer-and-bigint-columns-for-notes-and-dependent-tables-for-self-managed-3
to address this issue - Diogo Frazão mentioned in merge request !128983 (merged)
mentioned in merge request !128983 (merged)
- Contributor
I am starting working on:
-
note_diff_files
-
- Diogo Frazão changed the description
Compare with previous version changed the description
- Diogo Frazão changed the description
Compare with previous version changed the description
- ContributorResolved by Prabakaran Murugesan
I am starting working on:
-
snippet_user_mentions
Edited by Diogo Frazão -
3 replies Last reply by Diogo Frazão
- Diogo Frazão created branch
417402-swap-integer-and-bigint-columns-for-notes-and-dependent-tables-for-self-managed-4
to address this issuecreated branch
417402-swap-integer-and-bigint-columns-for-notes-and-dependent-tables-for-self-managed-4
to address this issue - Diogo Frazão mentioned in merge request !128991 (merged)
mentioned in merge request !128991 (merged)
- Leonardo da Rosa mentioned in merge request !128934 (merged)
mentioned in merge request !128934 (merged)
- Diogo Frazão changed the description
Compare with previous version changed the description
- Diogo Frazão created branch
417402-swap-integer-and-bigint-columns-for-notes-and-dependent-tables-for-self-managed-5
to address this issuecreated branch
417402-swap-integer-and-bigint-columns-for-notes-and-dependent-tables-for-self-managed-5
to address this issue - Diogo Frazão mentioned in merge request !129082 (merged)
mentioned in merge request !129082 (merged)
- Contributor
I am starting working on:
-
vulnerability_user_mentions
Edited by Diogo Frazão -
Collapse replies - Contributor
Merged
- Diogo Frazão changed the description
Compare with previous version changed the description
- Maintainer
Taking up
-
design_user_mentions.note_id
Edited by Prabakaran Murugesan -
- Prabakaran Murugesan created branch
417402-swap-integer-and-bigint-for-design_user_mentions-in-self-managed
to address this issuecreated branch
417402-swap-integer-and-bigint-for-design_user_mentions-in-self-managed
to address this issue - Prabakaran Murugesan mentioned in merge request !129111 (merged)
mentioned in merge request !129111 (merged)
- Prabakaran Murugesan changed the description
Compare with previous version changed the description
- Maintainer
I am starting working on:
-
commit_user_mentions.note_id
Edited by Leonardo da Rosa -
- Roger Woo mentioned in issue gitlab-org/database-team/team-tasks#368 (closed)
mentioned in issue gitlab-org/database-team/team-tasks#368 (closed)
- Leonardo da Rosa changed the description
Compare with previous version changed the description
- Leonardo da Rosa mentioned in merge request !129117 (merged)
mentioned in merge request !129117 (merged)
- Leonardo da Rosa mentioned in commit 0540ff60
mentioned in commit 0540ff60
- Maintainer
I am starting working on:
-
merge_request_user_mentions.note_id
-
- Leonardo da Rosa mentioned in merge request !129134 (merged)
mentioned in merge request !129134 (merged)
- Leonardo da Rosa changed the description
Compare with previous version changed the description
- Diogo Frazão created branch
417402-swap-integer-and-bigint-columns-for-notes-and-dependent-tables-for-self-managed-8bd1a6b79592bd16
to address this issuecreated branch
417402-swap-integer-and-bigint-columns-for-notes-and-dependent-tables-for-self-managed-8bd1a6b79592bd16
to address this issue - Diogo Frazão mentioned in merge request !129258 (merged)
mentioned in merge request !129258 (merged)
- Contributor
I am starting working on:
-
timelogs
Edited by Diogo Frazão -
- Diogo Frazão changed the description
Compare with previous version changed the description
- Contributor
I am starting working on:
-
award_emoji
Edited by Diogo Frazão -
- Diogo Frazão created branch
417402-swap-integer-and-bigint-columns-for-notes-and-dependent-tables-for-self-managed-7d86d094002f82b7
to address this issuecreated branch
417402-swap-integer-and-bigint-columns-for-notes-and-dependent-tables-for-self-managed-7d86d094002f82b7
to address this issue - Diogo Frazão mentioned in merge request !129263 (merged)
mentioned in merge request !129263 (merged)
- Diogo Frazão changed the description
Compare with previous version changed the description
- Diogo Frazão created branch
417402-swap-integer-and-bigint-columns-for-notes-and-dependent-tables-for-self-managed-4
to address this issuecreated branch
417402-swap-integer-and-bigint-columns-for-notes-and-dependent-tables-for-self-managed-4
to address this issue - Diogo Frazão mentioned in merge request !129379 (merged)
mentioned in merge request !129379 (merged)
- Diogo Frazão changed the description
Compare with previous version changed the description
- Diogo Frazão marked the checklist item
vulnerability_user_mentions.note_id
!129082 (merged) as completedmarked the checklist item
vulnerability_user_mentions.note_id
!129082 (merged) as completed - Diogo Frazão marked the checklist item
snippet_user_mentions.note_id
!128991 (merged) as completedmarked the checklist item
snippet_user_mentions.note_id
!128991 (merged) as completed - Leonardo da Rosa mentioned in commit 0986396e
mentioned in commit 0986396e
- Leonardo da Rosa mentioned in commit 96625787
mentioned in commit 96625787
- Leonardo da Rosa marked the checklist item
epic_user_mentions.note_id
!128797 (merged) as completedmarked the checklist item
epic_user_mentions.note_id
!128797 (merged) as completed - Leonardo da Rosa mentioned in commit cfdf4526
mentioned in commit cfdf4526
- Diogo Frazão marked the checklist item
timelogs.note_id
!129258 (merged) as completedmarked the checklist item
timelogs.note_id
!129258 (merged) as completed - Leonardo da Rosa marked the checklist item
commit_user_mentions.note_id
!129117 (merged) as completedmarked the checklist item
commit_user_mentions.note_id
!129117 (merged) as completed - Leonardo da Rosa mentioned in commit 86a83624
mentioned in commit 86a83624
- Leonardo da Rosa mentioned in merge request !129536 (closed)
mentioned in merge request !129536 (closed)
- Leonardo da Rosa mentioned in commit 8edb3efa
mentioned in commit 8edb3efa
- Leonardo da Rosa mentioned in commit 4b4892b4
mentioned in commit 4b4892b4
- Diogo Frazão marked the checklist item
suggestions.note_id
!128892 (merged) as completedmarked the checklist item
suggestions.note_id
!128892 (merged) as completed - Diogo Frazão marked the checklist item
system_note_metadata.note_id
!128803 (merged) as completedmarked the checklist item
system_note_metadata.note_id
!128803 (merged) as completed - Leonardo da Rosa mentioned in commit a3dc04da
mentioned in commit a3dc04da
- Author Maintainer
@dfrazao-gitlab @l.rosa @praba.m7n When writing test for the swap migrations, please make sure we clean up any column added during setup, otherwise we may end up with master:broken incidents like gitlab-org/quality/engineering-productivity/master-broken-incidents#3341 (comment 1518338296).
3 Collapse replies - Maintainer
Thanks for fixing that Kras
- Prabakaran Murugesan marked the checklist item
design_user_mentions.note_id
!129111 (merged) as completedmarked the checklist item
design_user_mentions.note_id
!129111 (merged) as completed - Leonardo da Rosa mentioned in commit 2a06f11d
mentioned in commit 2a06f11d
- Diogo Frazão marked the checklist item
note_diff_files.diff_note_id
!128983 (merged) as completedmarked the checklist item
note_diff_files.diff_note_id
!128983 (merged) as completed - Diogo Frazão marked the checklist item
events.targe_id
!129379 (merged) as completedmarked the checklist item
events.targe_id
!129379 (merged) as completed - Leonardo da Rosa mentioned in commit bf101a78
mentioned in commit bf101a78
- Diogo Frazão marked the checklist item
issue_user_mentions.note_id
!128934 (merged) as completedmarked the checklist item
issue_user_mentions.note_id
!128934 (merged) as completed - 🤖 GitLab Bot 🤖 changed milestone to %16.4
changed milestone to %16.4
- 🤖 GitLab Bot 🤖 added missed:16.3 label
added missed:16.3 label
- Diogo Frazão marked the checklist item
award_emoji.awardable_id
!129263 (merged) as completedmarked the checklist item
award_emoji.awardable_id
!129263 (merged) as completed - Leonardo da Rosa mentioned in commit b44244df
mentioned in commit b44244df
- Amy Qualls added twtriaged label
added twtriaged label
- Leonardo da Rosa mentioned in commit 5de4e4ec
mentioned in commit 5de4e4ec
- Leonardo da Rosa marked the checklist item
merge_request_user_mentions.note_id
!129134 (merged) as completedmarked the checklist item
merge_request_user_mentions.note_id
!129134 (merged) as completed - Leonardo da Rosa changed the description
Compare with previous version changed the description
- Leonardo da Rosa mentioned in commit ab535041
mentioned in commit ab535041
- Leonardo da Rosa added workflowin review label and removed workflowin dev label
added workflowin review label and removed workflowin dev label
- Leonardo da Rosa mentioned in commit 3e112281
mentioned in commit 3e112281
- Leonardo da Rosa added workflowstaging label and removed workflowin review label
added workflowstaging label and removed workflowin review label
- Krasimir Angelov marked the checklist item
notes.id
!127566 (merged) as completedmarked the checklist item
notes.id
!127566 (merged) as completed - Author Maintainer
All MRs are merged, I think we can close this issue now. Thanks everyone!
We can start the clean up from 16.5.
Edited by Krasimir Angelov - Krasimir Angelov closed
closed
- Roger Woo mentioned in issue gitlab-org/database-team/team-tasks#373 (closed)
mentioned in issue gitlab-org/database-team/team-tasks#373 (closed)
- Roger Woo mentioned in issue gitlab-org/database-team/team-tasks#379 (closed)
mentioned in issue gitlab-org/database-team/team-tasks#379 (closed)
- Krasimir Angelov mentioned in issue #428250 (closed)
mentioned in issue #428250 (closed)
- Krasimir Angelov changed the description
Compare with previous version changed the description
- 🤖 GitLab Bot 🤖 added groupdatabase frameworks label and removed groupdatabase [DEPRECATED] label
added groupdatabase frameworks label and removed groupdatabase [DEPRECATED] label