Commit Graph

1239 Commits

Author SHA1 Message Date
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
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
Joram Wilander
2a753949f1 Implement POST /users/search endpoint for APIv4 (#5822)
* Implement POST /users/search endpoint for APIv4

* PLT-2713 Added store functions for searching users that don't have a team

* PLT-2713 Added 'without_team' option when searching users

* PLT-2713 Added 'without_team' option when searching users (v4)
2017-03-23 10:34:22 +00:00
Josta Yee
e86add77ad Add http_proxy support for http client (#5571)
- if 'http_proxy' environment variable is set, respect it when creating http client
- otherwise initialize a http client with timeout settings

Add ogjson to cache even when it fails

in this way we can prevent from requesting unparsable urls repeatedly

Extend expire time of cached link preview data to a week

There's no need to invalidate cache and send request again frequently

Revert timeout

Revert cache_expire_time
2017-03-20 10:20:42 -03:00
George Goldberg
7f266c1951 Merge branch 'release-3.7' into master. 2017-03-17 16:29:26 +00:00
Joram Wilander
0bc3e46082 Implement GET /logs endpoint for APIv4 (#5778) 2017-03-16 11:59:44 -07:00
George Goldberg
91d430b2a3 Fix policy application in team edition. (#5771) 2017-03-15 19:32:02 +00:00
Christopher Speller
7a7b293113 Moving HTTP request counter to the start of ServeHTTP so count time is not effected by request duration. (#5764) 2017-03-14 14:56:35 -04:00
Joram Wilander
ad0ed008fe Implement brand image endpoints for APIv4 (#5733)
* Implement brand image endpoints for APIv4

* Fix unit test
2017-03-14 09:35:48 -04:00
Joram Wilander
3ebfb36953 Implement compliance endpoints for APIv4 (#5683)
* Implement compliance endpoints for APIv4

* Add paging to get reports endpoint
2017-03-13 10:14:16 -04:00
Joram Wilander
e9c6cc269b Move command logic into app layer (#5617) 2017-03-13 09:23:16 -04:00
Joram Wilander
1860d05d62 Implement GET /users/autocomplete endpoint for APIv4 (#5742) 2017-03-13 12:29:41 +00: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
Gabin Aureche
fe38d6d5bb Add pinned posts (#4217) 2017-03-13 12:25:08 +00:00
Carlos Tadeu Panato Junior
11f1859de1 improvements for inbucket email test and re-enable Email mention test (#5647)
Now if we dont get the mailbox to check the email we try 5 times, if
still no message we disable the email verification.
2017-03-11 19:39:00 -03:00
Saturnino Abril
d32334cdfb Endpoint for APIv4: /files/{file_id}/link (#5607)
* APIv4: /files/{file_id}/link

* updated public link
2017-03-11 19:24:44 -03:00
Harrison Healey
a8e68bd890 PLT-5765 Passed SiteURL to SendNotifications (#5705) 2017-03-10 10:18:18 +00:00
Joram Wilander
83291e4c8f Merge 3.7 changes into master (#5679)
* Save schema version for 3.7 (#5675)

* Adding index and cache to reactinos store (#5654)

* Fix badge count for push notifications (#5672)
2017-03-07 16:05:01 -05:00
Christopher Speller
33b8b72a02 Adding index and cache to reactinos store (#5654) 2017-03-07 09:37:00 -05:00
Joram Wilander
e87f5c6cf9 Add system console switch for enabling link previews (#5663) 2017-03-06 21:13:12 -05:00
enahum
fd56b8f36b enable saml for RN app (#5635)
* enable saml for RN app

* remove unnecessary user sanitize
2017-03-06 09:14:44 -05:00
Joram Wilander
e739a91c94 Fix JS error when receiving reply during channel switch (#5582) 2017-03-03 12:25:32 -05:00
Joram Wilander
2e911b77c3 Usernames must start with a letter (#5581) 2017-03-03 12:04:15 -05:00
Joram Wilander
3a91d4e5e4 PLT-3077 Add group messaging (#5489)
* Implement server changes for group messaging

* Majority of client-side implementation

* Some server updates

* Added new React multiselect component

* Fix style issues

* Add custom renderer for options

* Fix model test

* Update ENTER functionality for multiselect control

* Remove buttons from multiselect UI control

* Updating group messaging UI (#5524)

* Move filter controls up a component level

* Scroll with arrow keys

* Updating mobile layout for multiselect (#5534)

* Fix race condition when backspacing quickly

* Hidden or new GMs show up for regular messages

* Add overriding of number remaining text

* Add UI filtering for team if config setting set

* Add icon to channel switcher and class prop to status icon

* Minor updates per feedback

* Improving group messaging UI (#5563)

* UX changes per feedback

* Update email for group messages

* UI fixes for group messaging (#5587)

* Fix missing localization string

* Add maximum users message when adding members to GM

* Fix input clearing on Android

* Updating group messaging UI (#5603)

* Updating UI for group messaging (#5604)
2017-03-02 17:48:56 -05:00
George Goldberg
f4aebed220 PLT-5355: Fix permalink to private/direct channels. (#5574)
Appropriate permission checks depend on the type of channel this
permalink links to.
2017-03-02 09:08:00 -05:00
Harry Moreno
187bb31bb7 Update emoji_test.go (#5589)
fix typo
2017-03-01 13:57:11 -05:00
Joram Wilander
5e9adddb6f Reload license from DB for all cluster app servers (#5525)
* Reload license from DB for all cluster app servers

* Increase test timeout
2017-02-28 16:39:25 -05:00
Joram Wilander
76fa840b52 Move webhook logic from api layer to app layer (#5527)
* Move webhook logic from api layer to app layer

* Consolidate error messages

* Fix permission check and unit test
2017-02-28 09:31:53 +00:00
Christopher Speller
83c113595a Revert "Adding caching to get channel member (#5518)"
This reverts commit ba028ed74b.
2017-02-27 17:43:23 -05:00
Poornima
19b753467d Adding edit of incoming webhook (#5272)
Adding edit of outgoing webhook
Fixing spelling of error
Fixing style
Changing from PUT to POST for updates
Fixing test failures due to merge
2017-02-26 13:48:20 -05:00
Poornima
c0bb6f99f8 Updating user attributes on oauth login (#5324)
Moving update function to app package
Fixing duplicate userID on create user test
2017-02-26 13:48:01 -05:00
Christopher Speller
ba028ed74b Adding caching to get channel member (#5518) 2017-02-24 09:15:36 -05:00
enahum
748a416961 PLT-3193 Add channel notification preferences for push and email noti… (#5500)
* PLT-3193 Add channel notification preferences for push and email notifications

* unit tests, model validation and localization

* Feedback review

* Adding back allowFromCache check

* Setting push and email to use default settings

* Move props as constants

* address feedback
2017-02-23 11:08:48 -03:00
Corey Hulen
ca7d3b6e7b Adding device Id for version 2 of native apps (#5505)
* Adding device Id for version 2

* Changing ids
2017-02-23 08:53:43 -05:00
Joram Wilander
9f65284ba1 Fix response for malformed command execute request (#5498) 2017-02-22 21:32:39 -05:00
Corey Hulen
c7bf42218e Fixing emoji reactions and Aurora read replica issue for master (#5499) 2017-02-22 10:48:47 -05:00
Joram Wilander
69cac604e0 Implement create and get incoming webhook endpoints for APIv4 (#5407)
* Implement POST /hooks/incoming endpoint for APIv4

* Implement GET /hooks/incoming endpoint for APIv4

* Updates per feedback
2017-02-21 19:42:34 -05:00
George Goldberg
8bbe5dfb2f Fix permission grants for channel management. (#5478)
When selecting the Channel, Team & System level for channel permissions,
they must be explicitly granted to the Channel *and* the Team admins.
2017-02-21 10:47:28 -05:00
Corey Hulen
274b9b6032 Fixing file info caching issue with Aurora for master (#5477) 2017-02-20 13:40:32 -05:00
Joram Wilander
dd4d8440ea Implement a few channel member endpoints for APIv4 (#5444)
* Implement POST /channels/members/{user_id}/view endpoint for APIv4

* Implement PUT /channels/{channel_id}/members/{user_id}/roles endpoint for APIv4

* Implement DELETE /channels/{channel_id}/members/{user_id} endpoint for APIv4
2017-02-20 13:31:52 -03:00
Joram Wilander
91fe8bb2c0 Implement upload and get file endpoints for APIv4 (#5396)
* Implement POST /files endpoint for APIv4

* Implement GET /files/{file_id} endpoint for APIv4
2017-02-17 10:31:21 -05:00
Corey Hulen
01a8114aa3 Adding emoji caching (#5433) 2017-02-15 19:25:33 -05:00
Corey Hulen
1d6ea40022 Adding caching to profile images to master (#5428)
* Adding caching to profile images

* Fixing break

* Adding back in failed read

* Fixing build break

* Fixing break
2017-02-15 18:54:41 -05:00
Joram Wilander
db2966b7cb Remove MakeDirectChannelVisible and add client handling for showing DMs (#5430) 2017-02-15 18:54:24 -05:00
enahum
daf7a15d3b APIv3 append offset and limit to getProfiles etag (#5421)
* APIv3 append offset and limit to getProfiles etag

* add separator between offset and limit
2017-02-15 14:36:10 -03:00
Corey Hulen
2e0cf56e86 Fixing websocket auth then sending challenge (#5406) 2017-02-14 17:25:40 -05:00
Corey Hulen
0a21eed004 Disabling email mention test (#5381) 2017-02-13 11:36:18 -05:00
Joram Wilander
e4effd0c15 Implement some post endpoints for APIv4 (#5353)
* Implement POST /posts endpoint for APIv4

* Implement GET /channels/{channel_id}/posts endpoint for APIv4

* Implement GET /posts/{post_id} endpoint for APIv4

* Implement GET /posts/{post_id}/thread endpoint for APIv4

* Skip team get if it's a DM channel in handlePostEvents
2017-02-13 10:52:50 -05:00