Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

disq
Copy link
Member

@disq disq commented Mar 31, 2025

@disq disq requested review from a team and maaarcelino March 31, 2025 12:23
@github-actions github-actions bot added the feat label Mar 31, 2025
Copy link
Contributor

@murarustefaan murarustefaan left a comment

Choose a reason for hiding this comment

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

One comment, ok otherwise.

premium/usage.go Outdated
Comment on lines 731 to 738
func maybeGetInstallationID(tokenType auth.TokenType) string {
switch tokenType {
case auth.SyncRunAPIKey, auth.SyncTestConnectionAPIKey:
return os.Getenv("_CQ_INSTALLATION_ID")
default:
return ""
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we not have a function with a name starting with maybe? :))
Since this is used in a single place either way, let's skip extracting it as a separate function; or just rename it :)).

Copy link
Member Author

Choose a reason for hiding this comment

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

is determineInstallationID() ok? 771f100

Copy link
Contributor

Choose a reason for hiding this comment

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

Yup. LGTM!

@disq disq added the automerge label Mar 31, 2025
@kodiakhq kodiakhq bot merged commit 0bea6e7 into main Mar 31, 2025
8 checks passed
@kodiakhq kodiakhq bot deleted the feat/pass-installation-id branch March 31, 2025 13:05
kodiakhq bot pushed a commit that referenced this pull request Apr 2, 2025
🤖 I have created a release *beep* *boop*
---


## [4.76.0](v4.75.0...v4.76.0) (2025-04-02)


### Features

* Pass installation ID from env to usage report ([#2106](#2106)) ([0bea6e7](0bea6e7))


### Bug Fixes

* **deps:** Update golang.org/x/exp digest to 054e65f ([#2110](#2110)) ([f9875f8](f9875f8))
* **deps:** Update module github.com/cloudquery/plugin-pb-go to v1.26.9 ([#2112](#2112)) ([abd2117](abd2117))
* Error if both PKs and PK components are set ([#2113](#2113)) ([4f0b312](4f0b312))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
kodiakhq bot pushed a commit that referenced this pull request May 2, 2025
Follow-up to #2106

Plugins use regular team API keys for usage reports, not platform-specific local API keys.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants