Commit Graph

9132 Commits

Author SHA1 Message Date
Chris
c4e32060be fix svg thumbnails and non-png copy/pastes (#7348) 2017-09-05 13:13:03 -04:00
Harrison Healey
575864c917 PLT-7474 Stopped requiring confirmation for mentions in code blocks (#7375)
* PLT-7474 Stopped requiring confirmation for mentions in code blocks

* Stopped mentioning people from code blocks using ~~~
2017-09-06 00:39:07 +08:00
Saturnino Abril
daed8ffbf6 fix email notifications settings appearing save despite cancel (#7359) 2017-09-05 23:13:39 +08:00
Corey Hulen
d6383643cb PLT-6226 fixing race in IsAuth (#7296)
* Fixing race in isAuth function

* PLT-6226 fixing race in IsAuth

* Moving int64 to top so it's aligned

* Adding comment and fixing asymmetric call
2017-09-05 07:58:47 -07:00
Corey Hulen
7843dc3cfa Fixing leader election (#7267) 2017-09-05 07:58:30 -07:00
enahum
44e58bd100 translations PR 20170904 (#7371) 2017-09-05 10:33:03 -03:00
George Goldberg
6569c76779 Add status codes to model/config.go errors. (#7369) 2017-09-05 13:54:05 +01:00
Joram Wilander
4c522155da Temporarily place plugins into E20 (#7370) 2017-09-05 11:35:07 +01:00
George Goldberg
ba2868775d PLT-7216: CLI Command to move channels between teams. (#7149)
* PLT-7216: CLI Command to move channels between teams.

* Add comment
2017-09-04 18:54:24 +01:00
George Goldberg
1e78ff831e Fix elasticsearch purge index url in client4. (#7368) 2017-09-05 01:45:45 +08:00
George Goldberg
3c717b514d Add error codes to SqlChannelStore errors. (#7364) 2017-09-04 23:37:13 +08:00
Harrison Healey
98bb4c31a1 PLT-7473 Ignore text surrounded by multiple backquotes when parsing mentions (#7347) 2017-09-04 21:31:20 +08:00
Harrison Healey
c8d51b6465 Fixed code blocks causing minor scroll pop on first load (#7288) 2017-09-04 21:31:01 +08:00
Yusuke Nemoto
a1af7033b2 Remove duplicated message (#7360) 2017-09-04 13:42:50 +01:00
George Goldberg
ce5d81582a Revert "[PLT-7471] Slight modifications to keyboards dialog (#7325)" (#7363)
This reverts commit 967a0df0f8.
2017-09-04 11:01:25 +01:00
Corey Hulen
9c1f6c9fd5 PLT-7497 adding DMs to complinace export (#7353) 2017-09-04 10:49:40 +01:00
Harrison Healey
670bfbf626 PLT-7518 Added unit tests for channel linking (#7352)
* PLT-7518 Added unit tests for channel linking

* Removed unused escaping function
2017-09-04 10:48:17 +01:00
Chris
8391ef6288 PLT-7521: improve regex pattern (#7345)
* PLT-7521: improve regex pattern

* style fix
2017-09-04 10:45:37 +01:00
Saturnino Abril
6a10941cb3 [PLT-6996] On "About Mattermost", add notes with links to notice.txt which has list of copyrights of open source components used (#7315)
* on "About Mattermost", add notes with links to notice.txt which has list of copyrights of open source components used

* remove apps from link

* Minor UI update
2017-09-04 04:13:46 +08:00
Saturnino Abril
967a0df0f8 [PLT-7471] Slight modifications to keyboards dialog (#7325)
* slight modifications to keyboards dialog

* Updating shortcuts modal
2017-09-04 04:12:38 +08:00
Saturnino Abril
94c9138c19 [PLT-7385] Add AuthData to IsUniqueConstraintError to indicate duplicated email entry (#7197)
* add AuthData to IsUniqueConstraintError to indicate duplicated email entry

* add unique constraint for postgres
2017-09-02 05:59:01 +08:00
Chris
196cdbe9d1 only highlight relevant fields on ldap/email switch error (#7339) 2017-09-02 05:57:57 +08:00
Joram Wilander
e2042c4b65 Add built-in plugin for getting LDAP attributes (#7317) 2017-09-01 14:28:15 -04:00
David Meza
b6456a675d Add x to be able to leave public and private channels (#7145)
* Add config value EnableXToLeaveChannelsFromLHS that if true displays x to the right of private and public channels on the LHS.

* Displays x to the right of private and public channels on the LHS based on if EnableXToLeaveChannelsFromLHS=true.

* change the tooltip for private and public channels to `Leave channel`

* Add client-side event for when user clicks the "x" button. Different for public, private, DM.
2017-09-01 14:21:09 -04:00
Christopher Brown
df94be8f37 [PLT-7055] Modified code arrangement for compatibility with 32-bit ARM (#7281)
Squashed commit of the following:

commit ba8e052d40f27123fbb5a94e9b30c05f51b90d36
Author: Christopher Brown <ccbrown112@gmail.com>
Date:   Fri Sep 1 12:08:57 2017 -0500

    style fixes

commit 121649f92f313813d9f105ddffb7d02ce5d3736f
Author: Syakyr Surani <coding@syakyr.me>
Date:   Sat Aug 26 10:19:14 2017 +0800

    Added comments for ARM/x86 (32-bit) compatibility

commit 4bd13dd0e378cd4866bd5aed762f2b4fb75d7de9
Author: Syakyr Surani <coding@syakyr.me>
Date:   Sat Aug 26 05:20:43 2017 +0800

    Added comments for ARM/x86 (32-bit) compatibility

commit 78027f616ab736076cef0b1fd8b3266b3c3010dc
Author: Syakyr Surani <coding@syakyr.me>
Date:   Thu Aug 24 03:01:06 2017 +0800

    [PLT-7055] Modified code arrangement for compatibility with 32-bit ARM
2017-09-01 12:09:35 -05:00
Eric Sethna
48763a00b9 [PLT-7043] Update LDAP > Email help text (#7313)
* update help text

* Update ldap_to_email.jsx

* Update LDAP > email text
2017-09-01 13:03:38 -04:00
George Goldberg
77f0f2289c PLT-7515: Fix getAllJobsPage test. (#7329) 2017-09-01 11:42:49 -04:00
George Goldberg
e85b5fb988 App: NewLocAppError -> NewAppError (#7327)
* App: NewLocAppError -> NewAppError

* Remove statuscode that got missed.
2017-09-01 11:42:02 -04:00
Joram Wilander
d9ec7d9240 Fix rename command error message (#7323) 2017-09-01 11:22:34 -04:00
George Goldberg
75c63344de Api: NewLocAppError -> NewAppError (#7280) 2017-09-01 09:58:43 -04:00
Jason Blais
718da3593b Update NOTICE.txt (#7321) 2017-09-01 09:54:36 -04:00
David Meza
3c52801193 Config to make town square read only (#7140)
* Be able to make Town Square read-only (Disable typing messages for non admins).

* Do not emit UserTypingEvent when TownSquareIsReadOnly and is Town Square.

* Add unit tests for TownSquareIsReadOnly config value and logic.

* Add TownSquareIsReadOnly to System console>Policy. Added Telemetry.

* Add control for TownSquareIsReadOnly=true only for License Enterprise Edition E10 & E20.

* Update en.json

* Update en.json

* Update policy_settings.jsx

* Change config value from TownSquareIsReadOnly to ExperimentalTownSquareIsReadOnly.

* Refactored to simplify. Avoid code repeat and multiple db calls.
2017-09-01 09:53:55 -04:00
Jason Blais
baa992a559 PLT-7496 Add missing telemetry for a few config settings (#7318)
* Update diagnostics.go

* Fix
2017-09-01 09:52:28 -04:00
Joram Wilander
899ab31fff Implement experimental REST API endpoints for plugins (#7279)
* Implement experimental REST API endpoints for plugins

* Updates per feedback and rebase

* Update tests

* Further updates

* Update extraction of plugins

* Use OS temp dir for plugins instead of search path

* Fail extraction on paths that attempt to traverse upward

* Update pluginenv ActivePlugins()
2017-09-01 09:00:27 -04:00
Jonathan
74b5e52c4e PLT-3893: Structured Logging Continues (#7252)
* PLT-3893: Imported logger work from https://github.com/MusikPolice/platform

* PLT-3893: Integrated logger with system config

* PLT-3893: Integrated Mattermost config with logging solution, modified log message serialization so entire message is serialized as a JSON object

* PLT-3893: Added support for format strings in Debug methods. Added an overload that does not require a Context object for cases when one isn't available

* PLT-3893: Added context and format string support to debug and error methods

* PLT-3893: A few updates from pull request feedback

* PLT-3893: Changed tests to use testify

* Fixed TestAddRemoveConfigListener to no longer assume that there are zero config listeners when the test begins, since other tests could add config listeners

* Updated TestGetDeletedChannelsForTeam so that it doesn't assume state when it begins

* PLT-3893: Changed File property of log message so that it's relative to /mattermost directory, rather than to wherever the user is running the application from on their machine

* Flipped expected/actual assert arguments, added an explicit test for getCallerFilename(...), since it's failing on Jenkins

* Added printlns to debug failing tests on Jenkins

* Relaxed test cases to avoid failure on Jenkins caused by code coverage calculations. Removed printlns.

* Changed the way that caller filename is determined to make it more robust, updated tests to make them more lax, while not choking on the strange paths that Jenkins uses.

* Fixed gofmt issues

* Added debug output to tests to diagnose Jenkins build failures

* Still trying to get some useful debug logging on Jenkins

* Changed getCallerFilename to handle the strange paths that runtime.Caller(...) returns on Jenkins

* Fixing checkstyle issues
2017-08-31 15:59:03 -04:00
George Goldberg
000d7aad3d PLT-7448: Searching submits multiple API requests. (#7334)
This fixes all the main cases where duplicate search API requests were
issued.
2017-08-31 15:55:31 +01:00
George Goldberg
63b10be020 APIv4: NewLocAppError -> NewAppError (#7328) 2017-08-31 10:03:16 -04:00
Joram Wilander
b37e17c032 Fix setting profile image for other users (#7306) 2017-08-31 08:57:35 -04:00
Joram Wilander
e3b145236d Update mattermost-redux to latest (#7333) 2017-08-31 08:55:45 -04:00
Saturnino Abril
f364f3023a sort compliance report (#7326) 2017-08-31 08:21:20 -04:00
Joram Wilander
5d74857b68 Add minimum channel name length in rename modal (#7308) 2017-08-31 10:42:57 +01:00
Saturnino Abril
f34cd567a6 [PLT-5170] Add join the channel system message for the person who created the channel (#7299)
* add join the channel system message for the person who created the channel

* update test
2017-08-30 16:29:32 -04:00
Jonathan
bb2ca558bb PLT-7220: Jumping to a GM from a flagged messages doesn't add the GM to your LHS (#7319)
* Ensured that DM/GM channel is added to LHS when jump link is clicked in RHS

* Moved sidebar channel loading logic into global_actions so that it happens after the users' channels have been loaded

* Fixing checkstyle issues
2017-08-30 16:26:36 -04:00
Asaad Mahmood
9e3b74b4ef Minor bug fixes (#7305)
* PLT-7063 - Changing search bar bg and color

* PLT-7064 - Adjusting info popover styling

* PLT-7124 - Fixing sidebar with webrtc call ongoing

* PLT-7400 - Fixing semi transparent options list

* PLT-7491 - Showing send button on mobile
2017-08-30 16:19:15 -04:00
Jonathan
4660127fd0 PLT-7206: Remove the "Delete Channel" option for private channels if you're the last channel member and policy setting restricts channel deletion (#7314)
* Removed restriction that prevented last occupant of a channel from leaving. Any user can now leave any channel, except for the default Town Square channel

* Also removed last user leave limitation from navbar
2017-08-30 14:25:19 -04:00
Saturnino Abril
651dd33b29 set to default value with config is missing (#7320) 2017-08-30 13:54:16 -04:00
Jonathan
4c1f467442 PLT-7379: Timestamp on deleted, ephemeral, or pending post is a permalink (#7295)
* Removed permalink from system messages, general cleanup

* Removed permalink from deleted messages

* Removed permalink from pending messages

* Fixed post_info tests

* Changed permalink logic to remove permalinks from ephemeral messages, but leave them in place for system messages.

* Fixed check style
2017-08-30 20:06:29 +08:00
Chris
213a072b38 PLT-6403: Interactive messages (#7274)
* wip

* finish first pass

* requested changes

* add DoPostAction to Client4
2017-08-29 16:14:59 -05:00
Joram Wilander
59798c1375 Fix permalink loading for non-loaded posts (#7310) 2017-08-29 13:13:03 -04:00
Jonathan
f1d1ce4e7e Show loading message if a team has been selected, in addition to showing it while loading the list of available teams. (#7307) 2017-08-29 10:48:19 -04:00