Notebooks: notebook ui not working with api base path
- Dominant language
- TypeScript
- Stars
- 117
- Forks
- 51
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 4
Description
## About the bug
**Steps to reproduce:**
List the minimal actions needed to reproduce the behavior.
1. Build influx.ui with environment variables [API_BASE_PATH](https://github.com/influxdata/ui/blob/61852ce0f62c11f892d7c94d4d1c05ff6bea2f9a/src/shared/constants/index.ts#L88)="/influxdb/" and [BASE_PATH](https://github.com/influxdata/ui/blob/61852ce0f62c11f892d7c94d4d1c05ff6bea2f9a/src/shared/constants/index.ts#L87)="/influxdb/"
2. Start influxd with [assets path ](https://docs.influxdata.com/influxdb/v2.6/reference/config-options/?t=JSON#assets-path)of custom influx.ui build
3. Click on sidebar link "Notebooks" and
4. Click on "Create a Notebook" button
**Expected behavior:**
A new notebook is created.
**Actual behavior:**
Message "Failed to create Notebook, please try again" appears.
No notebook is created.
**Visual Proof:**
## About your environment
**Environment info:**
OS: Linux 5.4.0-144-generic x86_64
Version: InfluxDB v2.6.1
**Config:**
The configuration is set to default except for the assets-path option, see 'Steps to reproduce'.
The assets-path is set to custom UI build result with environment variable API_BASE_PATH="/influxdb" and BASE_PATH="/influxdb/".
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the failure by building the UI with API_BASE_PATH and BASE_PATH set to /influxdb/, then starting influxd with that assets path and creating a notebook. Begin with the referenced constants in src/shared/constants/index.ts and trace the Notebooks creation flow. Done means a notebook is created successfully under the custom base path instead of showing the failure message.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100