From 90bde11fc39365c28123fe247e874e0fe2ff34da Mon Sep 17 00:00:00 2001 From: vinoth Date: Fri, 2 May 2025 15:39:43 +0800 Subject: [PATCH 1/5] Add EUI super select function to list registry options --- .../DockerRegistryPopover.js | 44 ++++--------------- 1 file changed, 9 insertions(+), 35 deletions(-) diff --git a/ui/packages/lib/src/components/form/docker_image_combo_box/DockerRegistryPopover.js b/ui/packages/lib/src/components/form/docker_image_combo_box/DockerRegistryPopover.js index 590f319e..c6ffb295 100644 --- a/ui/packages/lib/src/components/form/docker_image_combo_box/DockerRegistryPopover.js +++ b/ui/packages/lib/src/components/form/docker_image_combo_box/DockerRegistryPopover.js @@ -1,40 +1,14 @@ -import React, { useState } from "react"; -import { EuiButtonEmpty, EuiContextMenu, EuiPopover } from "@elastic/eui"; -import { flattenPanelTree } from "../../../utils"; +import { EuiSuperSelect } from "@elastic/eui"; export const DockerRegistryPopover = ({ value, registryOptions, onChange }) => { - const [isOpen, setOpen] = useState(false); - - const panels = flattenPanelTree({ - id: 0, - items: registryOptions.map(registry => ({ - name: registry.inputDisplay, - value: registry.value, - icon: "logoDocker", - onClick: () => { - togglePopover(); - onChange(registry.value); - } - })) - }); - - const togglePopover = () => setOpen(!isOpen); return ( - - {registryOptions.find(o => o.value === value).inputDisplay} - - } - isOpen={isOpen} - closePopover={togglePopover} - panelPaddingSize="s"> - - + ); -}; +}; \ No newline at end of file From c66097f4d5dc85ff049afcdb7e1341f324dcd0cb Mon Sep 17 00:00:00 2001 From: Vinoth Kumar Sambath Date: Wed, 14 May 2025 14:12:51 +0800 Subject: [PATCH 2/5] fix pipelines - goci and ci-pipeline --- .github/workflows/ci-pipeline.yml | 1 - .golangci.yml | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-pipeline.yml b/.github/workflows/ci-pipeline.yml index 8d41977a..3a69aed2 100644 --- a/.github/workflows/ci-pipeline.yml +++ b/.github/workflows/ci-pipeline.yml @@ -105,7 +105,6 @@ jobs: uses: golangci/golangci-lint-action@v6 with: version: ${{ env.GO_LINT_VERSION }} - skip-go-installation: true args: --timeout 3m --verbose api/... - name: Run Integration Test diff --git a/.golangci.yml b/.golangci.yml index bed17f78..06b6c13d 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,8 +1,8 @@ run: build-tags: - integration - skip-dirs: - - api/client +skip-dirs: + - api/client linters: enable: From afd641863fd65c77917174d5ffa042adc419275a Mon Sep 17 00:00:00 2001 From: Vinoth Kumar Sambath Date: Wed, 14 May 2025 14:31:58 +0800 Subject: [PATCH 3/5] modify golang ci --- .golangci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 06b6c13d..7ff11ad4 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,8 +1,6 @@ run: build-tags: - integration -skip-dirs: - - api/client linters: enable: @@ -19,6 +17,9 @@ linters: - revive - staticcheck - unused + exclusions: + paths: + - api/client linters-settings: gocyclo: From fb0a33b3d42b2216c8745a96dc37ad049c43f41b Mon Sep 17 00:00:00 2001 From: Vinoth Kumar Sambath Date: Wed, 14 May 2025 14:34:00 +0800 Subject: [PATCH 4/5] exclude files from golang ci --- .golangci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 7ff11ad4..6d21ed5c 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -2,6 +2,9 @@ run: build-tags: - integration +exclude: + - api/client + linters: enable: - bodyclose @@ -17,9 +20,6 @@ linters: - revive - staticcheck - unused - exclusions: - paths: - - api/client linters-settings: gocyclo: From 8244bb47cbff096f9c8fcf579d71365016269fc6 Mon Sep 17 00:00:00 2001 From: Vinoth Kumar Sambath Date: Wed, 14 May 2025 17:48:25 +0800 Subject: [PATCH 5/5] use exclude dirs as part of api/client --- .golangci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 6d21ed5c..fe768bd0 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -2,8 +2,9 @@ run: build-tags: - integration -exclude: - - api/client +issues: + exclude-dirs: + - api/client linters: enable: