Fixed ESLint errors
This commit is contained in:
@@ -31,14 +31,21 @@
|
||||
"clean": "backstage-cli clean"
|
||||
},
|
||||
"dependencies": {
|
||||
"compression": "^1.7.4",
|
||||
"cors": "^2.8.5",
|
||||
"express": "^4.17.1",
|
||||
"express-promise-router": "^3.0.3",
|
||||
"helmet": "^4.0.0",
|
||||
"@backstage/backend-common": "^0.4.1",
|
||||
"@backstage/catalog-model": "^0.6.0",
|
||||
"@backstage/config": "^0.1.2",
|
||||
"kafkajs": "^1.16.0-beta.6",
|
||||
"winston": "^3.2.1"
|
||||
"winston": "^3.2.1",
|
||||
"yn": "^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@backstage/cli": "^0.4.2",
|
||||
"@types/express": "^4.17.6",
|
||||
"supertest": "^4.0.2"
|
||||
},
|
||||
"files": [
|
||||
|
||||
@@ -60,7 +60,7 @@ export class KafkaApi {
|
||||
await admin.connect();
|
||||
|
||||
try {
|
||||
let groupOffsets = await admin.fetchOffsets({ groupId });
|
||||
const groupOffsets = await admin.fetchOffsets({ groupId });
|
||||
|
||||
return groupOffsets.map(topicOffset => ({
|
||||
topic: topicOffset.topic,
|
||||
|
||||
@@ -20,13 +20,17 @@
|
||||
"clean": "backstage-cli clean"
|
||||
},
|
||||
"dependencies": {
|
||||
"@backstage/catalog-model": "^0.6.0",
|
||||
"@backstage/core": "^0.4.1",
|
||||
"@backstage/theme": "^0.2.2",
|
||||
"@backstage/plugin-catalog": "^0.2.7",
|
||||
"@backstage/plugin-kafka-backend": "^0.1.0",
|
||||
"@material-ui/core": "^4.11.0",
|
||||
"@material-ui/icons": "^4.11.2",
|
||||
"@material-ui/lab": "4.0.0-alpha.45",
|
||||
"lodash": "^4.17.20",
|
||||
"react": "^16.13.1",
|
||||
"react-router": "6.0.0-beta.0",
|
||||
"react-dom": "^16.13.1",
|
||||
"react-use": "^15.3.3"
|
||||
},
|
||||
@@ -34,7 +38,6 @@
|
||||
"@backstage/cli": "^0.4.2",
|
||||
"@backstage/dev-utils": "^0.1.6",
|
||||
"@backstage/test-utils": "^0.1.5",
|
||||
"@backstage/plugin-kafka-backend": "^0.1.0",
|
||||
"@testing-library/jest-dom": "^5.10.1",
|
||||
"@testing-library/react": "^10.4.1",
|
||||
"@testing-library/user-event": "^12.0.7",
|
||||
|
||||
@@ -28,7 +28,6 @@ export function useConsumerGroupOffsets(groupId: string) {
|
||||
const groupOffsets = await api.getConsumerGroupOffsets(groupId);
|
||||
const groupWithTopicOffsets = await Promise.all(
|
||||
groupOffsets.map(async ({ topic, partitions }) => {
|
||||
debugger;
|
||||
const topicOffsets = _.keyBy(
|
||||
await api.getTopicOffsets(topic),
|
||||
partition => partition.id,
|
||||
@@ -49,8 +48,6 @@ export function useConsumerGroupOffsets(groupId: string) {
|
||||
}
|
||||
}, [api, errorApi, groupId]);
|
||||
|
||||
debugger;
|
||||
|
||||
return [
|
||||
{
|
||||
loading,
|
||||
|
||||
Reference in New Issue
Block a user