Commit Graph

8201 Commits

Author SHA1 Message Date
prixone
8b868828bf PLT 6125 Allow system admins to create users on closed servers (#5908)
* Update user.go

Added method to create user accounts using a privileged system_admin account

* Update user.go

Added respective method to handle the the APIv4 call to create users with privileged account(system_admin) by passing server restrictions of EnableUserCreation and/or EnableOpenServer set to false.

* Update user_test.go

Added test case
2017-03-29 21:05:32 -04:00
doh5
8d36a1e96a Add ID to System Console in the LHS Header Dropdown (#5900)
* Add ID to System Console in the LHS Header Dropdown

Under TEsting

* Update sidebar_header_dropdown.jsx

* Update sidebar_header_dropdown.jsx
2017-03-29 17:37:03 -04:00
Saturnino Abril
8a31718db1 APIv4 get /channels/{channel_id}/pinned (#5893) 2017-03-29 08:09:05 -07:00
George Goldberg
64f80decaf PLT-6057: Fix empty search results with in/from. (#5892)
When search query was empty but in/from was set, search results didn't
include posts containing hashtags.
2017-03-29 08:08:36 -07:00
Joram Wilander
8dde651ded Remove user from list when selected in DM modal (#5884) 2017-03-29 08:07:10 -07:00
Saturnino Abril
2f15523fe8 APIv4 put /posts/{post_id}/patch (#5883)
* APIv4 put /posts/{post_id}/patch

* Add props and edit permission
2017-03-29 08:06:51 -07:00
Ryan Wang
31830ffc7b Add extra check before rendering emojis (#5879) 2017-03-29 09:43:08 -04:00
Joram Wilander
060b9f92c3 Remove API endpoints being deprecated in 3.8 (#5880) 2017-03-28 08:07:15 -04:00
Joram Wilander
daca0d93f6 Move WebSocket API to it's own package and add websocket v4 endpoint (#5881) 2017-03-28 09:58:19 +01:00
Corey Hulen
ca8b8d1245 Fixing cancel ids for selenium (#5896)
* Fixing ids for selenium

* Fixing ids

* Fixing prop
2017-03-27 18:12:24 -07:00
Harrison Healey
022627f940 Disabled problematic unit test (#5891) 2017-03-27 13:13:30 -07:00
Joram Wilander
58397f853a Implement some MFA endpoints for APIv4 (#5864) 2017-03-27 09:21:48 -04:00
Joram Wilander
a0d5c01dfd Implement client config/license endpoints for APIv4 (#5867) 2017-03-27 09:19:53 -04:00
Joram Wilander
d145c35838 Implement PUT /users/sessions/device endpoint for APIv4 (#5866) 2017-03-27 09:17:34 -04:00
Asaad Mahmood
84dc60a640 PLT-5868 - Redesigning compact view (#5821)
* PLT-5868 - Redesigning compact view

* Improvements to compact view

* Updating compact view

* Updating webhook styles
2017-03-27 09:16:08 -04:00
George Goldberg
b489a5bb01 PLT-5904 (Server): Config flag for SMTP Cert Check. (#5857) 2017-03-27 08:43:27 -03:00
Saturnino Abril
01aaccb340 APIv4 post /channels/ids (#5845)
* APIv4 post /channels/ids

* updated enpoint as /teams/{team_id}/channels/ids
2017-03-27 08:41:40 -03:00
George Goldberg
720ee81113 PLT-6063: AddUserToTeam permission depends on policy. (#5869)
Uses same policy setting as InviteUserToTeam.
2017-03-26 09:37:39 -04:00
enahum
230556f0f7 PLT-6046 remove webrtc from tests (#5872) 2017-03-26 09:37:18 -04:00
Joram Wilander
ea74613444 Implement some team endpoints for APIv4 (#5870)
* Implement GET /users/{user_id}/teams/members endpoint for APIv4

* Implement DELETE /teams/{team_id}/members/{user_id} endpoint for APIv4
2017-03-25 03:38:24 -03:00
Corey Hulen
54d3d47daf PLT-6076 Adding viper libs for config file changes (#5871)
* Adding viper libs for config file changes

* Removing the old fsnotify lib

* updating some missing libs
2017-03-25 03:31:34 -03:00
Corey Hulen
7460302dec Fixing ids for selenium (#5874) 2017-03-24 19:28:35 -07:00
Ari Autio
9cfa733178 PLT-5281 error messages contain a link to documentation about reserved words (#5530)
* PLT-5281 error messages contain a link to documentation about reserved words

* Updated comments per PM review

* Proposed fix to review comments
2017-03-24 17:10:40 -04:00
Joram Wilander
4dc03613b4 Check if LHS DM list needs updating on channel switch and channel members fetch (#5861) 2017-03-24 13:46:39 -07:00
Joram Wilander
69fb47b88b Add query parameters to get posts v4 endpoint (#5858)
* Add since query paremeter to get posts v4 endpoint

* Add query paremeters for before/after to get posts v4 endpoint
2017-03-24 13:46:11 -07:00
Joram Wilander
28a78d7607 Implement some channel endpoints for APIv4 (#5846)
* Add v4 endpoint for getting the channels on a team for a user

* Implement PUT /channels/{channel_id}/patch endpoint for APIv4

* Implement POST /teams/{team_id}/channels/search endpoint for APIv4

* Update permission check
2017-03-24 13:45:34 -07:00
George Goldberg
22715a31ed PLT-5879: User email notification settings disabling. (#5837)
When Email Notifications are turned off server wide, don't allow the
user to configure their email notification preferences.
2017-03-24 13:43:09 -07:00
George Goldberg
2c0c71d460 PLT-5910: Fix Channel header menu in Town Square. (#5831) 2017-03-24 13:42:37 -07:00
George Goldberg
92a1878708 PLT-5907: Fix Create Channel in More Channels dialog. (#5830) 2017-03-24 13:42:22 -07:00
Joram Wilander
11b7aa859c Implement POST /users/email/verify/send endpoint for APIv4 (#5825) 2017-03-24 13:42:05 -07:00
Joram Wilander
a2f78d01bd Fix LHS group message sorting (#5812) 2017-03-24 13:41:45 -07:00
Carlos Tadeu Panato Junior
5bf6ae04df [APIV4] GET /users/{user_id}/status - user status endpoint for apiV4 (#5824) 2017-03-24 17:23:32 +00:00
bonespiked
28ad645153 Ticket 4665 - Emoji Picker (#5157)
*  #4665  Added EmojiPicker

Work primarily by @broernr-de and @harrison on pre-release.mattermost.com

* Final fixes to handle custom emojis from internal review and single merge error

* ESLint fixes

* CSS changes and other code to support emoji picker in reply window

* Fix for file upload and emoji picker icon positions on post and comment.

RHS emoji picker appearing see-through at this time.

* Fix for two ESLint issues.

* covered most of feedback:
RHS emoji picker looks correct color-wise
RHS emoji picker dynamically positions against height of thread size (post + reply messages)
escape closes emoji window
search box focused on open

ESLint fixes against other files
oversized emoji preview fixes

* Adding in 'outside click' eventing to dismiss the emoji window

* Changing some formatting to fix mismatch between my local eslant rules and jenkins.

* adding alternative import method due to downstream testing errors

* yet another attempt to retain functionality and pass tests - skipping import of browser store

* fix for feedback items 5 and 7:
* move search to float on top with stylistic changes
* whitespace in the header (+1 squashed commit)
Squashed commits:
[6a26d32] changes that address items
1, 2, 6, 8, and 9 of latest feedback

* Fix for attachment preview location on mobile

* Fix for latest rounds of feedback

* fixing eslint issue

* making emojipicker sprite based, fixing alignments

* Fix for emoji quality, fixing some behavior (hover background and cursor settings)
undoing config changes

* Preview feature for emojis

* Adjustments to config file, and changing layout/design of attachment and emoji icon.

* manual revert from master branch for config.json

* reverting paperclip and fixing alignments.  Additionally fixing inadvertent display of picker on mobile.

* CSS changes to try to fix the hover behavior - currently working for emoji picker (when enabled), but hover for attachment isn't working

* Made suggested changes by jwilander except for jQuery removal

* Adding hover for both icons

* removal of some usages of jQuery

* Fix for two layout issues on IE11/Edge

* UI improvements for emoji picker

* Fix for many minor display issues

* fix for additional appearance items

* fix to two minor UI items

* A little extra padding for IE11

* fix for IE11 scroll issue, and removing align attribute on img tag which was throwing js error

* fixes some display issues on firefox

* fix for uneven sides of emojis

* fix for eslint issues that I didn't introduce

* fix for missing bottom edge of RHS emojipicker.  also fixing text overlapping icons on text area (including RHS)

* Update "emoji selector" to "emoji picker"

* changes for code review
- removal of ..getDOMNode
- use sprite imagery for emoji preview
- remove lastBlurAt from state as it wasn't used

* fixes for:
- fake custom emoji preview in picker
- RHS scrollbar on preview

* fix for minor alignment of preview emoji
2017-03-24 09:09:51 -04:00
Saturnino Abril
d0af931e6e APIv4 put /teams/{team_id}/patch (#5860) 2017-03-24 08:17:46 -04:00
Ryan Wang
4c1eb7ff55 Update default town square purpose (#5810) 2017-03-24 09:17:01 +00:00
VeraLyu
3ea091fd6d Add file attachment to search result (#5806) 2017-03-24 09:14:27 +00:00
Saturnino Abril
f1274a7ec2 Endpoint for APIv4 POST /teams/{team_id}/members (#5804) 2017-03-24 09:13:27 +00:00
Saturnino Abril
1167b39185 Fixed mobile search focus - keyboard collapse/focus (#5766) 2017-03-24 09:05:43 +00:00
Corey Hulen
98baf1536e Fixing issue with ids for selenium (#5859)
* Fixing issue with ids for selenium

* removing comment
2017-03-23 19:41:08 -07:00
Carlos Tadeu Panato Junior
6935e2d5ea implement POST /commands for apiv4 (#5849) 2017-03-23 19:42:32 -04:00
Joram Wilander
42c3ea64a9 Fix delete channel test (#5863) 2017-03-23 15:37:39 -07:00
Corey Hulen
37c41a26c9 Adding a last message id for selenium testing (#5840) 2017-03-23 19:11:15 +00:00
George Goldberg
7d449e0556 PLT-5755: Infrastructure for Component Testing. (#5814)
This migrates the existing webapp tests to using Jest and Enzyme. The
infrastructure is put in place for React component testing, and a few
simple example component tests are implemented.

This also adds snapshot testing of components, coverage checking for the
webapp (although that is not yet integrated to Coveralls), and the
ability to run npm run test:watch to automatically re-run affected tests
when working on the webapp codebase.
2017-03-23 14:05:36 -04:00
George Goldberg
c6ded1dbfd Merge branch 'release-3.7' 2017-03-23 17:38:24 +00:00
Brad Howes
120f5a6f8a Websocket CORS Support (#5667)
* Second attept at patching api/websocket.go for CORS support.

* Missing include

* Fixed whitespace formatting so that gofmt passes.

* Added tests for CORS filtering
2017-03-23 09:10:52 -04:00
Carlos Tadeu Panato Junior
34cb70d005 add implementation for endpoint DELETE outgoing webhook for apiv4 (#5828) 2017-03-23 12:50:06 +00:00
VeraLyu
94b4aa082c PLT-5913: Remove id from heading markdown compilation (#5782)
Id for heading markdown is unnecessary as we didn't
attach any style/effect on that id, and it also introduce
duplicate id. So remove it from heading markdown generatiing.
2017-03-23 08:19:22 -04:00
Christopher Speller
efcf78a4f3 Fxing TODO check (#5836) 2017-03-23 11:10:16 +00:00
Carlos Tadeu Panato Junior
78e5b803cc add implementation to get outgoing webhook for apiv4 (#5827) 2017-03-23 11:02:42 +00:00
VeraLyu
0326177253 PLT-5669: Change format of timestamp of access history (#5646)
Add new line for timestamp and forbid wrap for ip and sessionid of access history to
prevent unnecessary line wrap.
2017-03-23 10:39:15 +00:00