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

Suggesting a fix to the platformclient so a region can be specified t… #40

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rweeber-coveo
Copy link

This pull request is to review a simple fix to the platformclient.py and source.py classes that allow for a region parameter to be passed into the constructor. There is a default constructor value for region so that existing adoption of the SDK will continue to function. This is not a breaking change.

@rweeber-coveo rweeber-coveo requested a review from a team as a code owner October 29, 2024 21:55
@rweeber-coveo rweeber-coveo requested review from olamothe, fpbrault and alexprudhomme and removed request for a team October 29, 2024 21:55
@rweeber-coveo
Copy link
Author

The build failed due to something I think related to this bug: pypa/setuptools#4483. It's not something I can address on my end.

@louis-bompart
Copy link
Contributor

Hi @rweeber-coveo , if you can look at why the CI is failing and fix that in another PR, that'd be much appreciated.
I won't be able to merge those changes until then.

Comment on lines -190 to +191
return f'https://api.cloud.coveo.com/push/v1/organizations/{self.organizationid}'
return f'https://api-{self.region}.cloud.coveo.com/push/v1/organizations/{self.organizationid}'

Choose a reason for hiding this comment

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

I don't think https://api-us.cloud.coveo.com/push/v1/organizations/ is equal to https://api.cloud.coveo.com/push/v1/organizations/.

I can't find mentions of -us
https://docs.coveo.com/en/2976/manage-an-organization/deployment-regions-and-strategies

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.

3 participants