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

Pings: track if "cody.contextFilters" field is configured in site config#62080

Merged
taras-yemets merged 6 commits into
mainfrom
ty/add-cody-context-filters-configured-to-pings
Apr 25, 2024
Merged

Pings: track if "cody.contextFilters" field is configured in site config#62080
taras-yemets merged 6 commits into
mainfrom
ty/add-cody-context-filters-configured-to-pings

Conversation

@taras-yemets

@taras-yemets taras-yemets commented Apr 22, 2024

Copy link
Copy Markdown
Contributor

@cla-bot cla-bot Bot added the cla-signed label Apr 22, 2024
@taras-yemets taras-yemets requested review from a team April 22, 2024 11:35
@taras-yemets taras-yemets marked this pull request as ready for review April 22, 2024 11:35
Comment on lines +706 to +720
// We don't bother doing this on Sourcegraph.com as it is expensive and not needed.
if !dotcom.SourcegraphDotComMode() {
r.GrowthStatistics, err = getAndMarshalGrowthStatisticsJSON(ctx, db)
if err != nil {
logFunc("getAndMarshalGrowthStatisticsJSON failed", log.Error(err))
}

r.MigratedExtensionsUsage, err = getAndMarshalMigratedExtensionsUsageJSON(ctx, db)
if err != nil {
logFunc("getAndMarshalMigratedExtensionsUsageJSON failed", log.Error(err))
}

r.CodyContextFiltersConfigured = conf.SiteConfig().CodyContextFilters != nil
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Refactor to put all enterprise-only pings into one block.

@sourcegraph-bot

sourcegraph-bot commented Apr 22, 2024

Copy link
Copy Markdown
Contributor

📖 Storybook live preview

@akalia25 akalia25 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! I would still get the strat-eng-team to review and test. Thanks!

taras-yemets referenced this pull request in sourcegraph/docs Apr 25, 2024
1. Docs update on new pings data:
- RFC
- https://github.com/sourcegraph/sourcegraph/pull/62080

2. Add missing data on Cody providers pings. It existed on the old docs
site, data is still reported via pings, so it should probably be
mentioned on the pings page. Feel free to push back on this if we
intentionally removed this data.
@taras-yemets taras-yemets enabled auto-merge (squash) April 25, 2024 15:45
@taras-yemets taras-yemets merged commit cfe13d0 into main Apr 25, 2024
@taras-yemets taras-yemets deleted the ty/add-cody-context-filters-configured-to-pings branch April 25, 2024 16:11
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.

Telemetry: track whether Cody context filters are defined in the site config

3 participants