influxdata / influxdata/influxdb

OrgId is not updated when switched to other organisation in data explorer

Open
#23,936 0 comments 0 reactions 0 assignees View on GitHub
area/ui
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

When i switch between organisation and execute the same query, the orgId param of the Post request to the API is not updated to the orgId of the current organisation.

1. Run InfluxDB 2.5.1 in Docker
2. Create 2 organizations
3. Go to the Data Explorer of organisation 1 and execute a query in the Script editor
4. Switch to organisation 2 and execute same query
5. The organisation id of the query is still the id of organisation 1

__Expected behavior:__
Execute the query with the proper orgId

__Actual behavior:__
Query is executed with wrong orgId, thus returning wrong values.

__Environment info:__

bash-5.1# uname -srm
Linux 4.19.0-12-amd64 x86_64

bash-5.1# influxd version
InfluxDB v2.5.1 (git: 5b6fdbf05d) build_date: 2022-11-02T18:06:28Z

User docker image: influxdb:2.5.1-alpine

Browser: Brave Version 1.45.123 and also in Firefox 107.0 (64-bit)

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in the Data Explorer Script editor using two organizations and the same query. Inspect the POST request sent after switching organizations, then verify that the request uses the current organization's ID and returns that organization's values.

Written by the indexing model from the issue text.

Assessment

Domain
api, frontend
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.