Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

[PLT-7778] Pre-populate token/API endpoints for GitLab #130

Merged
merged 1 commit into from
Oct 23, 2017

Conversation

ry-wang
Copy link
Contributor

@ry-wang ry-wang commented Oct 7, 2017

Summary

Rather than having a user manually enter the Token and API endpoints for GitLab, they now just need to enter the site URL, and the Token, API, and Auth endpoints will be automatically generated.

Change has been made for both regular and enterprise versions.

Ticket Link

mattermost/mattermost#7558
https://mattermost.atlassian.net/browse/PLT-7778

Checklist

@ry-wang ry-wang force-pushed the PLT-7778 branch 2 times, most recently from ddf69dc to edfab41 Compare October 7, 2017 21:12
@grundleborg grundleborg added the 1: PM Review Requires review by a product manager label Oct 9, 2017
@jasonblais jasonblais added the Setup Old Test Server Triggers the creation of a test server label Oct 9, 2017
@jasonblais jasonblais self-assigned this Oct 9, 2017
@jasonblais jasonblais removed the Setup Old Test Server Triggers the creation of a test server label Oct 10, 2017
@mattermost mattermost deleted a comment from mattermod Oct 10, 2017
@mattermost mattermost deleted a comment from mattermod Oct 10, 2017
@mattermost mattermost deleted a comment from mattermod Oct 10, 2017
@jasonblais jasonblais added the Setup Old Test Server Triggers the creation of a test server label Oct 10, 2017
Copy link
Contributor

@jasonblais jasonblais left a comment

Choose a reason for hiding this comment

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

Great work!

Just two minor notes/comments:

1 - On a server with Enterprise license installed, the GitLab Site URL is non-editable. Repro steps:

  • upload an E20 Enterprise license on a Mattermost install
  • Go to System Console > OAuth 2.0
  • Select GitLab from the dropdown
  • Try to edit GitLab site URL field
  • Observed: Field not editable

image

PS: Given this is only on an Enterprise-licensed server, let me know if you have any trouble reproducing it.

2 - When populating the token/API endpoints, would it be possible to remove a trailing slash from the GitLab Site URL if one is present? I can see admins doing that by accident, resulting in a double slash for the token/API endpoints

image

PS: We automatically trim trailing slash from the System Console > Configuration > SiteURL setting. So that might be a good comparison.

@jasonblais jasonblais added the Awaiting Submitter Action Blocked on the author label Oct 11, 2017
@ry-wang
Copy link
Contributor Author

ry-wang commented Oct 11, 2017

@jasonblais Will look into it!

@jasonblais jasonblais removed Awaiting Submitter Action Blocked on the author Setup Old Test Server Triggers the creation of a test server labels Oct 18, 2017
@mattermost mattermost deleted a comment from mattermod Oct 18, 2017
@mattermost mattermost deleted a comment from mattermod Oct 18, 2017
@mattermost mattermost deleted a comment from mattermod Oct 18, 2017
@jasonblais jasonblais added the Setup Old Test Server Triggers the creation of a test server label Oct 18, 2017
Copy link
Contributor

@jasonblais jasonblais left a comment

Choose a reason for hiding this comment

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

Awesome. Both issues fixed, verified that GitLab SSO works as before both in TE and EE.

Nice work!

@jasonblais jasonblais added 2: Dev Review Requires review by a core commiter and removed 1: PM Review Requires review by a product manager Setup Old Test Server Triggers the creation of a test server labels Oct 18, 2017
@jasonblais jasonblais removed their assignment Oct 18, 2017
@mattermost mattermost deleted a comment from mattermod Oct 18, 2017
@mattermost mattermost deleted a comment from mattermod Oct 18, 2017
@mattermost mattermost deleted a comment from mattermod Oct 18, 2017
@jwilander jwilander added 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core commiter labels Oct 19, 2017
@jwilander
Copy link
Member

Nice work @R-Wang97 ! There's an issue with our build system but as soon as that's resolved we'll merge this in

@jwilander jwilander merged commit 2abd909 into mattermost:master Oct 23, 2017
@ry-wang ry-wang deleted the PLT-7778 branch October 23, 2017 21:02
dmeza pushed a commit to uber-archive/mattermost-webapp that referenced this pull request Oct 31, 2017
)

* UCHAT-491 hide password preference for saml auth_service

* UCHAT-491 use constant for saml string
dmeza pushed a commit to uber-archive/mattermost-webapp that referenced this pull request Oct 31, 2017
)

* UCHAT-491 hide password preference for saml auth_service

* UCHAT-491 use constant for saml string
dmeza pushed a commit to uber-archive/mattermost-webapp that referenced this pull request Nov 1, 2017
)

* UCHAT-491 hide password preference for saml auth_service

* UCHAT-491 use constant for saml string
@jasonblais jasonblais added Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation labels Nov 1, 2017
ry-wang pushed a commit to ry-wang/mattermost-webapp that referenced this pull request Nov 4, 2017
@lindalumitchell lindalumitchell added the Tests/Done Release tests have been written label Nov 7, 2017
dmeza pushed a commit to uber-archive/mattermost-webapp that referenced this pull request Nov 10, 2017
)

* UCHAT-491 hide password preference for saml auth_service

* UCHAT-491 use constant for saml string
dmeza pushed a commit to uber-archive/mattermost-webapp that referenced this pull request Nov 11, 2017
)

* UCHAT-491 hide password preference for saml auth_service

* UCHAT-491 use constant for saml string
dmeza pushed a commit to uber-archive/mattermost-webapp that referenced this pull request Nov 13, 2017
)

* UCHAT-491 hide password preference for saml auth_service

* UCHAT-491 use constant for saml string
dmeza pushed a commit to uber-archive/mattermost-webapp that referenced this pull request Nov 13, 2017
)

* UCHAT-491 hide password preference for saml auth_service

* UCHAT-491 use constant for saml string
dmeza pushed a commit to uber-archive/mattermost-webapp that referenced this pull request Nov 13, 2017
)

* UCHAT-491 hide password preference for saml auth_service

* UCHAT-491 use constant for saml string
dmeza pushed a commit to uber-archive/mattermost-webapp that referenced this pull request Nov 14, 2017
)

* UCHAT-491 hide password preference for saml auth_service

* UCHAT-491 use constant for saml string
dmeza pushed a commit to uber-archive/mattermost-webapp that referenced this pull request Nov 15, 2017
)

* UCHAT-491 hide password preference for saml auth_service

* UCHAT-491 use constant for saml string
dmeza pushed a commit to uber-archive/mattermost-webapp that referenced this pull request Nov 21, 2017
)

* UCHAT-491 hide password preference for saml auth_service

* UCHAT-491 use constant for saml string
dmeza pushed a commit to uber-archive/mattermost-webapp that referenced this pull request Nov 23, 2017
)

* UCHAT-491 hide password preference for saml auth_service

* UCHAT-491 use constant for saml string
dmeza pushed a commit to uber-archive/mattermost-webapp that referenced this pull request Dec 8, 2017
)

* UCHAT-491 hide password preference for saml auth_service

* UCHAT-491 use constant for saml string
hmhealey pushed a commit that referenced this pull request Aug 28, 2020
hmhealey pushed a commit that referenced this pull request Mar 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
4: Reviews Complete All reviewers have approved the pull request Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation Hacktoberfest Tests/Done Release tests have been written
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants