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
diff --git a/config.yaml b/config.yaml
index fcf1884..87aaec2 100644
--- a/config.yaml
+++ b/config.yaml
@@ -62,7 +62,7 @@ options:
62 type: int62 type: int
63 description: |63 description: |
64 Maximum number of users per team, including active and inactive users.64 Maximum number of users per team, including active and inactive users.
65 default: 100065 default: 2000
66 outbound_proxy:66 outbound_proxy:
67 type: string67 type: string
68 description: The proxy to use for outbound requests.68 description: The proxy to use for outbound requests.
diff --git a/src/charm.py b/src/charm.py
index d4e93f0..1b68768 100755
--- a/src/charm.py
+++ b/src/charm.py
@@ -415,10 +415,6 @@ class MattermostK8sCharm(CharmBase):
415 'MM_SERVICESETTINGS_ENABLELINKPREVIEWS': 'true',415 'MM_SERVICESETTINGS_ENABLELINKPREVIEWS': 'true',
416 # Matterhorn recommends the use of Personal Access Tokens.416 # Matterhorn recommends the use of Personal Access Tokens.
417 'MM_SERVICESETTINGS_ENABLEUSERACCESSTOKENS': 'true',417 'MM_SERVICESETTINGS_ENABLEUSERACCESSTOKENS': 'true',
418 # We'll use one large team. Create and invite are
419 # disabled in the System Scheme, found in the Permissions
420 # section of the System Console.
421 'MM_TEAMSETTINGS_MAXUSERSPERTEAM': '1000',
422 }418 }
423 )419 )
424420
diff --git a/tests/unit/test_charm.py b/tests/unit/test_charm.py
index b99de6e..6a6888e 100644
--- a/tests/unit/test_charm.py
+++ b/tests/unit/test_charm.py
@@ -257,7 +257,7 @@ class TestMattermostK8sCharmHooksDisabled(unittest.TestCase):
257 'MM_SERVICESETTINGS_SITEURL': 'http://mattermost-k8s',257 'MM_SERVICESETTINGS_SITEURL': 'http://mattermost-k8s',
258 'MM_SQLSETTINGS_DATASOURCE': 'postgres://10.0.1.101:5432/',258 'MM_SQLSETTINGS_DATASOURCE': 'postgres://10.0.1.101:5432/',
259 'MM_TEAMSETTINGS_MAXCHANNELSPERTEAM': 3000,259 'MM_TEAMSETTINGS_MAXCHANNELSPERTEAM': 3000,
260 'MM_TEAMSETTINGS_MAXUSERSPERTEAM': 1000,260 'MM_TEAMSETTINGS_MAXUSERSPERTEAM': 2000,
261 }261 }
262 self.assertEqual(self.harness.charm._make_pod_config(), expected)262 self.assertEqual(self.harness.charm._make_pod_config(), expected)
263263
@@ -498,7 +498,6 @@ class TestMattermostK8sCharmHooksDisabled(unittest.TestCase):
498 'MM_SERVICESETTINGS_ENABLECUSTOMEMOJI': 'true',498 'MM_SERVICESETTINGS_ENABLECUSTOMEMOJI': 'true',
499 'MM_SERVICESETTINGS_ENABLELINKPREVIEWS': 'true',499 'MM_SERVICESETTINGS_ENABLELINKPREVIEWS': 'true',
500 'MM_SERVICESETTINGS_ENABLEUSERACCESSTOKENS': 'true',500 'MM_SERVICESETTINGS_ENABLEUSERACCESSTOKENS': 'true',
501 'MM_TEAMSETTINGS_MAXUSERSPERTEAM': '1000',
502 },501 },
503 }502 }
504 ],503 ],

Subscribers

People subscribed via source and target branches