Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
ui-middleware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
OX App Suite
Core
ui-middleware
Commits
fea9524d
Commit
fea9524d
authored
1 year ago
by
maik.schaefer
Committed by
julian.baeume
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Execute update immediately on 'unknown' version
parent
002720f1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/version.js
+3
-3
3 additions, 3 deletions
src/version.js
with
3 additions
and
3 deletions
src/version.js
+
3
−
3
View file @
fea9524d
...
...
@@ -92,7 +92,7 @@ export async function getVersionInfo () {
/**
* Fetches latest version from all the ui-containers
* @returns {Promise<
number
>} Return a promise containing this information
* @returns {Promise<
string
>} Return a promise containing this information
*/
export
async
function
fetchLatestVersion
()
{
const
versionInfo
=
await
fetchVersionInfo
()
...
...
@@ -101,7 +101,7 @@ export async function fetchLatestVersion () {
/**
* Gets latest version from redis or the ui-containers, if not cached.
* @returns {Promise<
number
>} Return a promise containing this information
* @returns {Promise<
string
>} Return a promise containing this information
*/
export
async
function
getLatestVersion
()
{
const
versionInfo
=
await
getVersionInfo
()
...
...
@@ -180,7 +180,7 @@ export async function updateVersionProcessor (pubClient) {
}
logger
.
info
(
`[Version] Found new source version. Current version: '
${
storedVersion
}
', new version: '
${
fetchedVersionInfo
.
version
}
'`
)
// that means, that between the previous update processing and this one, there was no version change
if
(
!
storedVersion
||
prevProcessedVersion
===
fetchedVersionInfo
.
version
)
{
if
(
!
storedVersion
||
storedVersion
===
'
unknown
'
||
prevProcessedVersion
===
fetchedVersionInfo
.
version
)
{
// update local version info
Object
.
assign
(
versionInfo
,
fetchedVersionInfo
)
const
stringifiedVersionInfo
=
JSON
.
stringify
(
versionInfo
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment