-
Notifications
You must be signed in to change notification settings - Fork 1.3k
enterprise/internal/insights: add basic store package + testing infrastructure #17733
Conversation
…structure This adds the basic store package implementation (just the groundowork, no actual implementation) based on what we do in campaigns, code monitoring, etc. I am sending this as a separate PR before implementing the store, as it is a non-trivial amount of setup code which is nice to track separately for purposes of documentation and for seeing how we can improve adding backends like this, campaigns, code monitoring, etc. in the future. Helps #17218 Signed-off-by: Stephen Gutekanst <stephen@sourcegraph.com>
|
Notifying subscribers in CODENOTIFY files for diff 77b3ce3...199a53a.
|
|
🤔 |
|
gonna reopen in a bit, I realized I need to do more work here to get this running nicely in CI + dev testing environments first (depends on timescaledb being launched via docker) |
Signed-off-by: Stephen Gutekanst <stephen@sourcegraph.com>
|
Ok, PTAL @efritz |
Codecov Report
@@ Coverage Diff @@
## main #17733 +/- ##
==========================================
+ Coverage 48.10% 51.20% +3.09%
==========================================
Files 1720 1721 +1
Lines 86067 86071 +4
Branches 7699 7699
==========================================
+ Hits 41404 44069 +2665
+ Misses 40773 38109 -2664
- Partials 3890 3893 +3
|
| // Store exposes methods to read and write code insights domain models from | ||
| // persistent storage. | ||
| type Store struct { | ||
| *basestore.Store |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.






This adds the basic store package implementation (just the groundowork, no
actual implementation) based on what we do in campaigns, code monitoring, etc.
I am sending this as a separate PR before implementing the store, as it is
a non-trivial amount of setup code which is nice to track separately for
purposes of documentation and for seeing how we can improve adding backends
like this, campaigns, code monitoring, etc. in the future.
Depends on: (TODO: send other PR for running timescale on CI)
Helps #17218
Fixes #17226
Signed-off-by: Stephen Gutekanst stephen@sourcegraph.com