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

Disable Auto-update #2139

Merged
merged 13 commits into from
Feb 13, 2020
Merged

Disable Auto-update #2139

merged 13 commits into from
Feb 13, 2020

Conversation

cRui861
Copy link
Member

@cRui861 cRui861 commented Dec 11, 2019

Setting a command line flag to disable auto-update upon application launch.

@timotheeguerin
Copy link
Member

Why is this needed? There is a settings that disable auto update on quit already.

@codecov
Copy link

codecov bot commented Dec 11, 2019

Codecov Report

Merging #2139 into master will increase coverage by <.01%.
The diff coverage is 75%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2139      +/-   ##
==========================================
+ Coverage   65.13%   65.13%   +<.01%     
==========================================
  Files         898      898              
  Lines       25698    25701       +3     
  Branches     5066     5067       +1     
==========================================
+ Hits        16739    16741       +2     
- Misses       8959     8960       +1
Impacted Files Coverage Δ
src/app/models/forms/create-account-model.ts 0% <ø> (ø) ⬆️
...ervices/batch-account/arm-batch-account.service.ts 42.99% <0%> (ø) ⬆️
...nt/action/create/batch-account-create.component.ts 68.91% <0%> (ø) ⬆️
.../@batch-flask/core/data/list-getter/list-getter.ts 97.87% <90%> (-2.13%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 46ca02b...55265d4. Read the comment docs.

src/client/cli.ts Outdated Show resolved Hide resolved
@@ -68,6 +68,11 @@ export async function startBatchExplorer(args: BatchExplorerArgs) {
app.commandLine.appendSwitch("ignore-certificate-errors", "true");
}

if (args.doNotAutoupdate) {
log.warn("Application will not autoupdate");
autoUpdater.autoInstallOnAppQuit = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

Should likelymake this both set this and update config

@timotheeguerin
Copy link
Member

A little confused by the point of having this flag. Do you expect user to start BatchExplorer from the command line with the flag just to not be able to auto update?

src/client/cli.ts Outdated Show resolved Hide resolved
@cRui861
Copy link
Member Author

cRui861 commented Feb 5, 2020

@timotheeguerin Yes, the goal is to allow users to use this flag to disable auto-update when opening the app for an instance. I've noted your other suggestions mentioned offline and will revisit them.

@cRui861 cRui861 merged commit 0216050 into master Feb 13, 2020
@cRui861 cRui861 deleted the autoupdate branch February 13, 2020 23:30
@cRui861
Copy link
Member Author

cRui861 commented Feb 14, 2020

Fixes #2152

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants