Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Allow specifying org id in client #3878

Merged
merged 2 commits into from Jun 12, 2023
Merged

feat: Allow specifying org id in client #3878

merged 2 commits into from Jun 12, 2023

Conversation

conradoverta
Copy link
Contributor

Impact and Context

This will include the provided value to the organization-id metadata header, which will be processed by the backend. The value is optional.

Risks and Area of Effect

Testing

  • Unit test
  • Deployed to dev env
  • Other (explain)

Reverting

  • Contains Migration - Do Not Revert

@github-actions
Copy link

Common Code Coverage

There is no coverage information present for the Files changed

Total Project Coverage 11.24% 🍏

@github-actions
Copy link

github-actions bot commented Jun 12, 2023

Backend Code Coverage

There is no coverage information present for the Files changed

Total Project Coverage 60.51% 🍏

@@ -67,11 +70,12 @@ def headers(self):
# without underscore, for NGINX support
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls#missing-disappearing-http-headers
"developer-key": self.dev_key,
"organization-id": self.organization_id or "",
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be preferable to do a

if self.organization_id:
    headers["organization-id"] = self.organization_id

instead of passing an empty string?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good.

@conradoverta conradoverta merged commit 67af06a into main Jun 12, 2023
6 checks passed
@conradoverta conradoverta deleted the cm/org-id branch June 12, 2023 21:29
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.

None yet

3 participants