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

#525 Added online state check before downloading #610

Conversation

WorkingAmeise
Copy link
Contributor

closes #525

now Throws a CliOfflineException if the offline flag is set

@WorkingAmeise WorkingAmeise self-assigned this Sep 11, 2024
@coveralls
Copy link
Collaborator

coveralls commented Sep 11, 2024

Pull Request Test Coverage Report for Build 11120017041

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 150 unchanged lines in 3 files lost coverage.
  • Overall coverage decreased (-0.02%) to 66.509%

Files with Coverage Reduction New Missed Lines %
com/devonfw/tools/ide/cli/CliOfflineException.java 5 37.5%
com/devonfw/tools/ide/repo/AbstractToolRepository.java 24 60.87%
com/devonfw/tools/ide/io/FileAccessImpl.java 121 63.16%
Totals Coverage Status
Change from base Build 11114187270: -0.02%
Covered Lines: 6119
Relevant Lines: 8859

💛 - Coveralls

Copy link
Member

@hohwille hohwille left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@WorkingAmeise thanks for your PR. You found the relevant spots in the code where to implement this feature. Also throwing CliOfflineException is the perfect solution. 👍
You PR is functionally correct. I just left some comments for further thoughts and improvements. Please have a look.

@hohwille
Copy link
Member

Can you please also check DoD:
https://github.com/devonfw/IDEasy/blob/main/documentation/DoD.adoc

CHANGELOG entry needs to be added.

Copy link
Member

@hohwille hohwille left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@WorkingAmeise thanks for your PR and your rework.
You addressed my review comment well and solved the centralization of messages in CliOfflineException perfectly. 👍

Please remove CHANGELOG.adoc.orig as commented and we can merge this PR.

CHANGELOG.adoc.orig Outdated Show resolved Hide resolved
@hohwille hohwille merged commit a729a9a into devonfw:main Oct 1, 2024
4 checks passed
@WorkingAmeise WorkingAmeise deleted the bug/525-disable-downloads-when-called-with-offline branch October 1, 2024 13:04
@hohwille hohwille added reviewed Marks PRs that have been presented in the sprint-review meeting or that do not need to be presented. download download of tools, plugins, code from git, any HTTP traffic over the network install installation process of IDE + tools and install commandlet labels Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
download download of tools, plugins, code from git, any HTTP traffic over the network install installation process of IDE + tools and install commandlet reviewed Marks PRs that have been presented in the sprint-review meeting or that do not need to be presented.
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

User can make downloads to install tools even when set to offline
3 participants