Agniva De Sarker
23800326a0
MM-22051: Remove ToJson methods from network writes ( #17999 )
...
We replace the double conversion of
[]byte to string, with a direct write
to http.ResponseWriter.
https://mattermost.atlassian.net/browse/MM-22051
Tried using gofmt -r, but it only accepts Go
expressions. So had to resort to an ugly sed replace
sed -E -i 's/w.Write\(\[\]byte\((.*).ToJson\(\)\)\)/if err := json.NewEncoder\(w\).Encode\(\1\); err != nil { mlog.Warn\("Error while writing response", mlog.Err\(err\)\)}/g' *.go
```release-note
NONE
```
2021-07-26 13:41:02 +05:30
Agniva De Sarker
c4b4e1bc38
MM-36271: Bump major version to 6.0 ( #17973 )
...
https://mattermost.atlassian.net/browse/MM-36271
```release-note
We bump the major version to 6.0
```
2021-07-22 12:21:47 +05:30
Ben Schumacher
97ccf0bdf6
[MM-16751] golint model ( #17896 )
2021-07-21 16:38:39 +02:00
Ibrahim Serdar Acikgoz
5ea06e51d0
Migrate to stateless app.App ( #17542 )
...
* add request context
* move initialialization to server
* use app interface instead of global app functions
* remove app context from webconn
* cleanup
* remove duplicated services
* move context to separate package
* remove finalize init method and move content to NewServer function
* restart workers and schedulers after adding license for tests
* reflect review comments
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2021-05-11 13:00:44 +03:00
Max Erenberg
869da7a78b
[MM-32044] Reset SAML auth data ( #17161 )
...
Automatic Merge
2021-04-13 00:46:30 +02:00
Hossein
daec0b3201
All Sections to SubSections ( #16917 )
...
* initial
* Revert "initial"
This reverts commit 3d631aeecd .
* [MM-32352] Add Experimental Subsections BACKEND (#16887 )
Automatic Merge
* update appiface
* Fix app layers
* Ancillary Permissions on backend (#17061 )
Automatic Merge
* [MM-32799] Add About Section (#17015 )
* Add About Section
* add mock key
* Update role.go
* Update role.go
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
* [MM-33437] Fix config access tags for experimental settings (#17111 )
Automatic Merge
* [MM-32794] Reporting Sub Section (#17035 )
* test
* revert
* add permissions
* add new permission stuff
* add store mock
* fix bad merge
* gofmt fix
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
* [MM-32343] Environment SubSection (#17054 )
* pre-checkout commit
* fix permission for testSiteURL
* pre-merge commit
* increase size of Permissions column in Roles table
* add entry for ENVIRONMENT to testlib/store.go
* use TEXT for Permissions column in Roles table
* use environment subsection permissions for API endpoints
* use subsections permissions for /config/environment
* add suggestions from hahmadia
* update tests to use subsection permissions
* add permissions column back in
* comment out code in upgradeDatabaseToVersion534
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com >
* MM-32351: Add Compliance Subsections (#17023 )
* add subsections for compliance sectin
* add to mock functions
* updates for read job
* fixes
* fix test
* update tests
* update tests
* another test fix
* some cleanup
* update mlog
* fix linting
* Fix bad merges
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
Co-authored-by: Hossein <hahmadia@users.noreply.github.com >
Co-authored-by: Hossein Ahmadian-Yazdi <hyazdi1997@gmail.com >
* MM-32347 Site Subsections (#17095 )
* Init
* Added migration key in testlib store
* Fix syntax error
* fix bad merge
* fix lint
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com >
* MM-32350 Integrations (#17097 )
* implement server subsections
* fix tests
* update test
* go fmt
Co-authored-by: Hossein Ahmadian-Yazdi <hyazdi1997@gmail.com >
* patch forgotten endpoints
* Adding subsection permissions for Authentication (#17087 )
* adding new permissions, migrations to do
* permission migrations and ancilary permissions
* running make app-layers
* fixing tests and lint
* adding permissions to saml
* ldap write permissions
* running make app-layers
* fixing conflict
* making app layers
* clean up and fix tests
* change job type
* fix js error, if site url not returned
Co-authored-by: Benjamin Cooke <benjamincooke@Benjamins-MacBook-Pro.local >
Co-authored-by: Hossein Ahmadian-Yazdi <hyazdi1997@gmail.com >
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com >
* Update permissions_migrations.go
* gofmt
* upgrade to 535
* gofmt
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
Co-authored-by: Max Erenberg <max.erenberg@mattermost.com >
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com >
Co-authored-by: Anurag Shivarathri <anurag6713@gmail.com >
Co-authored-by: Ben Cooke <benkcooke@gmail.com >
Co-authored-by: Benjamin Cooke <benjamincooke@Benjamins-MacBook-Pro.local >
2021-04-06 10:39:48 -04:00
Farhan Munshi
2af1bb7579
[MM-28536] [MM-28535] sysconsole_write_authentication bug fixes ( #15558 )
...
* MM-28536 User with write-auth should be able to use all saml related endpoints
* MM-28535 allow users with write auth to invalidate pending email invites
* Update api4/team_test.go
* No need for init basic
* Address review comments
* Fix test ordering
2020-09-24 11:26:11 -04:00
Doug Lauder
4ac0619c90
MM-22273 New auditing system (phase 1) ( #13967 )
...
* New auditing API outputting to syslog via TLS
* New config section for specifying remote syslog server IP, port, and cert.
* Legacy audit API retained for access history feature
2020-03-12 15:50:21 -04:00
Eli Yukelzon
17523fa5d9
MM-21898 - Part 1: Generate and use an interface instead of *A… ( #13840 )
...
* Generate and use an interface instead of *App
2020-02-13 13:26:58 +01:00
catalintomai
37ce413b7d
MM-20698: Add server support for getting SAML metadata and updating S… ( #13311 )
...
* MM-20698: Add server support for getting SAMl metadata and updating SAMl settings
2020-01-09 21:25:20 -08:00
Jesús Espino
a63684fcb5
Consistent license message for all the go files ( #13235 )
...
* Consistent license message for all the go files
* Fixing the last set of unconsistencies with the license headers
* Addressing PR review comments
* Fixing busy.go and busy_test.go license header
2019-11-29 12:59:40 +01:00
Miguel de la Cruz
2259b7f2a8
[MM-19948] Set version on module file and internal paths ( #13186 )
...
* [MM-19948] Set version on module file and internal paths
* Fixes after merge
* Fix i18n checker error
2019-11-28 14:39:38 +01:00
Christopher Speller
da265fbaf7
Moving app from singular to being created for every request ( #9889 )
...
* Moving app from singular to being created for every request.
* Automatic refactor
* Adding license header
* Feedback fixes
2018-11-28 10:56:21 -08:00
Chris
91bfc72a99
Reduce logging data races, fix MySQL test race condition ( #7994 )
...
* fix races
* revert unintentional change
* fix test as intended
2017-12-22 12:09:33 +00:00
Chris
ce2b2be5de
Refactoring cfg refs and load / save functions ( #7749 )
...
* refactoring cfg refs and load / save functions
* improve error output
2017-10-31 10:39:31 -04:00
Chris
7ed011745a
Remove more global refs / state ( #7723 )
...
* remove more global refs / state
* fix job enterprise initialization
* fix api4 test compilation
* saml api endpoints fix
2017-10-26 15:21:22 -04:00
Christopher Speller
4491b5ecdf
Performance improvements for 40M posts ( #7708 )
...
* Optimizing get root posts SQL query
* Setting session invalidation to be reliable
* Adding app reciever to SessionHasPermissionToUser
* Adding app reciever to SessionHasPermissionToTeam
* Adding app reciever to SessionHasPermissionTo
* Clear session cache if permission was denied
* Fixing rebase issues
* Revert "Optimizing get root posts SQL query"
This reverts commit f364757e7015cfb4ec673d0a4fc3d57cd25d8dd7.
* Fixing build
2017-10-25 11:48:15 -07:00
Chris
dcf9e96a0b
remove global refs from api/api4 ( #7496 )
2017-09-22 13:54:27 -04:00
Chris
ac74066f0e
remove einterface gets ( #7455 )
2017-09-19 18:31:35 -05:00
Christopher Speller
29fca51821
Renaming repo
2017-09-06 23:11:59 -07:00
Harrison Healey
fb6f2a123c
PLT-5860 Updated copyright date ( #6058 )
...
* PLT-5860 Updated copyright date in about modal
* PLT-5860 Updated copyright notice in JSX files
* PLT-5860 Updated copyright notice in go files
* Fixed misc copyright dates
* Fixed component snapshots
2017-04-12 08:27:57 -04:00
Joram Wilander
3559fb7959
Implement SAML endpoints for APIv4 ( #5671 )
...
* Implement SAML endpoints for APIv4
* Fix unit test
* Only disable encryption when removing puplic/private certs
2017-03-13 12:26:23 +00:00