Skip to content
Snippets Groups Projects

Swap FK ci_daily_build_group_report_results to projects for LFK

What does this MR do and why?

Per &7249 (closed)

As part of our CI "decomposition" efforts we need to remove all foreign keys that are cross-database (ie. between the planned main and ci databases). We are going to replace them all with "loose foreign keys".

This foreign key have been determined to be safe for swapping to loose foreign keys per #348267 (closed).

We use Ci::DailyBuildGroupReportResult.project_id to build coverage analytic at the project level. Impossible to access the analytic page (groups/group_id/project_id/-/graphs/master/charts) without a project_id.

Related issue: #348267 (closed)

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Thong Kuah

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Adam Hegyi added 232 commits

    added 232 commits

    • bbfe662a...8e93523b - 230 commits from branch master
    • 578d5d95 - Add LFK ci_daily_build_group_report_results to projects
    • b7349395 - Add extra locking to avoid deadlock errors

    Compare with previous version

  • Adam Hegyi resolved all threads

    resolved all threads

  • Adam Hegyi added 1 commit

    added 1 commit

    • 1ae213b2 - Add extra locking to avoid deadlock errors

    Compare with previous version

  • Adam Hegyi approved this merge request

    approved this merge request

  • Adam Hegyi requested review from @pbair

    requested review from @pbair

  • Adam Hegyi unapproved this merge request

    unapproved this merge request

  • Patrick Bair added 1 commit

    added 1 commit

    • 10f7b6dc - Add test case to test deletion by LFK

    Compare with previous version

  • Patrick Bair approved this merge request

    approved this merge request

  • added databaseapproved label and removed databasereviewed label

  • Adam Hegyi approved this merge request

    approved this merge request

  • Adam Hegyi resolved all threads

    resolved all threads

  • Adam Hegyi enabled an automatic merge when the pipeline for 1da26134 succeeds

    enabled an automatic merge when the pipeline for 1da26134 succeeds

  • merged

  • Adam Hegyi mentioned in commit 5cd90bb9

    mentioned in commit 5cd90bb9

  • added workflowcanary label and removed workflowstaging label

  • added workflowproduction label and removed workflowcanary label

  • added devopsdata stores label and removed devopssystems label

  • Please register or sign in to reply
    Loading