From d2fbb979b444205e1aafe4fbcf560122e277b65b Mon Sep 17 00:00:00 2001 From: Simeon Widdis Date: Fri, 18 Aug 2023 12:45:12 -0700 Subject: [PATCH] Backport label updates to 2.x (#936) * Update label handling on frontend + Refactors (#931) * Update label display on frontend Signed-off-by: Simeon Widdis * Clear type errors in added_integration.tsx Signed-off-by: Simeon Widdis * Remove unused imports Signed-off-by: Simeon Widdis * Add missing labels Signed-off-by: Simeon Widdis * Autoformat the whole repository Signed-off-by: Simeon Widdis * Revert large sample data changes Signed-off-by: Simeon Widdis * Undo _import autoescape Signed-off-by: Simeon Widdis --------- Signed-off-by: Simeon Widdis * Fix one more missing label change (#934) * Update label display on frontend Signed-off-by: Simeon Widdis * Clear type errors in added_integration.tsx Signed-off-by: Simeon Widdis * Remove unused imports Signed-off-by: Simeon Widdis * Add missing labels Signed-off-by: Simeon Widdis * Autoformat the whole repository Signed-off-by: Simeon Widdis * Revert large sample data changes Signed-off-by: Simeon Widdis * Undo _import autoescape Signed-off-by: Simeon Widdis * Modify snapshots Signed-off-by: Simeon Widdis * Update label handling in table Signed-off-by: Simeon Widdis --------- Signed-off-by: Simeon Widdis * Empty commit to re-trigger CI Signed-off-by: Simeon Widdis --------- Signed-off-by: Simeon Widdis --- .../added_integration.test.tsx.snap | 3 +- ...lable_integration_table_view.test.tsx.snap | 90 +---- .../integration_details.test.tsx.snap | 90 +---- .../components/added_integration.tsx | 11 +- .../available_integration_card_view.tsx | 12 +- .../available_integration_overview_page.tsx | 4 +- .../available_integration_table.tsx | 13 +- .../integration_category_badge_group.tsx | 16 +- .../components/integration_details_panel.tsx | 4 +- .../repository/apache/apache-1.0.0.json | 83 +++-- .../repository/apache/info/INGESTION.md | 11 +- .../__data__/repository/apache/info/README.md | 3 + .../schemas/communication-1.0.0.mapping.json | 254 +++++++-------- .../apache/schemas/http-1.0.0.mapping.json | 308 +++++++++--------- .../schemas/logs_apache-1.0.0.mapping.json | 4 +- .../aws_cloudfront/aws_cloudfront-1.0.0.json | 2 +- .../repository/aws_cloudfront/info/README.md | 1 + .../schemas/aws_cloudfront-1.0.0.mapping.json | 2 +- .../schemas/aws_s3-1.0.0.mapping.json | 2 +- .../logs-aws_cloudfront-1.0.0.mapping.json | 12 +- .../aws_cloudtrail/aws_cloudtrail-1.0.0.json | 2 +- .../aws_cloudtrail/data/samples.json | 8 +- .../repository/aws_cloudtrail/info/README.md | 3 +- .../schemas/aws_cloudtrail-1.0.0.mapping.json | 2 +- .../schemas/aws_s3-1.0.0.mapping.json | 2 +- .../logs-aws_cloudtrail-1.0.0.mapping.json | 12 +- .../repository/aws_elb/aws_elb-1.0.0.json | 114 +++---- .../repository/aws_elb/info/INGESTION.md | 8 +- .../repository/aws_elb/info/README.md | 10 +- .../schemas/aws_elb-1.0.0.mapping.json | 2 +- .../schemas/communication-1.0.0.mapping.json | 254 +++++++-------- .../aws_elb/schemas/http-1.0.0.mapping.json | 308 +++++++++--------- .../schemas/logs_elb-1.0.0.mapping.json | 12 +- .../repository/aws_rds/assets/README.md | 14 +- .../repository/aws_rds/aws_rds-1.0.0.json | 2 +- .../repository/aws_rds/info/README.md | 9 +- .../schemas/aws_rds-1.0.0.mapping.json | 2 +- .../aws_rds/schemas/aws_s3-1.0.0.mapping.json | 2 +- .../schemas/logs_rds-1.0.0.mapping.json | 16 +- .../repository/aws_s3/aws_s3-1.0.0.json | 78 ++--- .../__data__/repository/aws_s3/info/README.md | 3 +- .../aws_s3/schemas/aws_s3-1.0.0.mapping.json | 2 +- .../aws_s3/schemas/logs_s3-1.0.0.mapping.json | 11 +- .../repository/aws_vpc_flow/assets/README.md | 43 +-- .../aws_vpc_flow/aws_vpc_flow-1.0.0.json | 2 +- .../repository/aws_vpc_flow/info/README.md | 9 +- .../schemas/aws_s3-1.0.0.mapping.json | 2 +- .../schemas/aws_vpc_flow-1.0.0.mapping.json | 2 +- .../schemas/communication-1.0.0.mapping.json | 4 +- .../schemas/logs_vpc-1.0.0.mapping.json | 13 +- .../repository/aws_waf/aws_waf-1.0.0.json | 2 +- .../repository/aws_waf/info/README.md | 1 + .../aws_waf/schemas/aws_s3-1.0.0.mapping.json | 2 +- .../schemas/aws_waf-1.0.0.mapping.json | 2 +- .../schemas/logs_waf-1.0.0.mapping.json | 12 +- .../__data__/repository/k8s/assets/README.md | 34 +- .../__data__/repository/k8s/info/README.md | 42 ++- .../repository/k8s/ingestion/README.md | 12 +- .../__data__/repository/k8s/k8s-1.0.0.json | 90 ++--- .../k8s/schemas/container-1.0.0.mapping.json | 2 +- .../k8s/schemas/k8s-1.0.0.mapping.json | 4 +- .../k8s/schemas/logs-k8s-1.0.0.mapping.json | 4 +- .../__data__/repository/nginx/info/README.md | 3 + .../repository/nginx/nginx-1.0.0.json | 83 +++-- .../schemas/communication-1.0.0.mapping.json | 254 +++++++-------- .../nginx/schemas/http-1.0.0.mapping.json | 308 +++++++++--------- .../nginx/schemas/logs-1.0.0.mapping.json | 11 +- server/adaptors/integrations/types.ts | 2 +- server/adaptors/integrations/validators.ts | 2 +- 69 files changed, 1254 insertions(+), 1492 deletions(-) diff --git a/public/components/integrations/components/__tests__/__snapshots__/added_integration.test.tsx.snap b/public/components/integrations/components/__tests__/__snapshots__/added_integration.test.tsx.snap index 8c8ad5073..7ef7eb785 100644 --- a/public/components/integrations/components/__tests__/__snapshots__/added_integration.test.tsx.snap +++ b/public/components/integrations/components/__tests__/__snapshots__/added_integration.test.tsx.snap @@ -227,11 +227,10 @@ exports[`Added Integration View Test Renders added integration view using dummy data-test-subj="deleteInstanceButton" iconType="trash" onClick={[Function]} - size="l" >