Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#898 improved feedback messages #903

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

WorkingAmeise
Copy link
Contributor

Closes: #898
Edition/VersionGetCommandlet changed them to log the configured option if the tool is not installed and the installed option if it is installed.
Changed the toolInstallInfo method to log into IdeSublogger instead of using context.info or context.warning.
Changed the uninstall commandlet to log a warning in case the requested commandlet is not installed.
Changed the uninstallPlugin commandlet to give feedback wether the plugin could be deleted or if there was not installation found.
Adjusted Tests for Edition/VersionGetCommandlet as well as Uninstall commandlet to expect the correct loglevel or content of logged messages.
Added logAtProccessable to IdeTestContextAssertions to check if a log-message was logged on PROCESSABLE-level.
Added .ide.software.version file to the npm software in the basic ide-test-project-ressource, since it was needed to test my implementation.

WorkingAmeise added 2 commits December 19, 2024 12:57
Edition/VersionGetCommandlet changed them to log the configured option if the tool is not installed and the installed option if it is installed.
Changed the toolInstallInfo method to log into IdeSublogger instead of using context.info or context.warning.
Changed the uninstall commandlet to log a warning in case the requested commandlet is not installed.
Changed the uninstallPlugin commandlet to give feedback wether the plugin could be deleted or if there was not installation found.
Adjusted Tests for Edition/VersionGetCommandlet as well as Uninstall commandlet to expect the correct loglevel or content of logged messages.
Added logAtProccessable to IdeTestContextAssertions to check if a log-message was logged on PROCESSABLE-level.
Added .ide.software.version file to the npm software in the basic ide-test-project-ressource, since it was needed to test my implementation.
added CHANGELOG entry
@WorkingAmeise WorkingAmeise self-assigned this Dec 19, 2024
@coveralls
Copy link
Collaborator

coveralls commented Dec 19, 2024

Pull Request Test Coverage Report for Build 12435451937

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 24 unchanged lines in 5 files lost coverage.
  • Overall coverage decreased (-0.1%) to 67.345%

Files with Coverage Reduction New Missed Lines %
com/devonfw/tools/ide/tool/LocalToolCommandlet.java 1 85.19%
com/devonfw/tools/ide/commandlet/UninstallPluginCommandlet.java 4 31.58%
com/devonfw/tools/ide/commandlet/VersionGetCommandlet.java 6 70.69%
com/devonfw/tools/ide/commandlet/EditionGetCommandlet.java 6 70.69%
com/devonfw/tools/ide/tool/plugin/PluginBasedCommandlet.java 7 70.37%
Totals Coverage Status
Change from base Build 12430022855: -0.1%
Covered Lines: 6659
Relevant Lines: 9539

💛 - Coveralls

@WorkingAmeise WorkingAmeise added the enhancement New feature or request label Dec 19, 2024
@hohwille hohwille added this to the release:2025.01.001 milestone Dec 20, 2024
@hohwille hohwille self-assigned this Dec 20, 2024
@hohwille
Copy link
Member

@jan-vcapgemini please have a look.
I reworked this PR and consider it as ready for review.
FYI: I also did some improvements and fixes of existing code that before was not part of this PR (e.g. LocalToolCommandlet.getInstalledEdition()).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 👀 In review
Development

Successfully merging this pull request may close these issues.

Improve feedback messages
4 participants