spring-cloud-dataflow-ui icon indicating copy to clipboard operation
spring-cloud-dataflow-ui copied to clipboard

UI Applications must show all (default and non-default) applications

Open tzolov opened this issue 5 years ago • 2 comments

Currently the applications that don't have at lest one version set as default are not show in the application list.

At the same time the shell's app list as well as the SCDF Rest (http://<scdf-server>:9393/apps) show that the applications are registered.

To reproduce:

  • bulk import the Einstein apps: https://dataflow.spring.io/kafka-docker-latest Those will be marked as default version.
  • bulk import the new 3.x apps https://dataflow.spring.io/kafka-docker-latest-v2 . Later are visible in the Applications list but marked as not default version.
  • Use the GROUP ACTIONS to select and un register all app.

As a result the UI will un-register all default apps. But will stop showing the non-default apps. If you use the shell app list or rest http://:9393/apps you will see that the 3.x apps are still registered just the UI doesn't show them.

If you use the shell to an 3.x app to default then it will appear on the UI as well.

tzolov avatar Jan 21 '21 13:01 tzolov

As additional observation and discrepancy : The shell app all unregister unregisters all apps (default and non-default). While the UI unregisters only the default such.

tzolov avatar Jan 21 '21 13:01 tzolov

Some observations:

  1. Shell/API vs. GUI discrepancy.

  2. Once when a default version is unregistered, we need to either allow it only when a new version is selected or prevent it to avoid the desprecancy.

  3. If a default version is inregistered, we could automatically pick a new default.

sabbyanandan avatar Jan 25 '21 17:01 sabbyanandan