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

insights: save insight series recording times on creation and job runs#42801

Merged
leonore merged 53 commits into
mainfrom
insights/save-intervals-on-create
Oct 24, 2022
Merged

insights: save insight series recording times on creation and job runs#42801
leonore merged 53 commits into
mainfrom
insights/save-intervals-on-create

Conversation

@leonore

@leonore leonore commented Oct 11, 2022

Copy link
Copy Markdown
Contributor

closes #42343 but should not be merged before all the other issues are worked on in case the db schema needs to be changed or things need to be polished

Test plan

Added unit tests. Have manually tested the logic

explanatory loom: https://www.loom.com/share/080da2d41ba349278b35c1557dca4deb

@leonore leonore requested a review from a team October 12, 2022 17:05
@leonore leonore changed the title wip insights: save insight series recording times on creation and job runs insights: save insight series recording times on creation and job runs Oct 12, 2022
@leonore leonore marked this pull request as ready for review October 12, 2022 17:05
@sourcegraph-bot

sourcegraph-bot commented Oct 12, 2022

Copy link
Copy Markdown
Contributor

Codenotify: Notifying subscribers in CODENOTIFY files for diff dfe0ab9...f8c4124.

Notify File(s)
@sourcegraph/code-insights-backend enterprise/internal/insights/background/historical_enqueuer.go
enterprise/internal/insights/background/queryrunner/search.go
enterprise/internal/insights/background/queryrunner/work_handler.go
enterprise/internal/insights/pipeline/backfill.go
enterprise/internal/insights/resolvers/insight_view_resolvers.go
enterprise/internal/insights/resolvers/resolver.go
enterprise/internal/insights/store/insight_store_test.go
enterprise/internal/insights/store/mocks_temp.go
enterprise/internal/insights/store/store.go
enterprise/internal/insights/store/store_test.go
enterprise/internal/insights/timeseries/frames.go
enterprise/internal/insights/types/types.go

Comment thread enterprise/internal/insights/background/queryrunner/search.go Outdated
Comment thread enterprise/internal/insights/store/store.go
Comment thread migrations/codeinsights/squashed.sql
Comment thread migrations/codeinsights/1665053848_add_insight_series_recording_times/up.sql Outdated
Comment thread enterprise/internal/insights/background/historical_enqueuer.go
Comment thread enterprise/internal/insights/store/store.go Outdated

@chwarwick chwarwick 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.

I think it looks good, but I think you are missing the dependent frames times and possibly preempted repos in all repos backfilling.

Comment thread enterprise/internal/insights/store/store.go Outdated
Comment thread enterprise/internal/insights/background/queryrunner/search.go Outdated
Comment thread enterprise/internal/insights/background/historical_enqueuer.go

@chwarwick chwarwick 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.

I think you've got everything covered here. I'm just not sure if it dependent on the the snapshot item too.

@leonore leonore merged commit a5b1174 into main Oct 24, 2022
@leonore leonore deleted the insights/save-intervals-on-create branch October 24, 2022 12:44
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.

insights: save insight series recording times intervals on backfill and recording

4 participants