influxdata / influxdata/influxdb

scrapers: replace js client with oats generated client

Open
#16,925 0 comments 0 reactions 0 assignees View on GitHub
kind/tech-debt team/ui
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 filew with `import {FUNCTION_NAME} from 'src/client'`

- client.scrapers.create in: `src/dataLoaders/actions/dataLoaders.ts`
- `src/onboarding/components/CompletionStep.tsx`
- `src/scrapers/actions/thunks.ts`

Ensure sufficient tests are available before making the switch and that tests pass after replacement.

Contributor guide

Open the contributing guide

Research direction

Start by inspecting the client.scrapers.create references in src/dataLoaders/actions/dataLoaders.ts, src/onboarding/components/CompletionStep.tsx, and src/scrapers/actions/thunks.ts. Check the existing tests before replacing the imports, then run the relevant test suite to confirm coverage and that all three usages work with the generated client.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, frontend
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.