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!: total confidence #49

Merged
merged 7 commits into from
May 29, 2024
Merged

feat!: total confidence #49

merged 7 commits into from
May 29, 2024

Conversation

vahidlazio
Copy link
Contributor

No description provided.

confidence/confidence.py Outdated Show resolved Hide resolved
@vahidlazio vahidlazio marked this pull request as ready for review May 28, 2024 09:20
@@ -40,7 +40,7 @@ The flag's schema is validated against the requested data type, and if it doesn'

```python

from confidence.provider import Region
from confidence.confidence import Region
Copy link
Member

Choose a reason for hiding this comment

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

Let's remember to update the readme to surface the Confidence-API's first and foremost.

confidence/confidence.py Outdated Show resolved Hide resolved
confidence/confidence.py Outdated Show resolved Hide resolved
confidence/confidence.py Outdated Show resolved Hide resolved
confidence/confidence.py Outdated Show resolved Hide resolved
event_url = "https://events.confidence.dev/v1/events:publish"
headers = {"Content-Type": "application/json", "Accept": "application/json"}
response = requests.post(event_url, json=request_body, headers=headers)
response.raise_for_status()
Copy link
Member

Choose a reason for hiding this comment

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

where is this error handled?

Copy link
Member

Choose a reason for hiding this comment

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

I think we need to figure out how to handle the response using some logging to signal if things are not being accepted.

confidence/confidence.py Outdated Show resolved Hide resolved
confidence/errors.py Outdated Show resolved Hide resolved
tests/test_provider.py Outdated Show resolved Hide resolved
demo.py Show resolved Hide resolved
@vahidlazio vahidlazio merged commit 58437a3 into main May 29, 2024
5 checks passed
@nicklasl nicklasl deleted the total_confidence branch November 7, 2024 12:10
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.

2 participants