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

Commit

Permalink
[Backport 5.0] Add Cody events to managed instance usage data pipelin…
Browse files Browse the repository at this point in the history
…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
3 people authored May 3, 2023
1 parent 70c15d7 commit e3f03f2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions migrations/BUILD.bazel

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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[]));
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: sg_telemetry_allowlist
parents: [1680707560]
2 changes: 2 additions & 0 deletions migrations/frontend/1681923094_sg_telemetry_allowlist/up.sql
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;

0 comments on commit e3f03f2

Please sign in to comment.