Agniva De Sarker
3124b81229
MM-27040: Fix flaky tests due to same UpdateAt timestamp ( #15216 )
...
* MM-27040: Fix flaky tests due to same UpdateAt timestamp
Update queries are not guaranteed to always update the row.
Since we are only bumping the UpdateAt timestamps, if 2 update
requests hit concurrently within the same millisecond, then one
is bound to fail.
We fix all cases in the codebase where we were updating the UpdateAt
field to not check for count != 1, but rather count > 1.
A similar fix was already done in 3f46cf6f60 .
* Remove incorrect test
2020-08-11 21:03:23 +05:30
Rodrigo Villablanca
93a537a636
OAuthStore migration ( #15013 )
...
Automatic Merge
2020-07-17 12:56:08 +02:00
Jesús Espino
2a5d30f8f3
Making private some sqlstore methods ( #13895 )
...
* Making private some sqlstore methods
* Calling for create indexes on missing stores
Co-authored-by: mattermod <mattermod@users.noreply.github.com >
2020-03-03 11:45:49 +01:00
Jesús Espino
a63684fcb5
Consistent license message for all the go files ( #13235 )
...
* Consistent license message for all the go files
* Fixing the last set of unconsistencies with the license headers
* Addressing PR review comments
* Fixing busy.go and busy_test.go license header
2019-11-29 12:59:40 +01:00
Miguel de la Cruz
2259b7f2a8
[MM-19948] Set version on module file and internal paths ( #13186 )
...
* [MM-19948] Set version on module file and internal paths
* Fixes after merge
* Fix i18n checker error
2019-11-28 14:39:38 +01:00
Guillermo Vayá
b664291f21
[Mm-7854] [Backend] Add an endpoint to revoke sessions from all users ( #11200 )
...
* first steps towards revoke all sessions endpoint
* route added
* change permission into a more restrictive one
* fix url
* add store code
* testing & mocking
* fixing what merge broke
* remove sessions without retrieving them
* flush sessions from cache
* stop going through sessions to revoke caches, not needed anymore
* add test, fix func name
* fix tests
* remove unneeded code
* [MM-7854]remove access tokens, move to users
* fix docstring
* [MM-7854] improve readability by using require
* [MM-7854] fix tests
* [MM-7854]fix comment
* [MM-7854]improve testing logic
2019-07-01 22:28:46 +01:00
Jesús Espino
e3504398c7
Migrate OAuth store to sync by default ( #11319 )
...
* Migrate OAuth store to sync by default
* Removing unnecesary return oldValue for updateApp in Oauth Store
2019-06-21 18:21:18 +02:00
κουκουλοφόρος
5b24c44e19
Add missing transaction rollbacks for SQL store ( #9964 )
...
* Add missing transaction rollbacks for SQL store
* Add `defer transaction.Rollback()` in SQL stores.
* abstract finalizeTransaction
2019-02-23 11:44:52 -08:00
JoramWilander
840892ab88
Increase OAuth2 state parameter limit
2018-02-07 16:21:22 -05: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
363568b4eb
reduce store boiler plate ( #7585 )
2017-10-06 11:12:10 -04: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