-
Notifications
You must be signed in to change notification settings - Fork 829
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
BASH-18 Add configs to show/hide server management and multiteam settings #600
Conversation
@jasonblais @yuya-oc |
@dmeza Thanks! I can definitely see the use case for Couple of more questions:
|
|
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.
Due to merging of #586, please rebase the branch.
@yuya-oc Once rebased, would you be able to help with test builds for the four cases
I'll give this one a try |
@yuya-oc rebased and tested. |
@dmeza Probably you haven't pushed the branch yet. |
@yuya-oc I think it was new conflicts from the merge of bash-11. It's rebased and green. |
|
@dmeza Tested all the different cases. Left a few test notes below, but overall it works as expected. I'm a bit hesitant on how useful I can see admins wanting to flip Test cases:
You can still successfully add a new server via
If
Same issues as in the first test case. However, the Another issue I found is that the
Same issues as in the first test case, given server management is disabled.
Default case. No issues. @yuya-oc Once we work on #618, would it be possible to not allow users define @yuya-oc @dmeza All the other settings are a benefit for the end user or make the initial administration easier, including settings like |
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.
See above notes
@jasonblais Yes. Once we decide, I think This feature is never used for us because we must use |
Would this be easy to implement already for this PR?
That's true, but I think that particular setting is fine to support. I can see that some Enterprise admins would find this feature useful. However, the setting I'm less certain about is |
@yuya-oc rebased to latest from master. Made changes for comments from @jasonblais #600 (comment):
Jason the problem you saw with: Let me know if you have any other questions. |
src/browser/components/TabBar.jsx
Outdated
<Glyphicon glyph='plus'/> | ||
</NavItem> | ||
); | ||
if (AppConfig.data.enableMultiTeams === true) { |
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.
Probably enableServerManagement
should be referred here instead of enableMultiTeams
.
And please make components stateless as well as possible. So the value should be passed via props.
For example, add showAddServerButton
prop to TabBar.jsx
and MainPage.jsx
, then pass the parameter at ReactDOM.render()
of index.jsx
.
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.
@yuya-oc refactored to keep TabBar.jsx
stateless. The right condition is to hide the plus is when enableMultiTeams= true
since that's when you can add more teams.
src/common/config/base.json
Outdated
"helpLink": "https://docs.mattermost.com/help/apps/desktop-guide.html", | ||
"enableMultiTeams": true, | ||
"enableServerManagement": true, | ||
"allowDarwinIconTray": true |
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.
Probably unnecessary in this PR.
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.
@yuya-oc that config is related to this condition: https://github.com/mattermost/desktop/pull/600/files#diff-125da514cff642c8a155d6a3e3f118d0R403
I guess it shouldn't have been part of the same commit. How would you like me to proceed? do another PR?
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.
@yuya-oc removed this logic and will add it to a new PR.
src/common/config/base.json
Outdated
"helpLink": "https://docs.mattermost.com/help/apps/desktop-guide.html", | ||
"enableMultiTeams": true, | ||
"enableServerManagement": true, | ||
"allowDarwinIconTray": true |
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.
Probably unnecessary in this PR.
@dmeza To make sure, would you tell us the purpose of I feel When do admins want to limit the number of servers? If the admin can use build-time config, I feel they uses |
@yuya-oc @jasonblais how it was originally thought was:
|
@dmeza Thanks for the reply. How are these settings used at Shift? |
@jasonblais both would be set to false since there is not option to add new servers or edit/delete the existing one. The changes are not exactly the same right now for shift/desktop since there's burnt logic to have a default Team, to not allow add more Teams and to not allow to edit Teams. |
@jasonblais @yuya-oc: discussed yesterday with @csduarte that two configs where added in case they needed to be handled as separate options. Shift will just be disabling all options to edit or add servers. I removed config |
#600: https://circleci.com/gh/mattermost/desktop/1099 |
@dmeza When
If
|
@jasonblais I believe it's because you have the value |
I could confirmed, too. Thanks! |
Description
This PR add values
enableMultiTeams
andenableServerManagement
to show/hide server management and multiteam settings.npm run lint:js
for proper code formattingTest Cases
Add override values like this to override.json (src/common/config/override.json)
After entering the a fist server no others are accepted
Notes
Includes bash-20