diff --git a/CHANGELOG.md b/CHANGELOG.md index cde6619940d..6964cf8566c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ### Features 1. [11809](https://github.com/influxdata/influxdb/pull/11809): Add the ability to name a scraper target +1. [11821](https://github.com/influxdata/influxdb/pull/11821): Display scraper name as the first and only updatable column in scrapers list ### Bug Fixes diff --git a/ui/src/organizations/components/ScraperList.tsx b/ui/src/organizations/components/ScraperList.tsx index 52809fb4b50..42616633b2f 100644 --- a/ui/src/organizations/components/ScraperList.tsx +++ b/ui/src/organizations/components/ScraperList.tsx @@ -23,8 +23,9 @@ export default class ScraperList extends PureComponent { <> - - + + + {this.scrapersList} diff --git a/ui/src/organizations/components/ScraperRow.tsx b/ui/src/organizations/components/ScraperRow.tsx index d37237eb41f..79918cb4c92 100644 --- a/ui/src/organizations/components/ScraperRow.tsx +++ b/ui/src/organizations/components/ScraperRow.tsx @@ -28,11 +28,12 @@ export default class ScraperRow extends PureComponent { + {scraper.url} {scraper.bucket} { ) } - private handleUpdateScraper = (name: string) => { + private handleUpdateScraperName = (name: string) => { const {onUpdateScraper, scraper} = this.props - onUpdateScraper({...scraper, url: name}) + onUpdateScraper({...scraper, name}) } } diff --git a/ui/src/organizations/components/__snapshots__/Scrapers.test.tsx.snap b/ui/src/organizations/components/__snapshots__/Scrapers.test.tsx.snap index bcecc14d394..ef44c05fef0 100644 --- a/ui/src/organizations/components/__snapshots__/Scrapers.test.tsx.snap +++ b/ui/src/organizations/components/__snapshots__/Scrapers.test.tsx.snap @@ -4,15 +4,20 @@ exports[`ScraperList rendering renders 1`] = ` +