schema/HTTPNotificationRuleBase - url property ignored in request
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- openapi, yaml
- Área
- api
Línea de trabajo
Comienza con HTTPNotificationRuleBase.yml y los puntos de entrada de request/response de notification-rule. Reproduce el request mostrado, compara el objeto devuelto con el esquema y rastrea cómo se gestionan endpointID y url. Se considera terminado cuando el comportamiento previsto de url está documentado o corregido y cubierto por un test de request.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
When sending a request with the property url as defined in HTTPNotificationRuleBase.yml the server returns an object without it.
Request Body
reqBody {
"type": "http",
"every": "10m",
"offset": "0s",
"name": "HTTPRule_b336",
"status": "active",
"tagRules": [],
"labels": [],
"statusRules": [
{
"currentLevel": "CRIT",
"previousLevel": "ANY"
}
],
"description": "foo",
"limit": 3,
"limitEvery": 3600,
"runbookLink": "/api/v2private/notebooks?orgID=9c5955fc99a60b8f",
"url": "http://bogus.listener.test",
"orgID": "d96c634457c016c9",
"endpointID": "0a0bbc8e6d3d1000"
}
Response
resp.body {
"id": "0a0bbc8fbca26000",
"name": "HTTPRule_b336",
"description": "foo",
"endpointID": "0a0bbc8e6d3d1000",
"orgID": "d96c634457c016c9",
"ownerID": "0a0bbc8d173d1000",
"taskID": "0a0bbc8fbfa14000",
"every": "10m",
"offset": "0s",
"runbookLink": "/api/v2private/notebooks?orgID=9c5955fc99a60b8f",
"statusRules": [
{
"currentLevel": "CRIT",
"previousLevel": "ANY"
}
],
"limit": 3,
"limitEvery": 3600,
"createdAt": "2022-09-27T12:38:39.602827553Z",
"updatedAt": "2022-09-27T12:38:39.602827553Z",
"type": "http",
"labels": [],
"links": {
"self": "/api/v2/notificationRules/0a0bbc8fbca26000",
"labels": "/api/v2/notificationRules/0a0bbc8fbca26000/labels",
"members": "/api/v2/notificationRules/0a0bbc8fbca26000/members",
"owners": "/api/v2/notificationRules/0a0bbc8fbca26000/owners",
"query": "/api/v2/notificationRules/0a0bbc8fbca26000/query"
},
"status": "active",
"latestCompleted": "2022-09-27T12:38:39Z",
"latestScheduled": "2022-09-27T12:38:39Z"
}
HTTPNotificationRuleBase.yml
type: object
required: [type]
properties:
type:
type: string
enum: [http]
url:
type: string
BTW. If connection and sending of notifications is handled by the endpoint bound through the property endpointID, why is the property url necessary in the NotificationRule?
Latest commit in openapi
commit ad64ba87e7dd666feb80bbb85d1757b3d290d6c3 (HEAD -> master, origin/master, origin/HEAD)
Author: wiedld <[email protected]>
Date: Thu Sep 22 10:01:37 2022 -0700
Testing in K8SIDPE - latest commit
commit d3c2922e6c43cc6d7708a1622d6d2d7b1943b769 (HEAD -> master, origin/master, origin/HEAD)
Author: influx-acs[bot] <107396960+influx-acs[bot]@users.noreply.github.com>
Date: Tue Sep 27 01:45:24 2022 +0000
- Lenguaje dominante
- Shell
- Estrellas
- 18
- Forks
- 9
- Merge medio
- 2 d 18 h
- PR fusionados (30 d)
- 1
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de influxdata/openapi
-
Add missing Cloud Routes keysPosiblemente ocupada @jstirnaman la tomó hace 3 días. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
influxdata/openapi#660 ·
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
influxdata/openapi#657 ·
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 85/100
influxdata/openapi#653 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 65/100
influxdata/openapi#240 ·
-
Update /ready and /health schemas for v2.10Posiblemente ocupada @devanbenz la tomó hace 3 días. Abierto
influxdata/openapi#659 · 1 comentario · 2 asignados ·
Todos los issues de influxdata/openapi
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
msys2/MSYS2-packages#6813 ·
Los mantenedores suelen responder en 1 día
-
Laptop display stays disabled after unplugging external monitor: FALLBACK output counted as externalAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
-
[Bug]: Three default prefs with JSON values are never set (override.sh escapes their quotes twice)Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Floorp-Projects/Floorp#2913 ·
Los mantenedores suelen responder en 1 día
-
agent-butler-finding agent-research-recommend bug ready-for-agent
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
jordansmall/spindrift#5258 · 1 comentario ·
Los mantenedores suelen responder en 1 día