-
Notifications
You must be signed in to change notification settings - Fork 58
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
Added env var for disabling update checks #3986
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -56,7 +56,8 @@ export class ConfigService { | |||||
oidcName: this.get('OIDC_NAME') || '', | ||||||
ldap: this.get('LDAP_ENABLED')?.toLocaleLowerCase() === 'true' || false, | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
registrationEnabled: this.isRegistrationAllowed(), | ||||||
localLoginEnabled: this.isLocalLoginAllowed() | ||||||
localLoginEnabled: this.isLocalLoginAllowed(), | ||||||
disableUpdateCheck: !!this.get('DISABLE_UPDATE_CHECK') | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will only check if there's a non-empty string. Also please propagate moving the 'disable' part to the end of the name.
Suggested change
|
||||||
}); | ||||||
} | ||||||
|
||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ import { | |
Mutation, | ||
VuexModule | ||
} from 'vuex-module-decorators'; | ||
import {ServerModule} from './server'; | ||
|
||
/** Configure this to match data set in vue.config.ts */ | ||
declare const process: { | ||
|
@@ -54,7 +55,7 @@ export class AppInfo extends VuexModule implements IAppInfoState { | |
|
||
@Action | ||
public async CheckForUpdates() { | ||
if (this.checkedForUpdates === false) { | ||
if (!ServerModule.disableUpdateCheck && this.checkedForUpdates === false) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please move this into its own guard clause where we can set 'SET_VERSION' to the deployed instance's version and 'SET_CHECKED_FOR_UPDATES' to true. |
||
// Call axios.create() to skip the default interceptors setup in main.ts | ||
axios | ||
.create() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please match other variable names