Skip to content

"Hide from Boot Dash" has no effect #613

Closed

Description

@2019-05-10

Describe the bug
In run configuration
[x] Hide from Boot Dash
is checked, but the project nevertheless shows up in Boot Dash

Eclipse IDE for Enterprise Java and Web Developers (includes Incubating components)

Version: 2021-03 (4.19.0)
Build id: 20210312-0638

Spring IDE Boot Microservices Dash 4.10.0.202103111225 org.springframework.ide.eclipse.boot.dash.feature.feature.group Spring IDE Developers

Activity

  1. added
    for: eclipse
    and removed on Mar 23, 2021
  2. added this to the milestone on Mar 23, 2021
  3. martinlippert commented on Mar 23, 2021

    @martinlippert
    Member

    Hey @BoykoAlex, can you take a look at this? That would be great.

  4. modified the milestones: , 4.11.0.RELEASE on Apr 25, 2021
  5. BoykoAlex commented on May 3, 2021

    @BoykoAlex
    Contributor

    I've tried the "hide from boot dash" checkbox in the boot launch config. Seems to be all working fine. Is it some special launch config? Coming from the previous Eclipse/STS version perhaps?
    Seems to work fine with any launch config I've created in my STS 4.10
    I've tried creating 3 launch configs for petclinic, open the launch config dialog, select petclinic launch config and check/uncheck the checkbox "Hide from Boot Dash" and apply config watch the Boot Dash configs appear/disappear under Local -> spring-petclinic in Boot Dash... How is your case different? Any steps you can list to reproduce the issue please?

  6. 2019-05-10 commented on May 4, 2021

    @2019-05-10
    Author

    Is it some special launch config?

    Nothing special, in fact, it appeared automagically on its own.

    Coming from the previous Eclipse/STS version perhaps?

    Probably, project itself was created in the beginnig of March. Next STS update, IIRC, was a couple of weeks later

    How is your case different? Any steps you can list to reproduce the issue please?

    As said above, I didn't do anything myself, but it was all done by STS. Thus, no steps.
    Since hiding doesn't work either with even older STS projects anymore, I presume that the old launch configurations haven't been converted correctly by the latest update.

  7. 2019-05-10 commented on May 4, 2021

    @2019-05-10
    Author

    Funny thing: I just deleted the launch configuration completely -- doesn't bother the dash, project is still listed.
    So, looks to me as if the dashboard at least does something else on the side.
    How exactly does the dashboard determine what projedcts to list?

  8. 2019-05-10 commented on May 4, 2021

    @2019-05-10
    Author

    Curiouser and curiouser.

    Dash board view -> Local -> RMC on the proejct -> Open Config
    opens the "Debug Configurations" dialog (why "Debug"?) with a mostly empty interface, but as name
    "my project (1)"
    as if there were another already with the same name.

  9. 2 remaining items

  10. BoykoAlex commented on May 4, 2021

    @BoykoAlex
    Contributor

    Do you have Hide solitary launch configs unchecked in Boot Dash filters? It is checked by default hence you won't see launch config if there is just one... if there is more than they'd show under the app. If you have unchecked then you'd see all launch configs but since you didn't mention it i assumed one launch config won't show under the app by default. Does this make sense to you?

  11. BoykoAlex commented on May 4, 2021

    @BoykoAlex
    Contributor

    Run configuration and project are two distinct elements. Hide from Boot Dash in the launch config wizard/dialog only applies to launch config and not to the project. My feeling at the moment that you expect the project/app to go away from Boot Dash when Hide from Boot Dash is checked - I don't think this is expected.
    One could hide launch configs but not the app/project... You can tag your elements in Boot Dash and then enter tag of elements you'd like to see only... but I don't think we have anything explicit to not show project/app in Boot Dash (similar to launch config)

  12. BoykoAlex commented on May 4, 2021

    @BoykoAlex
    Contributor

    There is a way to remove app/project from Boot Dash.
    Go to Preferences -> Spring -> Boot page. Under General section find Exclude Projects text box. Type regular expression for projects you'd like to be hidden.

    Does any of it help?

  13. 2019-05-10 commented on May 4, 2021

    @2019-05-10
    Author

    Go to Preferences -> Spring -> Boot page. Under General section find Exclude Projects text box. Type regular expression for projects you'd like to be hidden.

    Works.

    But from a UX PoV this is plain horrible!
    Why do I have to look in the global preferences for such a local feature -- if anywhere this belongs to the Dash view itself, as part of the filters.

    As for the checkbox in the Launch configuration, that seems to be completely pointless. I am still not sure I understand the explanation, but from what I gather, it is confusing, to say the least.

    AFAIU, the entry in the Dash view appears magically w/o any way to control its existence.
    It exists independently of a Launch configuration, and yet, it offers an active context menu entry "Open Config" that leads to a Launch configuration w/o any hint that this configuration is just for fun.
    The checkbox "Hide from Boot Dash" in particular follows an arcane, to put it mildly, rule when to be effective.

    What exactly is the rationale behind all that?

  14. martinlippert commented on May 4, 2021

    @martinlippert
    Member

    Let me explain:

    The overall rationale behind this is that the Boot Dashboard should provide a quick and easy-to-access one-click experience to start and stop your Spring Boot application (among other features it provides). Therefore it shows all the Spring Boot apps of your workspace by default, without the need to configure anything or do mark your projects. It identifies projects as Spring Boot projects and then shows them in a list. To that level of the boot dashboard is all about your Spring Boot projects.

    If you start a Spring Boot project, there is an associated launch config being used - the regular way in Eclipse to launch apps. Therefore you can jump from the project entry in the Boot Dashboard to the corresponding launch config that is used to launch the app.

    If you have exactly one launch config for a project, we don't show the launch config in the boot dashboard by default. You can enable that from the context menu of the boot dashboard, but by default, this is disabled.

    If there are more than one launch config for an app, those different launch configs show up as nodes below the application, so that you can see all the related launch configs for your project. You can start/stop all of them or individually. For that case, users have asked us to allow to NOT show very specific launch configs in the boot dashboard, therefore we added the option to not show a specific launch config in the boot dashboard.

    I fully agree to the point that the preference to hide specific projects (not launch configs) is totally hidden and too far away from the boot dashboard itself. We tried to address that by adding a menu item to the dashboard view menu called Boot Projects Filters Preference..., which navigates you to exactly that preference. But that doesn't seem to do the job here... ;-) We could introduce a context-menu item for a project on the dashboard to hide it from the dashboard - and the same for the project in the project explorer to bring it back. Just an idea. Any other concrete ideas here?

    Hope I could explain the rationale behind the boot dashboard a bit. There is a user guide section about it as well where some or many of these aspects where described: https://github.com/spring-projects/sts4/wiki/Introduction-And-Working-With-Local-Projects.

    I am sure thee is a lot of room for improvement here (on the boot dashboard itself as well as on the user guide), so we will take your input here ans try to improve. If you have any additional concrete suggestions, please feel free to add them. They are more than welcome.

  15. 2019-05-10 commented on May 5, 2021

    @2019-05-10
    Author

    The overall rationale behind this is that the Boot Dashboard should provide a quick and easy-to-access one-click experience to start and stop your Spring Boot application (among other features it provides). Therefore it shows all the Spring Boot apps of your workspace by default, without the need to configure anything or do mark your projects. It identifies projects as Spring Boot projects and then shows them in a list. To that level of the boot dashboard is all about your Spring Boot projects.

    As far as I can tell, the Dash is all about runnable projects (start, stop, debug, launch config, connection, ...)
    So, no Spring Boot project that is not supposed to be run should appear here.

    That would remedy the initial cause of my ticket:
    I got three projects, one as a SHARED project containing everything common, and two to be actually run (using SHARED as library).
    SHARED should not appear in Dash.

    If you start a Spring Boot project, there is an associated launch config being used - the regular way in Eclipse to launch apps. Therefore you can jump from the project entry in the Boot Dashboard to the corresponding launch config that is used to launch the app.

    That is highly confusing and hardly in keeping with the overall Eclipse experience -- to run something, a Launch configuration is required.
    Hence, no Launch conf, no entry in the Dash.
    This again would remedy my initial issue: since SHARED has no runnable class, a Launch config cannot be created, thus it would'nt appear in Dash.
    Or else, that Launch config simply could be deleted by the user who intuitively recognizes the relationship between Launch conf and entry in Dash.

    I fully agree to the point that the preference to hide specific projects (not launch configs) is totally hidden and too far away from the boot dashboard itself. We tried to address that by adding a menu item to the dashboard view menu called Boot Projects Filters Preference..., which navigates you to exactly that preference. But that doesn't seem to do the job here... ;-) We could introduce a context-menu item for a project on the dashboard to hide it from the dashboard - and the same for the project in the project explorer to bring it back. Just an idea. Any other concrete ideas here?

    The Dash's toolbar has an entry called "Filters" -- why exactly is that feature (which is at least as much if not more about filtering than the three current entries) not part of it?
    After all, the three existing entries concern themselves as well with managing the contents of the Dash.
    Even if, for some reason that feature needs to be part of the overall preferences, why not have that Boot Projects Filters Preference... there instead of being hidden in the dots menu?

  16. martinlippert commented on May 5, 2021

    @martinlippert
    Member

    The overall rationale behind this is that the Boot Dashboard should provide a quick and easy-to-access one-click experience to start and stop your Spring Boot application (among other features it provides). Therefore it shows all the Spring Boot apps of your workspace by default, without the need to configure anything or do mark your projects. It identifies projects as Spring Boot projects and then shows them in a list. To that level of the boot dashboard is all about your Spring Boot projects.

    As far as I can tell, the Dash is all about runnable projects (start, stop, debug, launch config, connection, ...)
    So, no Spring Boot project that is not supposed to be run should appear here.

    That would remedy the initial cause of my ticket:
    I got three projects, one as a SHARED project containing everything common, and two to be actually run (using SHARED as library).
    SHARED should not appear in Dash.

    That sounds related to #605.

  17. martinlippert commented on May 5, 2021

    @martinlippert
    Member

    The Dash's toolbar has an entry called "Filters" -- why exactly is that feature (which is at least as much if not more about filtering than the three current entries) not part of it?
    After all, the three existing entries concern themselves as well with managing the contents of the Dash.
    Even if, for some reason that feature needs to be part of the overall preferences, why not have that Boot Projects Filters Preference... there instead of being hidden in the dots menu?

    Agree, we should change that and redesign the filtering experience here. Doesn't provide a coherent experience at the moment.

  18. martinlippert commented on May 5, 2021

    @martinlippert
    Member

    If you start a Spring Boot project, there is an associated launch config being used - the regular way in Eclipse to launch apps. Therefore you can jump from the project entry in the Boot Dashboard to the corresponding launch config that is used to launch the app.

    That is highly confusing and hardly in keeping with the overall Eclipse experience -- to run something, a Launch configuration is required.
    Hence, no Launch conf, no entry in the Dash.
    This again would remedy my initial issue: since SHARED has no runnable class, a Launch config cannot be created, thus it would'nt appear in Dash.
    Or else, that Launch config simply could be deleted by the user who intuitively recognizes the relationship between Launch conf and entry in Dash.

    I don't agree here. I really like the fact (and think this is an important feature of the boot dashboard) that you can "just run" your Spring Boot app without creating a launch config yourself before. And this is not something totally alien to Eclipse (there is also the context-menu, where you can select a project, right-click, and then select "Run As...", which automatically creates a launch configuration behind the scenes).

    Therefore, showing projects AND launch configs in the boot dashboard makes sense to me. However, I see the confusion that it creates for projects that are not runnable or that users will never run, even if it might be possible, technically.

    I would suggest:

    • We do not show projects without a main class anymore in the boot dashboard (by default)
    • We re-design the filtering experience to make it more coherent (and maybe more advanced)

    Once that is done, we can re-evaluate to see what other changes are necessary to improve the experience and to further reduce confusion.

  19. 2019-05-10 commented on May 5, 2021

    @2019-05-10
    Author

    That is highly confusing and hardly in keeping with the overall Eclipse experience -- to run something, a Launch configuration is required.
    Hence, no Launch conf, no entry in the Dash.

    I don't agree here. I really like the fact (and think this is an important feature of the boot dashboard) that you can "just run" your Spring Boot app without creating a launch config yourself before. And this is not something totally alien to Eclipse (there is also the context-menu, where you can select a project, right-click, and then select "Run As...", which automatically creates a launch configuration behind the scenes).

    Well, that was misleading.
    Ithink, in fact, my and your idea quite match -- only show projects with a Launch config. If no main class exists, do not create a Launch config.
    main class in this context of course one with @SpringBootApplication.

  20. kdvolder commented on May 5, 2021

    @kdvolder
    Member

    I also like that you can run apps from boot dash without first creating a launch config. When you do, the Boot Dash creates the launch config for you and that is very convenient. Otherwise you have to go through some additional steps to create launch configuration. These extra steps would be especially cumbersome if you needed to run more than one app at the same time, which is a scenario that the boot dash was explicitly designed to provide a convenient mechanic for. I.e. you select several projects in boot dash at once, click 'start' and several launch configs are created/started with a single button click.

    I can see the logic of only showing things with launch configs in the boot dash though. That does make sense from some point of view as well.

  21. BoykoAlex commented on May 5, 2021

    @BoykoAlex
    Contributor

    Showing only projects with either present launch config or main class only in Boot Dash by default -> 0b840cd

  22. martinlippert commented on May 7, 2021

    @martinlippert
    Member

    I think there are two things that are in progress to improve the experience here:

    Therefore, I think we should close this one here for now. If those improvements are done and available, please feel free to give them an early try @2019-05-10 and let us know what you think then.

  23. martinlippert commented on Jun 2, 2021

    @martinlippert
    Member

    Just as a quick follow-up: both mentioned enhancements are implemented and will be shipped as part of the next release (late in June 2021).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions