Remove created_by_campaign database column
Created by: eseliger
This became redundant when we introduced owned_by_campaign_id. Cleaning up the DB and making it a bit simpler to understand here. Also added a test for the usagestats as I was feeling uncomfortable adding an untested SQL query.
Closes https://github.com/sourcegraph/sourcegraph/issues/12650
Merge request reports
Activity
Created by: codecov[bot]
Codecov Report
Merging #14157 into main will increase coverage by
5.19%
. The diff coverage is100.00%
.@@ Coverage Diff @@ ## main #14157 +/- ## ========================================== + Coverage 46.56% 51.76% +5.19% ========================================== Files 1531 1531 Lines 77613 77610 -3 Branches 6934 7047 +113 ========================================== + Hits 36142 40175 +4033 + Misses 37853 33816 -4037 - Partials 3618 3619 +1
Flag Coverage Δ #go 51.94% <100.00%> (+0.05%)
#integration 30.34% <ø> (?)
#storybook 18.07% <ø> (?)
#typescript 51.34% <ø> (+17.42%)
#unit 33.91% <ø> (ø)
Impacted Files Coverage Δ enterprise/internal/campaigns/reconciler.go 57.06% <ø> (-0.12%)
enterprise/internal/campaigns/store_changesets.go 83.33% <ø> (-0.11%)
internal/campaigns/changeset.go 54.66% <ø> (ø)
cmd/frontend/internal/usagestats/campaigns.go 93.54% <100.00%> (+93.54%)
cmd/frontend/graphqlbackend/zoekt.go 76.75% <0.00%> (+0.84%)
shared/src/util/url.ts 90.13% <0.00%> (+0.89%)
web/src/search/results/SearchResults.tsx 58.13% <0.00%> (+1.55%)
web/src/search/results/SearchResultsList.tsx 72.22% <0.00%> (+1.85%)
web/src/org/area/OrgInvitationPage.tsx 2.08% <0.00%> (+2.08%)
...c/browser-extension/options-page/ServerUrlForm.tsx 95.55% <0.00%> (+2.22%)
... and 269 more
Please register or sign in to reply