Skip to content

Commit

Permalink
fix(api): update provider with json (#2880)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahargl authored Dec 23, 2024
1 parent a4f8094 commit 6adf5bc
Show file tree
Hide file tree
Showing 15 changed files with 8 additions and 288 deletions.
3 changes: 0 additions & 3 deletions docs/api-ref/root.mdx

This file was deleted.

2 changes: 1 addition & 1 deletion docs/deployment/kubernetes/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ We maintain an opinionated, batteries-included Helm chart, but you can customize
## Next steps
- Install Keep on [Kubernetes](/deployment/kubernetes/installation).
- Keep's [Helm Chart](https://github.com/keephq/helm-charts).
- Keep with [Kubernetes Secret Manager](/deployment/secret-manager#kubernetes-secret-manager)
- Keep with [Kubernetes Secret Manager](/deployment/secret-store#kubernetes-secret-manager)
- Deep dive to Keep's kubernetes [Architecture](/deployment/kubernetes/architecture).
- Install Keep on [OpenShift](/deployment/kubernetes/openshift).
4 changes: 0 additions & 4 deletions docs/incidents/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ A brief overview of the incident, optionally enhanced with AI-generated summarie
### (4) Link Similar Incidents
Connects related incidents for better visibility into recurring or interconnected issues.

<Frame width="100" height="200">
<img height="10" src="/images/incident_link.png" />
</Frame>

### (5) Involved Services
Lists the services affected by the incident, allowing teams to understand the scope of the impact.

Expand Down
1 change: 1 addition & 0 deletions docs/mint.json
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@
{
"group": "Deployment",
"pages": [
"deployment/getting-started",
"deployment/configuration",
"deployment/monitoring",
{
Expand Down
111 changes: 0 additions & 111 deletions docs/overview/examples.mdx

This file was deleted.

54 changes: 0 additions & 54 deletions docs/platform/alerts.mdx

This file was deleted.

15 changes: 0 additions & 15 deletions docs/platform/overview.mdx

This file was deleted.

41 changes: 0 additions & 41 deletions docs/platform/settings.mdx

This file was deleted.

16 changes: 0 additions & 16 deletions docs/platform/support.mdx

This file was deleted.

27 changes: 0 additions & 27 deletions docs/providers/getting-started.mdx

This file was deleted.

11 changes: 0 additions & 11 deletions docs/providers/what-is-a-provider.mdx

This file was deleted.

3 changes: 0 additions & 3 deletions docs/workflows/syntax/state.mdx

This file was deleted.

2 changes: 1 addition & 1 deletion keep/api/routes/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ async def update_provider(

for key, value in provider_info.items():
if isinstance(value, UploadFile):
provider_info[key] = await value.file.read().decode()
provider_info[key] = value.file.read().decode()

try:
result = ProvidersService.update_provider(
Expand Down
4 changes: 4 additions & 0 deletions keep/providers/providers_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,10 @@ def update_provider(

pulling_enabled = provider_info.pop("pulling_enabled", True)

# if pulling_enabled is "true" or "false" cast it to boolean
if isinstance(pulling_enabled, str):
pulling_enabled = pulling_enabled.lower() == "true"

provider_config = {
"authentication": provider_info,
"name": provider.name,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "keep"
version = "0.32.2"
version = "0.32.3"
description = "Alerting. for developers, by developers."
authors = ["Keep Alerting LTD"]
packages = [{include = "keep"}]
Expand Down

0 comments on commit 6adf5bc

Please sign in to comment.