influxdata / influxdata/influxdb
telegrafConfigs: replace js client with oats generated client
- Dominant language
- Rust
- Stars
- 31.7k
- Forks
- 3.7k
- Avg merge
- 13h 37m
- Merged PRs (30d)
- 8
Description
Replace references to `import {client} from 'src/utils/api'` in the following files with `import {FUNCTION_NAME} from 'src/client'`
- `src/dataLoaders/actions/dataLoaders.ts`
- `src/telegrafs/actions/thunks.ts`
Ensure sufficient tests are available before making the switch and that tests pass after replacement.
Contributor guide
Research direction
Inspect src/dataLoaders/actions/dataLoaders.ts and src/telegrafs/actions/thunks.ts to identify the generated client functions corresponding to the current API calls. First verify that tests cover these actions, then replace the imports and usages and run the relevant test suite; done means the tests pass with both files using src/client.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100