influxdata / influxdata/influxdb

InfluxDB 2: Cannot add a existing label to an organization

Open
#18,563 0 comments 1 reaction 0 assignees View on GitHub
area/api
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

```bash
--> POST http://127.0.0.1:9999/api/v2/orgs/05dc55ba177c2000/labels
--> {"labelID":"05dc55ba21536000"}

<-- 400 Bad Request http://127.0.0.1:9999/api/v2/orgs/05dc55ba177c2000/labels
<-- {
"code": "invalid",
"message": "label name is required"
}
```

__Expected behavior:__
Add label to an organization.

__Actual behavior:__
Produce `400 Bad Request` HTTP response.

__Environment info:__

* InfluxDB version: latest nightly build

cc @AlirieGray

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the POST request to /api/v2/orgs/{orgID}/labels with an existing labelID, then trace the organization-label API handling that returns “label name is required.” Done means an existing label can be added to the organization and the endpoint no longer returns 400.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
api, database
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.