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

Fix the update check not working #17809

Merged
merged 2 commits into from Jun 3, 2020
Merged

Fix the update check not working #17809

merged 2 commits into from Jun 3, 2020

Conversation

graywolf336
Copy link
Contributor

@graywolf336 graywolf336 commented Jun 2, 2020

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

  • Bugfix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change which improves a current function)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Hotfix (a major bugfix that has to be merged asap)
  • Documentation Update (if none of the other choices apply)

Checklist

  • I have read the CONTRIBUTING doc
  • I have signed the CLA
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works (if applicable)
  • I have added necessary documentation (if applicable)
  • Any dependent changes have been merged and published in downstream modules

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?

@rodrigok rodrigok added this to the 3.3.1 milestone Jun 2, 2020
@@ -40,7 +36,11 @@ export default () => {
});

check(data, Match.ObjectIncluding({
versions: [String],
Copy link
Contributor Author

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(),
Copy link
Contributor Author

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, '_'),
Copy link
Member

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
   }
}

@geekgonecrazy
Copy link
Member

geekgonecrazy commented Jun 2, 2020

@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.

@rodrigok
Copy link
Member

rodrigok commented Jun 2, 2020

@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)

@geekgonecrazy geekgonecrazy merged commit bcf26aa into develop Jun 3, 2020
@geekgonecrazy geekgonecrazy deleted the new/release-service branch June 3, 2020 20:02
ggazzo added a commit that referenced this pull request Jun 3, 2020
…/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
  ...
gabriellsh added a commit that referenced this pull request Jun 4, 2020
…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)
@sampaiodiego sampaiodiego mentioned this pull request Jun 10, 2020
sampaiodiego pushed a commit that referenced this pull request Jun 10, 2020
Co-authored-by: Aaron Ogle <geekgonecrazy@users.noreply.github.com>
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.

None yet

3 participants