Christopher Speller
91b9514aaf
Adding Posts table indexes for 20M rows. ( #7728 )
2017-10-27 09:02:16 -04:00
Chris
6f6005c617
Store mocks ( #7724 )
...
* store mocks
* add example
2017-10-26 11:36:54 -05:00
Carlos Tadeu Panato Junior
ab7e5b35d8
[PLT-7364] Ability to Direct Message yourself ( #7696 )
...
* [PLT-7364] Ability to Direct Message yourself
* [PLT-7364] add tests
2017-10-26 09:45:26 -04:00
Chris
5dd4466ab3
add missing license headers, test to makefile ( #7711 )
2017-10-25 09:33:19 -07:00
George Goldberg
5474cff0eb
PLT-7934: Make query for bulk elasticsearch indexing more efficient. ( #7664 )
2017-10-25 13:23:01 +01:00
Chris
fd6192473b
refactor max users per team ( #7691 )
2017-10-20 20:34:07 -04:00
Chris
d39a722a81
refactor max channels per team enforcement ( #7690 )
2017-10-20 20:33:20 -04:00
Nick Frazier
7fa4913f90
[PLT-7794] Add user access token enable/disable endpoints ( #7630 )
...
* Add column to UserAccessTokens table
* PLT-7794 Add user access token enable/disable endpoints
* replaced eliminated global variable
* updates to user_access_token_store and upgrade.go
* style fix and cleanup
2017-10-19 08:10:29 -04:00
Chris
917e4789c2
Use tmpfs containers for api/api4 tests, move and speed up CLI tests ( #7606 )
...
* use tmpfs containers for api/api4, move and speed up cli tests
* minor optimizations
* add missing files, fix pre-existing race condition
* add . to TestMain check
* add requested log message
2017-10-12 12:24:54 -07:00
Saturnino Abril
521e27f4ac
[PLT-7764] Fix in:channel search when channel name/displayname includes - ( #7603 )
...
* fix in:channel search when channel name/displayname includes `-`
* fix failing test in PostgreSQL
* add lowercase indexes of channel's name and displayname to postgresql, and add unit tests
2017-10-11 17:20:27 +08:00
Chris
bff2b5e735
Miscellaneous app cleanup ( #7594 )
...
* app cleanup
* whoops, forgot a file
* some minor cleanup
* longer container deadline
* defensive checks
2017-10-09 14:59:48 -07:00
Chris
0f66b6e726
store/sqlstore cleanup and postgres tests ( #7595 )
...
* sqlstore cleanup / postgres tests
* remove stopped containers
* cmd/platform compile fix
* remove test-postgres target from makefile
2017-10-09 13:16:14 -04:00
Chris
70e5f00241
store/storetest package ( #7588 )
...
* prerequisites
* storetest package
2017-10-06 11:08:59 -07:00
Chris
6097e3f02b
fix GetPostsByIds error ( #7591 )
2017-10-06 12:18:26 -04:00
Chris
363568b4eb
reduce store boiler plate ( #7585 )
2017-10-06 11:12:10 -04:00
Chris
12501673d0
post-4.3 commit ( #7581 )
2017-10-05 14:50:49 -04:00
Chris
da368539e3
4.3 pre-cut ( #7569 )
...
* 4.3 pre-cut
* fix
2017-10-04 13:10:16 -07:00
Chris
07777f5ff9
Fix races / finally remove global app for good ( #7570 )
...
* finally remove global app for good
* test compilation fixes
* fix races
* fix deadlock
* wake up write pump so it doesn't take forever to clean up
2017-10-04 13:09:41 -07:00
Jonathan
dc9b1a1d6a
Parameterized post ids to avoid possible sql injection ( #7575 )
2017-10-04 12:54:42 -07:00
George Goldberg
f3fc6d11fa
PLT-7218: CLI to move slash commands between teams. ( #7574 )
2017-10-04 11:08:59 -07:00
George Goldberg
078467ee96
PLT-7759: Make GetNewestJobByStatusAndType not fail when no jobs match. ( #7540 )
2017-10-02 09:15:51 -04:00
Joram Wilander
8b9dbb8613
PLT-7404 Return viewed at times in view channel API response ( #7428 )
...
* Return viewed at times in view channel API response
* Updated transaction to read and write once
* Remove transaction and only update if new value greater than older
2017-09-29 08:45:59 -07:00
George Goldberg
a06830b2f8
PLT-7644: Improve job scheduler architecture. ( #7532 )
2017-09-28 09:11:13 -07:00
George Goldberg
8d662105d3
PLT-7207: Change from fulltext to LIKE search for user filtering ( #7343 )
...
* PLT-7202: Switch user search to LIKE queries to avoid fulltext pitfalls.
* Add 2 char name unit test.
* Escape underscores properly.
* Add more tests and fix * handling.
* Make search/indexes case insensitive for postgres.
2017-09-27 18:44:22 +01:00
Chris
49fe5fbf3d
Move sql store code into store/sqlstore package ( #7502 )
...
* move sql store code into store/sqlstore package
* move non-sql constants back up to store
* fix api test
* derp
2017-09-25 10:11:25 -04:00
George Goldberg
e0d5703f72
PLT-7619: Cleanup flags in data retention. ( #7501 )
2017-09-22 13:23:16 -04:00
Chris
266ff86702
remove more global refs ( #7480 )
2017-09-21 10:13:34 +01:00
George Goldberg
c3916bb530
Add error codes to the remaining stores (Part 1). ( #7461 )
2017-09-20 09:34:50 -04:00
Chris
e7e10d36a9
interactive post update fix ( #7477 )
2017-09-19 17:05:20 -04:00
George Goldberg
3811b1ce1e
Add error codes to oauth/post/preference store errors. ( #7460 )
2017-09-19 17:24:52 +08:00
George Goldberg
61d0078e0a
Add error codes to the remaining stores (Part 2). ( #7462 )
2017-09-18 13:31:31 -04:00
George Goldberg
29e917486a
Add error codes to user and webhook store errors. ( #7459 )
2017-09-18 17:40:56 +01:00
George Goldberg
8195c80aa1
PLT-7639: Batch delete methods for data retention. ( #7444 )
2017-09-15 09:35:55 -07:00
Chris
b6fb98a431
remove more global references ( #7442 )
2017-09-14 13:01:44 -04:00
Joram Wilander
ed1363e1bf
Fix update SQL query to include refresh token ( #7425 )
2017-09-14 11:48:48 -04:00
Corey Hulen
1569702930
PLT-7556 fixing postgres issue with compliance for master ( #7414 )
2017-09-12 17:53:06 -07:00
Christopher Speller
29fca51821
Renaming repo
2017-09-06 23:11:59 -07:00
Chris
2205f6d074
add commented 4.3 upgrade func ( #7388 )
2017-09-06 17:47:52 -05:00
Chris
1adfd0e9be
app type transition ( #7167 )
2017-09-06 17:12:54 -05:00
Joram Wilander
66a4d01125
Update IsUniqueConstraint to check error codes instead of message text ( #7385 )
2017-09-06 14:00:56 -04:00
Chris
90da40b54c
pre 4.2 cut ( #7380 )
2017-09-05 19:29:26 -05:00
George Goldberg
3c717b514d
Add error codes to SqlChannelStore errors. ( #7364 )
2017-09-04 23:37:13 +08:00
Corey Hulen
9c1f6c9fd5
PLT-7497 adding DMs to complinace export ( #7353 )
2017-09-04 10:49:40 +01: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
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
George Goldberg
77f0f2289c
PLT-7515: Fix getAllJobsPage test. ( #7329 )
2017-09-01 11:42:49 -04:00
Saturnino Abril
651dd33b29
set to default value with config is missing ( #7320 )
2017-08-30 13:54:16 -04:00
George Goldberg
50fc6e1e9e
PLT-???? Prepare file upload infrastructure for Data Retention. ( #7266 )
...
* Prepare file upload infrastructure for Data Retention.
This commit prepares the file upload infrastructure for the data
retention feature that is under construction. Changes are:
* Move file management code to utils to allow access to it from jobs.
* From now on, store all file uploads in a top level folder which is the
date of the day on which they were uploaded.
This commit is based on Harrison Healey's branch, but updated to work
with the latest master.
* Use NewAppError
2017-08-25 10:38:13 -04:00
Saturnino Abril
f6e0310b50
[PLT-7390] Add Type = 'O' in getting open teams at sql store ( #7207 )
...
* add Type = 'O' in getting open teams at sql store
* updated PR
2017-08-24 00:19:15 +08:00
Corey Hulen
b0e367b192
Fixing race in update channel ( #7269 )
...
* Fixing race in update channel
* Switching to struct copy
2017-08-22 10:20:54 -07:00