Merge ~barryprice/charm-k8s-mattermost/+git/charm-k8s-mattermost:master into charm-k8s-mattermost:master

Proposed by Barry Price
Status: Merged
Approved by: Tom Haddon
Approved revision: 2a778283fbac741c17b24d9d26ce792ed6d98009
Merged at revision: 73cde5fc69555fc895e9277afc880677de233ef5
Proposed branch: ~barryprice/charm-k8s-mattermost/+git/charm-k8s-mattermost:master
Merge into: charm-k8s-mattermost:master
Diff against target: 49 lines (+2/-7)
3 files modified
config.yaml (+1/-1)
src/charm.py (+0/-4)
tests/unit/test_charm.py (+1/-2)
Reviewer Review Type Date Requested Status
Tom Haddon Approve
🤖 prod-jenkaas-is (community) continuous-integration Approve
Canonical IS Reviewers Pending
Review via email: mp+452943@code.launchpad.net

Commit message

Increase the hard-coded MM_TEAMSETTINGS_MAXUSERSPERTEAM value when use_canonical_defaults is set to True to address LP:2037746

To post a comment you must log in.
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

This merge proposal is being monitored by mergebot. Change the status to Approved to merge.

Revision history for this message
Barry Price (barryprice) wrote :
Revision history for this message
🤖 prod-jenkaas-is (prod-jenkaas-is) wrote :

A CI job is currently in progress. A follow up comment will be added when it completes.

Revision history for this message
🤖 prod-jenkaas-is (prod-jenkaas-is) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
🤖 prod-jenkaas-is (prod-jenkaas-is) wrote :

A CI job is currently in progress. A follow up comment will be added when it completes.

Revision history for this message
🤖 prod-jenkaas-is (prod-jenkaas-is) wrote :
review: Approve (continuous-integration)
Revision history for this message
Paul Collins (pjdc) wrote :

Since there's a separate setting whose default meets the hard-coded value, I think we should just remove MM_TEAMSETTINGS_MAXUSERSPERTEAM from use_canonical_defaults entirely.

Revision history for this message
🤖 prod-jenkaas-is (prod-jenkaas-is) wrote :

A CI job is currently in progress. A follow up comment will be added when it completes.

Revision history for this message
🤖 prod-jenkaas-is (prod-jenkaas-is) wrote :
review: Approve (continuous-integration)
Revision history for this message
Tom Haddon (mthaddon) wrote :

LGTM, thx

review: Approve
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

Change successfully merged at revision 73cde5fc69555fc895e9277afc880677de233ef5

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/config.yaml b/config.yaml
2index fcf1884..87aaec2 100644
3--- a/config.yaml
4+++ b/config.yaml
5@@ -62,7 +62,7 @@ options:
6 type: int
7 description: |
8 Maximum number of users per team, including active and inactive users.
9- default: 1000
10+ default: 2000
11 outbound_proxy:
12 type: string
13 description: The proxy to use for outbound requests.
14diff --git a/src/charm.py b/src/charm.py
15index d4e93f0..1b68768 100755
16--- a/src/charm.py
17+++ b/src/charm.py
18@@ -415,10 +415,6 @@ class MattermostK8sCharm(CharmBase):
19 'MM_SERVICESETTINGS_ENABLELINKPREVIEWS': 'true',
20 # Matterhorn recommends the use of Personal Access Tokens.
21 'MM_SERVICESETTINGS_ENABLEUSERACCESSTOKENS': 'true',
22- # We'll use one large team. Create and invite are
23- # disabled in the System Scheme, found in the Permissions
24- # section of the System Console.
25- 'MM_TEAMSETTINGS_MAXUSERSPERTEAM': '1000',
26 }
27 )
28
29diff --git a/tests/unit/test_charm.py b/tests/unit/test_charm.py
30index b99de6e..6a6888e 100644
31--- a/tests/unit/test_charm.py
32+++ b/tests/unit/test_charm.py
33@@ -257,7 +257,7 @@ class TestMattermostK8sCharmHooksDisabled(unittest.TestCase):
34 'MM_SERVICESETTINGS_SITEURL': 'http://mattermost-k8s',
35 'MM_SQLSETTINGS_DATASOURCE': 'postgres://10.0.1.101:5432/',
36 'MM_TEAMSETTINGS_MAXCHANNELSPERTEAM': 3000,
37- 'MM_TEAMSETTINGS_MAXUSERSPERTEAM': 1000,
38+ 'MM_TEAMSETTINGS_MAXUSERSPERTEAM': 2000,
39 }
40 self.assertEqual(self.harness.charm._make_pod_config(), expected)
41
42@@ -498,7 +498,6 @@ class TestMattermostK8sCharmHooksDisabled(unittest.TestCase):
43 'MM_SERVICESETTINGS_ENABLECUSTOMEMOJI': 'true',
44 'MM_SERVICESETTINGS_ENABLELINKPREVIEWS': 'true',
45 'MM_SERVICESETTINGS_ENABLEUSERACCESSTOKENS': 'true',
46- 'MM_TEAMSETTINGS_MAXUSERSPERTEAM': '1000',
47 },
48 }
49 ],

Subscribers

People subscribed via source and target branches