Граф коммитов

6644 Коммитов

Автор SHA1 Сообщение Дата
Martin Schenck
24a2805456 PLT-2058 Debugging incoming web hook content (#3150)
* PLT-2058 Debugging incoming web hook content

This change debugs contents of incoming webhooks using l4g.

The problem is that in order to debug the request body, it neads to be
read. And a Reader can only be read once. Hence, the body is only read
for Debugging if it is actually enabled. Furthermore, a new reader is
created from the content of the old reader in order for the rest of the
method to work as usual (with or without debugging).

The debug statement is wrapped in a closure, so that the content is
only copied if Debug is actually enabled.

It is not possible to return `(string, string)` from the closure to
`l4g.Debug()`. That is the reason the debugging is not done with `=%v`,
but the translations strings end with a space.

I tested the change with a `application/json` HTTP header as well as
`payload=`

The debug method is extracted into util/log.go in order to be re-usable
for debugging `io.Reader`

* Added a config flag to turn off incoming webhook debugging

Setting `EnableWebhookDebugging` to false in the `config.json` will
disable the printing of the content of incoming webhooks to the console

* Defaulting webhook debugging to true

* Added the setting of debugging incoming webhooks to the system console
2016-06-10 09:59:24 -04:00
samogot
400bc8b46d Scrolling fixes (#3200)
* scrolling fixes:
- jumps on free scroll when somebody posts a new message (and old one disappears at top)
- jumps on closing RHS (no compensation of resize)
- scroll blinking on opening/closing RHS (delay before resize compensation)

* fix scroll slipping up on multiple open/close RHS in case when (this.refs.postlist.offsetHeight % Constants.SCROLL_PAGE_FRACTION === 0)
2016-06-10 09:59:13 -04:00
Anthony M. Powers
09536af5ad PLT-3156 Typo in 'Edit Nickname' message when nickname is set through login provider (#3204)
* Fixed a typo to an error message regarding editing an account field handled by a login provider. (PLT-3156)

* Added 'field_handled_externally' to the en language file.
Other languages are needed.
2016-06-10 09:59:05 -04:00
Thomas Balthazar
252d1c7e98 CLI: invite user by email - missing siteURL in email (#3297) 2016-06-10 07:59:20 -04:00
enahum
aa61ea0e44 daily translations 20160609 (#3305) 2016-06-10 07:58:42 -04:00
Kevyn Bruyere
afb4c2a805 Focus search text input when opening "Direct Messages" modal (#3231) 2016-06-10 00:36:04 -07:00
enahum
18c53e03eb PLT-3221 Remove async call to get posts when creating a comment and editing a post (#3300)
PLT-3203 Commenting on the RHS while in permalink view makes the message not show up in the RHS
2016-06-09 11:28:57 -07:00
Asaad Mahmood
f1eefd99e6 PLT-3094 - Fixing autocomplete and image modal scrolling on mobile (#3279) 2016-06-09 11:09:35 -07:00
Joram Wilander
f34a820a22 Correctly set defaults for all LDAPSettings in the config (#3301) 2016-06-09 12:08:02 -04:00
jasonblais
de907280a7 Add server restart note to LDAP sync setting (#3303)
* Add server restart note to LDAP sync setting

* Add server restart note to LDAP sync setting
2016-06-09 11:44:13 -04:00
enahum
6f490b49c2 PLT-3254 Javascript error and can't login with Spanish Client language (#3298) 2016-06-09 11:12:32 -04:00
enahum
eefde7d7b6 PLT-3236 Click in little x for admin console localization settings causes error (#3292) 2016-06-09 11:08:27 -04:00
enahum
1b2fd5af5e PLT-3257 Fix Team Statistics (#3290) 2016-06-09 11:08:20 -04:00
Asaad Mahmood
6a3e742e9b Fixing attachment in RHS root post for compact view (#3289)
* Fixing attachment in RHS root post for compact view

* Improving spacing for mentions
2016-06-09 11:08:14 -04:00
enahum
d52bd0f6dc daily translations 20160608 (#3296) 2016-06-09 09:18:51 -03:00
enahum
a3a774c5b4 daily translations 20160607 (#3288) 2016-06-07 19:26:35 -03:00
Joram Wilander
99dd271c06 Join team correctly when signing up with LDAP (#3287) 2016-06-07 18:16:32 -04:00
Harrison Healey
935e0cde8b Lock Javascript driver to 3.1 branch (#3277) 2016-06-07 17:43:56 -04:00
Harrison Healey
ce5f3aeee1 Changed default LocalizationSettings.AvailableLocales to include all locales (#3280) 2016-06-07 17:43:46 -04:00
enahum
3a6694cc6b PLT-3203 Commenting on the RHS while in permalink view makes the message not show up in the RHS (#3282) 2016-06-07 17:43:36 -04:00
Harrison Healey
bde4326458 Properly removed hashtags and at mentions inside of markdown links (#3283) 2016-06-07 17:43:19 -04:00
Joram Wilander
68c2b070da Auto join teams if coming from team sign-up page to login for GitLab (#3284) 2016-06-07 17:43:06 -04:00
Corey Hulen
52b5db3a0b PLT-3215 Moving custom branding in admin console (#3286) 2016-06-07 17:42:58 -04:00
Harrison Healey
ae1b0d3d29 Fixing test-markdown-lists.md (#3281) 2016-06-07 11:38:02 -04:00
Thomas Balthazar
1d31b0eca6 PLT-2406 Add "Database:" to Mattermost About Dialog (#3261)
* Add "Database:" to Mattermost About Dialog

The property has been named SQLDriverName to make a difference with the
FileSettings DriverName.

* Add missing string for 'Database' in i18n file
2016-06-07 08:21:09 -04:00
Harrison Healey
d9e8eb619a Removed deactivate method from User Settings tabs (#3271) 2016-06-07 08:20:58 -04:00
Mattermost Build
c3b3a36dc3 Bumping version to: 3.1.0-rc1 2016-06-06 21:57:07 +00:00
enahum
22245eee70 daily translations 20160606 (#3275) 2016-06-06 18:28:57 -03:00
lfbrock
4f11c36783 Update NOTICE.txt (#3274) 2016-06-06 17:21:51 -04:00
Joram Wilander
afdbe785d4 Up the max preference store listeners (#3273) 2016-06-06 16:33:29 -04:00
enahum
a3bdf448eb PLT-3163Commenting in the RHS while in permalink view (#3272) 2016-06-06 15:49:13 -04:00
lfbrock
f864e9adf1 Update test-links.md (#3270) 2016-06-06 15:37:49 -04:00
enahum
65f51c7bc4 PLT-3056 Fix Unable to type quickly in post textbox in IE11 (#3249) 2016-06-06 14:54:02 -04:00
Joram Wilander
c0d1b8fbb9 System messages trigger notifications when user is mentioned (#3235) 2016-06-06 14:29:10 -04:00
David Lu
eabd67e4cb Removed placeholder text on channel switch modal (#3262) 2016-06-06 14:06:14 -04:00
David Lu
edc0e00037 Removed ESC (#3268) 2016-06-06 14:05:50 -04:00
David Lu
ea99cedb62 PLT-3185 Added support for DMs in Channel Switcher (#3260)
* Added support for DMs

* Checked username beginning characters
2016-06-06 13:54:23 -04:00
David Lu
26ec73d5d2 Added error when both session and local storage are unusable (#3263) 2016-06-06 13:52:57 -04:00
Joram Wilander
1e245f19c7 PLT-3114 Moved preview collapse out of pre-release features (#3206)
* Added user setting to auto collapse image previews

* Added slash commands for collapsing/expanding image previews

* Added translation strings for collapse setting

* Add default props for preview collapse setting
2016-06-06 10:41:54 -07:00
Joram Wilander
629b49a119 Remove data source replica from system console UI (#3267) 2016-06-06 13:04:02 -04:00
Harrison Healey
384d0eb245 PLT-2559 Always return successful when trying to join a channel that the user is already a member of (#3265)
* Added unit tests for SqlChannelStore.GetMember

* Fixed api routes for accessing channels by name when the name includes an underscore

* Changed join channel API to always return successful when the user is already a member of the channel
2016-06-06 13:03:56 -04:00
David Lu
2c42294bbc PLT-3101 Added message history (#3205)
* Added message history

* Minor logical changes

* Fixed indexes resetting

* Fixed double messages

* Fixed resetting main history when RHS opened
2016-06-06 13:01:35 -04:00
Joram Wilander
96e8fc165f Updating help text on channel switcher (#3256) 2016-06-06 13:00:49 -04:00
David Lu
6516188907 Fixed (#3264) 2016-06-06 12:59:03 -04:00
David Lu
ba8aafddf4 Fixed typo (#3266) 2016-06-06 12:27:53 -04:00
Christopher Speller
9110e64c25 Removing outdated ldap note from system console (#3247) 2016-06-06 10:26:43 -04:00
jasonblais
5748295d3b Update help text for localization settings (#3252)
* Update help text for localization settings

* Add to en.json
2016-06-06 09:48:39 -04:00
enahum
6cee1f87f2 PLT-2990 Clicking on a desktop notification from another team opens the team (#3253) 2016-06-06 09:46:09 -04:00
enahum
6ab893dcba PLT-2939 Fix Default slash command icon is invalid (#3250) 2016-06-06 08:59:19 -04:00
Asaad Mahmood
353216e05c PLT-3182 - Improving switch channels modal and some minor UI improvements (#3238)
* PLT-3182 - Improving switch channels modal and some minor UI improvements

Enabling link previews

Adding compact layout to RHS

Improving timestamps

* Adding update code for RHS components
2016-06-06 08:46:03 -04:00