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

dist: build linux/darwin arm64 targets #822

Merged
merged 3 commits into from Nov 23, 2021
Merged

dist: build linux/darwin arm64 targets #822

merged 3 commits into from Nov 23, 2021

Conversation

cpanato
Copy link
Contributor

@cpanato cpanato commented Nov 22, 2021

Summary

Adding the linux/darwin arm64 targets, we start building arm64 for the server and will start adding the targets for the plugins for the ones we prepackage in the build

related to: mattermost/mattermost#18491

Ticket Link

related to https://mattermost.atlassian.net/browse/DOPS-633

Copy link
Member

@mickmister mickmister left a comment

Choose a reason for hiding this comment

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

LGTM

server/issue.go Outdated Show resolved Hide resolved
@@ -587,7 +587,7 @@ func (p *Plugin) hasPermissionToManageSubscription(instanceID types.ID, userID,

switch cfg.RolesAllowedToEditJiraSubscriptions {
case "team_admin":
if !p.API.HasPermissionToChannel(userID, channelID, model.PERMISSION_MANAGE_TEAM) {
if !p.API.HasPermissionToChannel(userID, channelID, model.PermissionManageTeam) {
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if this should be HasPermissionToTeam or if this still works like this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

maybe @hanzei can comment this

Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think the semantics for permissions have changed. Also, the server does fall back to HasPermissionToTeam: https://github.com/mattermost/mattermost-server/blob/21639f9c8730b2f49ee52322acd3acdbf64ac6d9/app/authorization.go#L190

@codecov-commenter
Copy link

Codecov Report

Merging #822 (578584f) into master (5afe253) will decrease coverage by 0.03%.
The diff coverage is 20.83%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #822      +/-   ##
==========================================
- Coverage   34.93%   34.89%   -0.04%     
==========================================
  Files          52       52              
  Lines        5945     5943       -2     
==========================================
- Hits         2077     2074       -3     
+ Misses       3659     3658       -1     
- Partials      209      211       +2     
Impacted Files Coverage Δ
server/client.go 8.93% <ø> (ø)
server/command.go 18.13% <0.00%> (ø)
server/http.go 40.13% <ø> (ø)
server/instance_cloud.go 0.00% <ø> (ø)
server/instances.go 32.60% <ø> (ø)
server/issue_parser.go 70.37% <ø> (ø)
server/main.go 0.00% <ø> (ø)
server/mock.go 100.00% <ø> (ø)
server/plugin.go 16.29% <0.00%> (-0.10%) ⬇️
server/settings.go 80.00% <ø> (ø)
... and 13 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5afe253...578584f. Read the comment docs.

@@ -587,7 +587,7 @@ func (p *Plugin) hasPermissionToManageSubscription(instanceID types.ID, userID,

switch cfg.RolesAllowedToEditJiraSubscriptions {
case "team_admin":
if !p.API.HasPermissionToChannel(userID, channelID, model.PERMISSION_MANAGE_TEAM) {
if !p.API.HasPermissionToChannel(userID, channelID, model.PermissionManageTeam) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think the semantics for permissions have changed. Also, the server does fall back to HasPermissionToTeam: https://github.com/mattermost/mattermost-server/blob/21639f9c8730b2f49ee52322acd3acdbf64ac6d9/app/authorization.go#L190

@hanzei hanzei added the 4: Reviews Complete All reviewers have approved the pull request label Nov 23, 2021
@hanzei hanzei added this to the v3.2.0 milestone Nov 23, 2021
@hanzei hanzei merged commit 268b3e4 into master Nov 23, 2021
@hanzei hanzei deleted the arm64 branch November 23, 2021 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4: Reviews Complete All reviewers have approved the pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants