-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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
Fix the update check not working #17809
Conversation
@@ -40,7 +36,11 @@ export default () => { | |||
}); | |||
|
|||
check(data, Match.ObjectIncluding({ | |||
versions: [String], |
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.
This is one reason why the previous version won't work.
|
||
const params = { | ||
uniqueId: uniqueID.value, | ||
installedAt: uniqueID.createdAt, | ||
installedAt: uniqueID.createdAt.toJSON(), |
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.
This is another reason why the previous version won't work. Sadly, meteor has an issue parameterizing date objects.
@@ -62,7 +62,7 @@ export default () => { | |||
msg: `*${ TAPi18n.__('Rocket_Chat_Alert', adminUser.language) }:*\n\n*${ TAPi18n.__(alert.title, adminUser.language) }*\n${ TAPi18n.__(alert.text, ...alert.textArguments || [], adminUser.language) }\n${ alert.infoUrl }`, | |||
})), | |||
banners: alerts.map((alert) => ({ | |||
id: `alert-${ alert.id }`, | |||
id: `alert-${ alert.id }`.replace(/\./g, '_'), |
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.
Needed because otherwise with a dot its inserting and nesting. So like in the version one it was nesting like:
versionUpdate-3: {
'3': {
'0': banner
}
}
@rodrigok @sampaiodiego any ideas on how to keep the banners portion of the users object from becoming super bloated? After a while it would get pretty large. With the authentication tokens in the past I believe the size became an issue. |
@geekgonecrazy we probably will need to reevaluate that later, or creating a limit of number of banners or doing a proper API for that (better IMO) |
…/new-threads * 'develop' of github.com:RocketChat/Rocket.Chat: (38 commits) [IMPROVE][Federation] Add support for _tcp and protocol DNS entries (#17818) Fix the update check not working (#17809) Add Apps-Engine to Engine Versions on History (#17810) [FIX] Link preview containing HTML encoded chars (#16512) [FIX] Email link "go to message" being incorrectly escaped (#17803) [FIX] Error when re-installing an App (#17789) Update Apps-Engine version (#17804) Fix invalid develop payload to release service (#17799) Readme: Update Raspberry Pi 2 to Pi 4 (#17031) [NEW] Accept variable `#{userdn}` on LDAP group filter (#16273) [FIX] Spotify embed link opens in same tab (#13637) [FIX] Markdown links not accepting URLs with parentheses (#13605) [NEW][API] Endpoint `settings.addCustomOAuth` to create Custom OAuth services (#14912) [IMPROVE] Make the implementation of custom code easier by having placeholders for a custom folder (#15106) [NEW] Skip Export Operations that haven't been updated in over a day (#16135) [NEW] Highlight matching words in message search results (#16166) [FIX] Set `x-content-type-options: nosniff` header (#16232) [FIX] Disabling `Json Web Tokens protection to file uploads` disables the File Upload protection entirely (#16262) Fixes some italian word (#14008) Bump version to 3.4.0-develop ...
…rewrite_admin_sidebar * 'develop' of github.com:RocketChat/Rocket.Chat: [FIX] When the message is too long declining to send as an attachment does not restore the content into the composer (#16332) [IMPROVE][Federation] Add support for _tcp and protocol DNS entries (#17818) Fix the update check not working (#17809) Add Apps-Engine to Engine Versions on History (#17810) [FIX] Link preview containing HTML encoded chars (#16512) [FIX] Email link "go to message" being incorrectly escaped (#17803) [FIX] Error when re-installing an App (#17789) Update Apps-Engine version (#17804) Fix invalid develop payload to release service (#17799)
Co-authored-by: Aaron Ogle <geekgonecrazy@users.noreply.github.com>
Proposed changes
Fix the update checker.
How to test or reproduce
Implement the update check endpoint and wait for it to be hit. Realize it isn't being hit.
Types of changes
Checklist
Further comments
No idea how long this has been broken now.
Also, the reason we changed the format of the id for the banner is because if you previously dismissed the
versionUpdate
banner then it wouldn't display again. This will obviously increase the size of the user object in the database, so how do we go about implementing a fix for this?