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

[IMPROVE] Do not re-create General room on every server start #22957

Merged
merged 10 commits into from
Sep 16, 2021

Conversation

matheusbsilva137
Copy link
Member

@matheusbsilva137 matheusbsilva137 commented Aug 17, 2021

Proposed changes (including videos or screenshots)

  • Check the Show_Setup_Wizard Setting's value to control whether the general room should be created. This channel will only be created if the Show_Setup_Wizard Setting is 'pending'.

Issue(s)

Task - ClickUp

Steps to test or reproduce

  1. Log in as an administrator and delete the general room;
  2. Go to Administration > General and turn off the "Keep general room on the server" setting;
  3. Restart the server;
  4. Go to Administration > Rooms and search for "general". Expected behavior: no results should be found (the room shouldn't exist after server restart).
    Note: the tests should behave the same way using TEST_MODE=true.

Further comments

The Show_Setup_Wizard setting's value is updated from 'pending' to 'in_progress' or 'completed' if there is at least one user in the server OR if the setup wizard is completed. Once it is updated from 'pending' to any other value, it'll never return to pending again (that's why it is safe to assume that the general channel will only be created once).

@lgtm-com
Copy link

lgtm-com bot commented Sep 1, 2021

This pull request introduces 1 alert when merging 6de5e48 into ee17501 - view on LGTM.com

new alerts:

  • 1 for Unused variable, import, function or class

@matheusbsilva137 matheusbsilva137 merged commit 0a293e5 into develop Sep 16, 2021
@matheusbsilva137 matheusbsilva137 deleted the improve/recreate-general branch September 16, 2021 15:42
@sampaiodiego sampaiodiego changed the title [IMPROVE] General room reappears after being deleted [IMPROVE] Do not re-create General room on every server start Sep 16, 2021
gabriellsh added a commit that referenced this pull request Sep 16, 2021
…/seats-cap

* 'develop' of github.com:RocketChat/Rocket.Chat:
  [IMPROVE] General room reappears after being deleted (#22957)
  [NEW][APPS] Get livechat's room transcript via bridge method (#22985)
  Regression: `renderEmoji` helper referred as a template (#23212)
  Chore: Convert VerticalBar component to typescript (#22542)
  Add missing custom fields to apps' users converter (#21176)
  Regression: Fix view logs admin screen (#23194)
  [BREAK] Remove deprecated endpoints (#23162)
gabriellsh added a commit that referenced this pull request Sep 17, 2021
…to feat/seats-cap-banners

* 'feat/seats-cap' of github.com:RocketChat/Rocket.Chat:
  [NEW] Prevent users from accidentally deactivating an enterprise license by adding more users than the license allows. (#23050)
  [IMPROVE] Ensure Seats-cap design and UI are the same (#23222)
  [NEW] Remove license downgrade if exceeding seats cap (#23220)
  [IMPROVE] Throw error if no appId is provided to useUIKitHandleAction (#23221)
  [IMPROVE] General room reappears after being deleted (#22957)
  [NEW][APPS] Get livechat's room transcript via bridge method (#22985)
  Regression: `renderEmoji` helper referred as a template (#23212)
  Chore: Convert VerticalBar component to typescript (#22542)
  Add missing custom fields to apps' users converter (#21176)
  Regression: Fix view logs admin screen (#23194)
  [BREAK] Remove deprecated endpoints (#23162)
gabriellsh added a commit that referenced this pull request Sep 17, 2021
…to feat/seats-cap-stats

* 'feat/seats-cap' of github.com:RocketChat/Rocket.Chat:
  [NEW] Prevent users from accidentally deactivating an enterprise license by adding more users than the license allows. (#23050)
  [IMPROVE] Ensure Seats-cap design and UI are the same (#23222)
  [NEW] Remove license downgrade if exceeding seats cap (#23220)
  [IMPROVE] Throw error if no appId is provided to useUIKitHandleAction (#23221)
  [IMPROVE] General room reappears after being deleted (#22957)
  [NEW][APPS] Get livechat's room transcript via bridge method (#22985)
  Regression: `renderEmoji` helper referred as a template (#23212)
  Chore: Convert VerticalBar component to typescript (#22542)
  Add missing custom fields to apps' users converter (#21176)
  Regression: Fix view logs admin screen (#23194)
  [BREAK] Remove deprecated endpoints (#23162)
gabriellsh added a commit that referenced this pull request Sep 21, 2021
…to fix/bannerParser

* 'feat/seats-cap' of github.com:RocketChat/Rocket.Chat: (91 commits)
  [NEW] stats on seats request  (#23225)
  [NEW] Prevent users from accidentally deactivating an enterprise license by adding more users than the license allows. (#23050)
  [IMPROVE] Ensure Seats-cap design and UI are the same (#23222)
  [NEW] Remove license downgrade if exceeding seats cap (#23220)
  [IMPROVE] Throw error if no appId is provided to useUIKitHandleAction (#23221)
  [IMPROVE] General room reappears after being deleted (#22957)
  [NEW][APPS] Get livechat's room transcript via bridge method (#22985)
  Regression: `renderEmoji` helper referred as a template (#23212)
  Chore: Convert VerticalBar component to typescript (#22542)
  Add missing custom fields to apps' users converter (#21176)
  Regression: Fix view logs admin screen (#23194)
  [BREAK] Remove deprecated endpoints (#23162)
  [NEW] Seats Cap: Request seats link (#23151)
  Regression: View Logs administration page crashing (#23205)
  Chore: Move client helpers (#23178)
  Chore: Change Ubuntu version to 20.04 on all GitHub Actions (#23200)
  Regression: Properly trickle-down state from UsersPage to UsersTable (#23196)
  [IMPROVE] Add missing pt-BR translations, fix typos and unify language (#23176)
  [NEW] Seats Card (#23077)
  [FIX] User list not being updated after creation/deletion of user (#23032)
  ...
@sampaiodiego sampaiodiego mentioned this pull request Oct 1, 2021
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.

3 participants