influxdata / influxdata/influxdb

InfluxDB 2: Cannot find owner of Scraper

Open
#19,540 1 comment 0 reactions 0 assignees View on GitHub
area/2.x area/api
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

```bash
# Create Scraper
--> POST http://127.0.0.1:9999/api/v2/scrapers
--> {
"name": "InfluxDB scraper1599721846296-IT",
"type": "prometheus",
"url": "http://localhost:9999",
"orgID": "c670235192dc73ba",
"bucketID": "ba09f52d6d0e8374"
}
<-- 201 Created http://127.0.0.1:9999/api/v2/scrapers

### Find owners
--> GET http://127.0.0.1:9999/api/v2/scrapers/0649b5e68b73a000/owners
<-- 200 OK http://127.0.0.1:9999/api/v2/scrapers/0649b5e68b73a000/owners
<-- {"links":{"self":"/api/v2/scrapers/0649b5e68b73a000/owners"},"users":[]}
```

__Steps to reproduce:__
List the minimal actions needed to reproduce the behavior.

1. Create Scraper
2. List owners of Scraper

__Expected behavior:__
Return list with owner - user who created the scraper

__Actual behavior:__
Return empty list.

__Environment info:__

* InfluxDB version: InfluxDB v2 nightly from 2020-10-09

Contributor guide

Open the contributing guide

Research direction

Reproduce the behavior by creating a scraper with POST /api/v2/scrapers, then querying GET /api/v2/scrapers/{id}/owners. Trace how the creator is recorded and how owners are returned. Done means the owners response includes the user who created the scraper, with coverage for this sequence.

Written by the indexing model from the issue text.

Assessment

Domain
api, database
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.