Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

insights: put data retention under an experimental setting for 4.4#46440

Merged
leonore merged 8 commits into
mainfrom
insights/experimental-retention
Jan 13, 2023
Merged

insights: put data retention under an experimental setting for 4.4#46440
leonore merged 8 commits into
mainfrom
insights/experimental-retention

Conversation

@leonore

@leonore leonore commented Jan 13, 2023

Copy link
Copy Markdown
Contributor

flagging this until 4.5 when the exporting functionality will be competed

Test plan

started sourcegraph with and without the setting

@sourcegraph-bot

sourcegraph-bot commented Jan 13, 2023

Copy link
Copy Markdown
Contributor

Codenotify: Notifying subscribers in CODENOTIFY files for diff dd141be...a299d8d.

Notify File(s)
@sourcegraph/code-insights-backend enterprise/internal/insights/background/retention/worker.go
enterprise/internal/insights/background/retention/worker_test.go

Comment thread enterprise/internal/insights/background/background.go Outdated

func (h *dataRetentionHandler) Handle(ctx context.Context, logger log.Logger, record *DataRetentionJob) (err error) {
doArchive := conf.ExperimentalFeatures().InsightsDataRetention
if doArchive != nil && !*doArchive {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you add the nil condition here you can safely remove the routine loading condition.

@coury-clark coury-clark left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@leonore leonore enabled auto-merge (squash) January 13, 2023 18:29
@leonore leonore merged commit a6a11c4 into main Jan 13, 2023
@leonore leonore deleted the insights/experimental-retention branch January 13, 2023 18:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants