Skip to content

point mixer-api-key to dc-api-key #1949

Open
yiyche wants to merge 1 commit into
datacommonsorg:masterfrom
yiyche:feature/unify-api-key
Open

point mixer-api-key to dc-api-key #1949
yiyche wants to merge 1 commit into
datacommonsorg:masterfrom
yiyche:feature/unify-api-key

Conversation

@yiyche

@yiyche yiyche commented Jun 19, 2026

Copy link
Copy Markdown
Member

in CDC they're pointed to the same thing. next step would be remove references to this in website/build/cdc_services/run.sh and website/run_cdc_dev.sh.

@yiyche yiyche requested a review from clincoln8 June 19, 2026 00:43

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request updates the value of the MixerAPIKeyID constant to 'dc-api-key' in internal/util/util.go. The reviewer suggests renaming the constant to DCAPIKeyID and updating its associated comment and references to maintain consistency and avoid confusion.

Comment thread internal/util/util.go
MapsAPIKeyID = "maps-api-key"
// Mixer API key
MixerAPIKeyID = "mixer-api-key"
MixerAPIKeyID = "dc-api-key"

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.

medium

Since this constant now points to "dc-api-key", keeping the name MixerAPIKeyID is misleading and can cause confusion. Consider renaming the constant to DCAPIKeyID to accurately reflect its value.

Note that you will also need to update:

  1. The comment on line 65 to // DC API key.
  2. Its reference in internal/server/server.go (line 138).
Suggested change
MixerAPIKeyID = "dc-api-key"
DCAPIKeyID = "dc-api-key"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant