Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

schema/HTTPNotificationRuleBase - url property ignored in request

Aperta
#558 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
openapi, yaml
Ambito
api

Direzione di ricerca

Inizia con HTTPNotificationRuleBase.yml e con i punti di ingresso request/response di notification-rule. Riproduci la request mostrata, confronta l’oggetto restituito con lo schema e traccia la gestione di endpointID e url. Il lavoro è completo quando il comportamento previsto di url è documentato o corretto e coperto da un test della request.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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 <wiedld@users.noreply.github.com>
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
Lingua principale
Shell
Stelle
18
Fork
9
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di influxdata/openapi

Tutte le issue di influxdata/openapi

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.