This repository has been archived by the owner on Sep 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Backport 5.0] Add Cody events to managed instance usage data pipelin…
…e allowlist (#50869) ## Test plan n/a <!-- All pull requests REQUIRE a test plan: https://docs.sourcegraph.com/dev/background-information/testing_principles --> <br> Backport 92d1f19 from #50865 --------- Co-authored-by: Nathan Downs <85511556+nathan-downs@users.noreply.github.com> Co-authored-by: Joe Chen <joe@sourcegraph.com>
- Loading branch information
1 parent
70c15d7
commit e3f03f2
Showing
4 changed files
with
9 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
migrations/frontend/1681923094_sg_telemetry_allowlist/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- This migration was generated by the command `sg telemetry add` | ||
DELETE FROM event_logs_export_allowlist WHERE event_name IN (SELECT * FROM UNNEST('{CodyVSCodeExtension:recipe:rewrite-to-functional:executed,CodyVSCodeExtension:recipe:improve-variable-names:executed,CodyVSCodeExtension:recipe:replace:executed,CodyVSCodeExtension:recipe:generate-docstring:executed,CodyVSCodeExtension:recipe:generate-unit-test:executed,CodyVSCodeExtension:recipe:rewrite-functional:executed,CodyVSCodeExtension:recipe:code-refactor:executed,CodyVSCodeExtension:recipe:fixup:executed,CodyVSCodeExtension:recipe:explain-code-high-level:executed,CodyVSCodeExtension:recipe:explain-code-detailed:executed,CodyVSCodeExtension:recipe:find-code-smells:executed,CodyVSCodeExtension:recipe:git-history:executed,CodyVSCodeExtension:recipe:rate-code:executed,CodyVSCodeExtension:recipe:chat-question:executed,CodyVSCodeExtension:recipe:translate-to-language:executed}'::TEXT[])); |
2 changes: 2 additions & 0 deletions
2
migrations/frontend/1681923094_sg_telemetry_allowlist/metadata.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
name: sg_telemetry_allowlist | ||
parents: [1680707560] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- This migration was generated by the command `sg telemetry add` | ||
INSERT INTO event_logs_export_allowlist (event_name) VALUES (UNNEST('{CodyVSCodeExtension:recipe:rewrite-to-functional:executed,CodyVSCodeExtension:recipe:improve-variable-names:executed,CodyVSCodeExtension:recipe:replace:executed,CodyVSCodeExtension:recipe:generate-docstring:executed,CodyVSCodeExtension:recipe:generate-unit-test:executed,CodyVSCodeExtension:recipe:rewrite-functional:executed,CodyVSCodeExtension:recipe:code-refactor:executed,CodyVSCodeExtension:recipe:fixup:executed,CodyVSCodeExtension:recipe:explain-code-high-level:executed,CodyVSCodeExtension:recipe:explain-code-detailed:executed,CodyVSCodeExtension:recipe:find-code-smells:executed,CodyVSCodeExtension:recipe:git-history:executed,CodyVSCodeExtension:recipe:rate-code:executed,CodyVSCodeExtension:recipe:chat-question:executed,CodyVSCodeExtension:recipe:translate-to-language:executed}'::TEXT[])) ON CONFLICT DO NOTHING; |