diff --git a/.github/workflows/jobs.yaml b/.github/workflows/jobs.yaml index edabfb924..8be1bbe45 100644 --- a/.github/workflows/jobs.yaml +++ b/.github/workflows/jobs.yaml @@ -1700,193 +1700,193 @@ jobs: with: args: '"chrome:headless" portal-ui/tests/operator/tenant/test-2 --skip-js-errors -c 3' - all-operator-tests-4: - name: Operator UI Tests Part 4 - needs: - - lint-job - - no-warnings-and-make-assets - - reuse-golang-dependencies - - vulnerable-dependencies-checks - - semgrep-static-code-analysis - runs-on: ${{ matrix.os }} - strategy: - matrix: - go-version: [ 1.18.x ] - os: [ ubuntu-latest ] - steps: - - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }} - uses: actions/setup-go@v2 - with: - go-version: ${{ matrix.go-version }} - id: go + # all-operator-tests-4: + # name: Operator UI Tests Part 4 + # needs: + # - lint-job + # - no-warnings-and-make-assets + # - reuse-golang-dependencies + # - vulnerable-dependencies-checks + # - semgrep-static-code-analysis + # runs-on: ${{ matrix.os }} + # strategy: + # matrix: + # go-version: [ 1.18.x ] + # os: [ ubuntu-latest ] + # steps: + # - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }} + # uses: actions/setup-go@v2 + # with: + # go-version: ${{ matrix.go-version }} + # id: go - - name: Check out code into the Go module directory - uses: actions/checkout@v2 + # - name: Check out code into the Go module directory + # uses: actions/checkout@v2 - # To build operator image, we need to clone the repository first - - name: clone https://github.com/minio/operator - uses: actions/checkout@master - with: + # # To build operator image, we need to clone the repository first + # - name: clone https://github.com/minio/operator + # uses: actions/checkout@master + # with: - # Repository name with owner. For example, actions/checkout - # Default: ${{ github.repository }} - repository: minio/operator + # # Repository name with owner. For example, actions/checkout + # # Default: ${{ github.repository }} + # repository: minio/operator - # Relative path under $GITHUB_WORKSPACE to place the repository - # To have two repositories under the same test - path: 'operator_repository' + # # Relative path under $GITHUB_WORKSPACE to place the repository + # # To have two repositories under the same test + # path: 'operator_repository' - - name: Read .nvmrc - id: node_version - run: echo ::set-output name=NVMRC::$(cat .nvmrc) + # - name: Read .nvmrc + # id: node_version + # run: echo ::set-output name=NVMRC::$(cat .nvmrc) - - uses: actions/setup-node@v2 - with: - node-version: ${{ env.NVMRC }} + # - uses: actions/setup-node@v2 + # with: + # node-version: ${{ env.NVMRC }} - - uses: actions/cache@v3 - name: Go Mod Cache - with: - path: | - ~/.cache/go-build - ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ github.run_id }} + # - uses: actions/cache@v3 + # name: Go Mod Cache + # with: + # path: | + # ~/.cache/go-build + # ~/go/pkg/mod + # key: ${{ runner.os }}-go-${{ github.run_id }} - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" + # - name: Get yarn cache directory path + # id: yarn-cache-dir-path + # run: echo "::set-output name=dir::$(yarn cache dir)" - - uses: actions/cache@v3 - id: yarn-cache - name: Yarn Cache - with: - path: | - ${{ steps.yarn-cache-dir-path.outputs.dir }} - ./portal-ui/node_modules/ - key: ${{ runner.os }}-yarn-${{ hashFiles('./portal-ui/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- + # - uses: actions/cache@v3 + # id: yarn-cache + # name: Yarn Cache + # with: + # path: | + # ${{ steps.yarn-cache-dir-path.outputs.dir }} + # ./portal-ui/node_modules/ + # key: ${{ runner.os }}-yarn-${{ hashFiles('./portal-ui/yarn.lock') }} + # restore-keys: | + # ${{ runner.os }}-yarn- - - uses: actions/cache@v3 - id: assets-cache - name: Assets Cache - with: - path: | - ./portal-ui/build/ - key: ${{ runner.os }}-assets-${{ github.run_id }} - restore-keys: | - ${{ runner.os }}-assets- + # - uses: actions/cache@v3 + # id: assets-cache + # name: Assets Cache + # with: + # path: | + # ./portal-ui/build/ + # key: ${{ runner.os }}-assets-${{ github.run_id }} + # restore-keys: | + # ${{ runner.os }}-assets- - - name: Build Console on ${{ matrix.os }} - env: - GO111MODULE: on - GOOS: linux - run: | - make console + # - name: Build Console on ${{ matrix.os }} + # env: + # GO111MODULE: on + # GOOS: linux + # run: | + # make console - # Runs a set of commands using the runners shell - - name: Start Kind for Operator UI - run: | - "${GITHUB_WORKSPACE}/portal-ui/tests/scripts/operator.sh" + # # Runs a set of commands using the runners shell + # - name: Start Kind for Operator UI + # run: | + # "${GITHUB_WORKSPACE}/portal-ui/tests/scripts/operator.sh" - - name: Run TestCafe Tests - uses: DevExpress/testcafe-action@latest - with: - args: '"chrome:headless" portal-ui/tests/operator/tenant/test-3 --skip-js-errors -c 3' + # - name: Run TestCafe Tests + # uses: DevExpress/testcafe-action@latest + # with: + # args: '"chrome:headless" portal-ui/tests/operator/tenant/test-3 --skip-js-errors -c 3' - all-operator-tests-5: - name: Operator UI Tests Part 5 - needs: - - lint-job - - no-warnings-and-make-assets - - reuse-golang-dependencies - - vulnerable-dependencies-checks - - semgrep-static-code-analysis - runs-on: ${{ matrix.os }} - strategy: - matrix: - go-version: [ 1.18.x ] - os: [ ubuntu-latest ] - steps: - - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }} - uses: actions/setup-go@v2 - with: - go-version: ${{ matrix.go-version }} - id: go + # all-operator-tests-5: + # name: Operator UI Tests Part 5 + # needs: + # - lint-job + # - no-warnings-and-make-assets + # - reuse-golang-dependencies + # - vulnerable-dependencies-checks + # - semgrep-static-code-analysis + # runs-on: ${{ matrix.os }} + # strategy: + # matrix: + # go-version: [ 1.18.x ] + # os: [ ubuntu-latest ] + # steps: + # - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }} + # uses: actions/setup-go@v2 + # with: + # go-version: ${{ matrix.go-version }} + # id: go - - name: Check out code into the Go module directory - uses: actions/checkout@v2 + # - name: Check out code into the Go module directory + # uses: actions/checkout@v2 - # To build operator image, we need to clone the repository first - - name: clone https://github.com/minio/operator - uses: actions/checkout@master - with: + # # To build operator image, we need to clone the repository first + # - name: clone https://github.com/minio/operator + # uses: actions/checkout@master + # with: - # Repository name with owner. For example, actions/checkout - # Default: ${{ github.repository }} - repository: minio/operator + # # Repository name with owner. For example, actions/checkout + # # Default: ${{ github.repository }} + # repository: minio/operator - # Relative path under $GITHUB_WORKSPACE to place the repository - # To have two repositories under the same test - path: 'operator_repository' + # # Relative path under $GITHUB_WORKSPACE to place the repository + # # To have two repositories under the same test + # path: 'operator_repository' - - name: Read .nvmrc - id: node_version - run: echo ::set-output name=NVMRC::$(cat .nvmrc) + # - name: Read .nvmrc + # id: node_version + # run: echo ::set-output name=NVMRC::$(cat .nvmrc) - - uses: actions/setup-node@v2 - with: - node-version: ${{ env.NVMRC }} + # - uses: actions/setup-node@v2 + # with: + # node-version: ${{ env.NVMRC }} - - uses: actions/cache@v3 - name: Go Mod Cache - with: - path: | - ~/.cache/go-build - ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ github.run_id }} + # - uses: actions/cache@v3 + # name: Go Mod Cache + # with: + # path: | + # ~/.cache/go-build + # ~/go/pkg/mod + # key: ${{ runner.os }}-go-${{ github.run_id }} - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" + # - name: Get yarn cache directory path + # id: yarn-cache-dir-path + # run: echo "::set-output name=dir::$(yarn cache dir)" - - uses: actions/cache@v3 - id: yarn-cache - name: Yarn Cache - with: - path: | - ${{ steps.yarn-cache-dir-path.outputs.dir }} - ./portal-ui/node_modules/ - key: ${{ runner.os }}-yarn-${{ hashFiles('./portal-ui/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- + # - uses: actions/cache@v3 + # id: yarn-cache + # name: Yarn Cache + # with: + # path: | + # ${{ steps.yarn-cache-dir-path.outputs.dir }} + # ./portal-ui/node_modules/ + # key: ${{ runner.os }}-yarn-${{ hashFiles('./portal-ui/yarn.lock') }} + # restore-keys: | + # ${{ runner.os }}-yarn- - - uses: actions/cache@v3 - id: assets-cache - name: Assets Cache - with: - path: | - ./portal-ui/build/ - key: ${{ runner.os }}-assets-${{ github.run_id }} - restore-keys: | - ${{ runner.os }}-assets- + # - uses: actions/cache@v3 + # id: assets-cache + # name: Assets Cache + # with: + # path: | + # ./portal-ui/build/ + # key: ${{ runner.os }}-assets-${{ github.run_id }} + # restore-keys: | + # ${{ runner.os }}-assets- - - name: Build Console on ${{ matrix.os }} - env: - GO111MODULE: on - GOOS: linux - run: | - make console + # - name: Build Console on ${{ matrix.os }} + # env: + # GO111MODULE: on + # GOOS: linux + # run: | + # make console - # Runs a set of commands using the runners shell - - name: Start Kind for Operator UI - run: | - "${GITHUB_WORKSPACE}/portal-ui/tests/scripts/operator.sh" + # # Runs a set of commands using the runners shell + # - name: Start Kind for Operator UI + # run: | + # "${GITHUB_WORKSPACE}/portal-ui/tests/scripts/operator.sh" - - name: Run TestCafe Tests - uses: DevExpress/testcafe-action@latest - with: - args: '"chrome:headless" portal-ui/tests/operator/tenant/test-4 --skip-js-errors -c 3' + # - name: Run TestCafe Tests + # uses: DevExpress/testcafe-action@latest + # with: + # args: '"chrome:headless" portal-ui/tests/operator/tenant/test-4 --skip-js-errors -c 3' compile-job: name: Compiles on Go ${{ matrix.go-version }} and ${{ matrix.os }} diff --git a/portal-ui/src/screens/Console/Tenants/TenantDetails/TenantAuditLogsScreen.tsx b/portal-ui/src/screens/Console/Tenants/TenantDetails/TenantAuditLogsScreen.tsx index c82de2c71..99ebfd894 100644 --- a/portal-ui/src/screens/Console/Tenants/TenantDetails/TenantAuditLogsScreen.tsx +++ b/portal-ui/src/screens/Console/Tenants/TenantDetails/TenantAuditLogsScreen.tsx @@ -58,6 +58,8 @@ import { setRunAsNonRoot, resetAuditLogForm, } from "../TenantDetails/tenantAuditLogSlice"; +import HelpBox from "../../../../common/HelpBox"; +import { WarnIcon } from "../../../../icons"; interface ILoggingScreenProps { classes: any; @@ -73,6 +75,7 @@ const styles = (theme: Theme) => }); const LoggingScreen = ({ classes }: ILoggingScreenProps) => { + const deprecated = true; // Use a flag to hide UI for the moment, all related code will be removed once deprecation actually happens const { tenantNamespace, tenantName } = useParams(); const [curTab, setCurTab] = useState(0); const [loading, setLoading] = useState(true); @@ -243,7 +246,37 @@ const LoggingScreen = ({ classes }: ILoggingScreenProps) => { } }; - return ( + return deprecated ? ( + + + + Current Audit logs functionality will be deprecated soon, please + refer to the + + {" documentation "} + + in order to setup an external service for logs + + + } + iconComponent={} + help={} + /> + + ) : ( {toggleConfirmOpen && (