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] Uncessary updates on Settings, Roles and Permissions on startup #17160

Merged
merged 14 commits into from
May 4, 2020

Conversation

rodrigok
Copy link
Member

@rodrigok rodrigok commented Apr 4, 2020

No description provided.

@rodrigok rodrigok added this to the 3.2.0 milestone Apr 4, 2020
rodrigok added 3 commits April 3, 2020 23:56
# Conflicts:
#	app/settings/client/lib/settings.ts
#	app/settings/lib/settings.ts
#	app/settings/server/functions/settings.ts
@rodrigok rodrigok force-pushed the settings-permissions-roles-updates branch from f5dec1a to 9bbf059 Compare April 5, 2020 02:45
@lgtm-com
Copy link

lgtm-com bot commented Apr 5, 2020

This pull request introduces 1 alert when merging 9bbf059 into ff8017a - view on LGTM.com

new alerts:

  • 1 for Property access on null or undefined

@lgtm-com
Copy link

lgtm-com bot commented Apr 5, 2020

This pull request introduces 1 alert when merging dd6932a into ff8017a - view on LGTM.com

new alerts:

  • 1 for Property access on null or undefined

@rodrigok rodrigok force-pushed the settings-permissions-roles-updates branch from 6a05633 to dde16b0 Compare April 5, 2020 03:34
MarcosSpessatto
MarcosSpessatto previously approved these changes Apr 6, 2020
}, { fields: { _id: 1 } });

if (!existent) {
Permissions.upsert({ _id: permissionId }, { $set: permission });
Copy link
Member

Choose a reason for hiding this comment

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

insert?

Copy link
Member Author

Choose a reason for hiding this comment

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

The permission may exist with different properties

@ggazzo
Copy link
Member

ggazzo commented Apr 14, 2020

why not use the rocketchat version to check if should reprocess, only process the settings if we upgraded rocket.chat?

@rodrigok
Copy link
Member Author

why not use the rocketchat version to check if should reprocess, only process the settings if we upgraded rocket.chat?

Maybe a good idea and a later improvement. But without this improvement as well it will reprocess all the settings again on each upgrade.

@lgtm-com
Copy link

lgtm-com bot commented May 4, 2020

This pull request introduces 1 alert when merging c1e1f85 into c05eac5 - view on LGTM.com

new alerts:

  • 1 for Property access on null or undefined

app/authorization/server/startup.js Show resolved Hide resolved
ee/app/auditing/server/index.js Show resolved Hide resolved
app/settings/lib/settings.ts Outdated Show resolved Hide resolved
app/settings/server/functions/settings.ts Outdated Show resolved Hide resolved
app/settings/server/functions/settings.ts Outdated Show resolved Hide resolved
app/settings/server/functions/settings.ts Outdated Show resolved Hide resolved
@sampaiodiego sampaiodiego merged commit b3f2ce7 into develop May 4, 2020
@sampaiodiego sampaiodiego deleted the settings-permissions-roles-updates branch May 4, 2020 22:44
ggazzo added a commit that referenced this pull request May 5, 2020
…n-refactor

* 'develop' of github.com:RocketChat/Rocket.Chat:
  Allow to filter omnichannel analytics dashboards per departments. (#17463)
  [FIX] Uncessary updates on Settings, Roles and Permissions on startup (#17160)
  [NEW] Add the ability to send Livechat offline messages to a channel (#17442)
  [FIX] Federation attachment URL for audio and video files (#16430)
  [NEW] Add Livechat website URL to the offline message e-mail (#17429)
ggazzo added a commit that referenced this pull request May 6, 2020
…/new-threads

* 'develop' of github.com:RocketChat/Rocket.Chat: (42 commits)
  [FIX] Invalid CSS syntax (#17541)
  [NEW] Rewrite admin pages (#17388)
  [FIX] Replace postcss Meteor package (#15929)
  [FIX] Increasing highlight time in 3 seconds (#17540)
  [IMPROVE] Add new webhooks to the Omnichannel integration feature (#17503)
  [BREAK] Remove deprecated Omnichannel Knowledge Base feature (#17387)
  [FIX] Reactions may present empty names of who reacted when using Real Names (#17536)
  Allow to filter omnichannel analytics dashboards per departments. (#17463)
  [FIX] Uncessary updates on Settings, Roles and Permissions on startup (#17160)
  [NEW] Add the ability to send Livechat offline messages to a channel (#17442)
  [FIX] Federation attachment URL for audio and video files (#16430)
  [NEW] Add Livechat website URL to the offline message e-mail (#17429)
  LingoHub based on develop (#17520)
  RegExp improvements suggested by LGTM (#17500)
  [FIX] Replace obsolete X-FRAME-OPTIONS header on Livechat route (#17419)
  [FIX] LDAP login error on Enterprise version (#17497)
  [IMPROVE] [Apps-Engine] App user as the default notifier (#17050)
  [NEW] [Apps-Engine] New Livechat event handlers (#17033)
  [FIX] Change email verification label (#17450)
  Priority system messages were always created (#17479)
  ...
gabriellsh added a commit that referenced this pull request May 6, 2020
…to integrations

* 'admin-refactor' of github.com:RocketChat/Rocket.Chat:
  fix all paddings and mixed content between screens (#17538)
  [IMPROVE] Add new webhooks to the Omnichannel integration feature (#17503)
  [BREAK] Remove deprecated Omnichannel Knowledge Base feature (#17387)
  [FIX] Reactions may present empty names of who reacted when using Real Names (#17536)
  [IMPROVE] Custom sounds refactor (#17485)
  Allow to filter omnichannel analytics dashboards per departments. (#17463)
  [FIX] Uncessary updates on Settings, Roles and Permissions on startup (#17160)
  [NEW] Add the ability to send Livechat offline messages to a channel (#17442)
  [FIX] Federation attachment URL for audio and video files (#16430)
  [NEW] Add Livechat website URL to the offline message e-mail (#17429)
@rodrigok rodrigok mentioned this pull request May 7, 2020
3 tasks
ggazzo added a commit that referenced this pull request May 7, 2020
* 'develop' of github.com:RocketChat/Rocket.Chat:
  Regression: Fix Avatar Url Provider when CDN_PREFIX_ALL is false (#17542)
  [FIX] Invalid CSS syntax (#17541)
  [NEW] Rewrite admin pages (#17388)
  [FIX] Replace postcss Meteor package (#15929)
  [FIX] Increasing highlight time in 3 seconds (#17540)
  [IMPROVE] Add new webhooks to the Omnichannel integration feature (#17503)
  [BREAK] Remove deprecated Omnichannel Knowledge Base feature (#17387)
  [FIX] Reactions may present empty names of who reacted when using Real Names (#17536)
  Allow to filter omnichannel analytics dashboards per departments. (#17463)
  [FIX] Uncessary updates on Settings, Roles and Permissions on startup (#17160)
  [NEW] Add the ability to send Livechat offline messages to a channel (#17442)
  [FIX] Federation attachment URL for audio and video files (#16430)
  [NEW] Add Livechat website URL to the offline message e-mail (#17429)
  LingoHub based on develop (#17520)
  RegExp improvements suggested by LGTM (#17500)
  [FIX] Replace obsolete X-FRAME-OPTIONS header on Livechat route (#17419)
  [FIX] LDAP login error on Enterprise version (#17497)
@ggazzo ggazzo modified the milestones: 3.2.0, 3.3.0 May 8, 2020
This was referenced May 28, 2020
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