console icon indicating copy to clipboard operation
console copied to clipboard

ODC-6779 - Hide sub-catalog(s) in the developer catalog or the entire dev catalog based on customization

Open lokanandaprabhu opened this issue 2 years ago • 22 comments

JIRA story: https://issues.redhat.com/browse/ODC-6779

Description: This story is about the customization of developer catalog and sub-catalog based on customization. If all the available sub-catalogs(types) are disabled, complete developer catalog along with the entry points to the catalog will be disabled.

Screenshots: ----When all the sub-catalogs are disabled - Add page---- Screenshot 2022-09-20 at 12 38 17 PM

----When all the sub-catalogs are disabled - Topology page---- Screenshot 2022-09-20 at 12 38 34 PM

-----Quick start when complete developer catalog is disabled----- Screenshot 2022-09-20 at 12 38 52 PM

------ All services - when all the sub-catalogs(types) are enabled---- Screenshot 2022-09-20 at 2 18 35 PM

------ All services - when Templates and Helm charts sub-catalogs are disabled---- Screenshot 2022-09-20 at 2 18 44 PM

-----Helm Page when helm chart sub-catalog is disabled----- Screenshot 2022-09-20 at 12 38 01 PM

---- Operator hub description when operator backed service is disabled or complete developer catalog is disabled--- Screenshot 2022-09-20 at 12 39 37 PM

---- If Event source type is disabled, create event source in action menu is hidden---- Screenshot 2022-09-20 at 1 00 52 PM

-----If user try to reach to catalog by entering URL and if that sub-catalog is disabled, then user will see Page not found-- Screenshot 2022-09-20 at 12 46 20 PM

Test cases:

Screenshot 2022-09-20 at 3 26 05 PM

How to test:

If backend API PR's - https://github.com/openshift/api/pull/1256 & https://github.com/openshift/console-operator/pull/676 are not merged then to add the customization use below method,

Pass options as a string to bridge with -developer-catalog-disabled-types or pass a ConsoleConfig yaml with -config option.

Example:

Specify developer catalog types to bridge with ./bin/bridge -developer-catalog-types '{ "state": "Disabled" ,"disabled": ["HelmChart", "Devfile"] }'.

This indicated HelmChart and Devfile sub-catalogs are disabled. Similarly below are the test scenarios,

If the state is Enabled and enabled list is empty, all the types will be shown. If the state id Enabled and enabled list is non-empty, only the enabled list items will be shown. If the state is Disabled and disabled list is empty, all the types will be hidden. If the state id Disabled and disabled list is non-empty, only the disabled list items will be hidden.

To disable the complete developer catalog then in disabled all the available types should be listed or make the disabled list empty for state: Disabled.

/kind feature

lokanandaprabhu avatar Sep 20 '22 10:09 lokanandaprabhu

/retest

lokanandaprabhu avatar Sep 20 '22 14:09 lokanandaprabhu

/assign @jerolimov /assign @invincibleJai /cc @debsmita1

lokanandaprabhu avatar Sep 20 '22 14:09 lokanandaprabhu

/retest

lokanandaprabhu avatar Sep 21 '22 04:09 lokanandaprabhu

Hi @jerolimov / @debsmita1 ,

Updated the PR as per the PR comments.

lokanandaprabhu avatar Sep 26 '22 13:09 lokanandaprabhu

/retest

invincibleJai avatar Sep 28 '22 07:09 invincibleJai

/retest

lokanandaprabhu avatar Sep 28 '22 14:09 lokanandaprabhu

/retest

lokanandaprabhu avatar Oct 03 '22 04:10 lokanandaprabhu

@lokanandaprabhu While testing your pr on cluster-bot, I saw this scenario:

sanketpathak avatar Oct 12 '22 13:10 sanketpathak

@lokanandaprabhu While testing your pr on cluster-bot, I saw this scenario:

Yes, Database will be enabled when atleast one sub-catalog is enabled. Database will be disabled only when the complete developer catalog is disabled.

lokanandaprabhu avatar Oct 12 '22 13:10 lokanandaprabhu

/retest

invincibleJai avatar Oct 13 '22 03:10 invincibleJai

/retest

invincibleJai avatar Oct 13 '22 10:10 invincibleJai

Verified on cluster-bot Screencast from 10-13-2022 03:50:25 PM.webm

/label qe-approved

sanketpathak avatar Oct 13 '22 10:10 sanketpathak

  • Event source option is present in the connector context menu which leads to a 404 page. Even after disabling the Event Source catalog. See the GIF Peek 2022-10-13 18-32

  • Event Sink option is also present in the connector context menu. And in the action menu of the broker which leads to a 404 page. image

image

  • On disabling the complete catalogs. Should we hide the Create applications using samples from the Getting started resources card as View all samples links leads to an empty Sample catalog page? image

vikram-raj avatar Oct 13 '22 13:10 vikram-raj

Updated the PR. PTAL. Thanks.

lokanandaprabhu avatar Oct 14 '22 05:10 lokanandaprabhu

The entire dev-catalog is disabled, but I can see Samples option when I click on topology graph https://user-images.githubusercontent.com/22490998/195789490-c2df4321-a88d-4c1b-82c1-ac5e4a05cccc.mov

debsmita1 avatar Oct 14 '22 07:10 debsmita1

The entire dev-catalog is disabled, but I can see Samples option when I click on topology graph https://user-images.githubusercontent.com/22490998/195789490-c2df4321-a88d-4c1b-82c1-ac5e4a05cccc.mov

Updated the PR.

lokanandaprabhu avatar Oct 14 '22 07:10 lokanandaprabhu

Following our no-FF process propagate the PX and Docs ACK from epic ODC-5897 /label px-approved /label docs-approved

I add also approve here so that @debsmita1 can do the final review when the files are moved (https://github.com/openshift/console/pull/12067#pullrequestreview-1143240309) and the PR is rebased. /approve

christoph-jerolimov avatar Oct 16 '22 01:10 christoph-jerolimov

Hi @jerolimov / @debsmita1 ,

I have updated the PR based on PR comments. PTAL. Thanks.

lokanandaprabhu avatar Oct 17 '22 05:10 lokanandaprabhu

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jerolimov, lokanandaprabhu

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

openshift-ci[bot] avatar Oct 17 '22 22:10 openshift-ci[bot]

/retest-required

Remaining retests: 0 against base HEAD 167ca3743c4766f5c2075543052a3d35e728598c and 2 for PR HEAD 59b26fbde2639f340e2796b2f2971139ea3a5a6f in total

openshift-ci-robot avatar Oct 18 '22 08:10 openshift-ci-robot

/retest

lokanandaprabhu avatar Oct 18 '22 10:10 lokanandaprabhu

@lokanandaprabhu: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

openshift-ci[bot] avatar Oct 18 '22 13:10 openshift-ci[bot]