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

17 Коммитов

Автор SHA1 Сообщение Дата
Rodrigo Villablanca
32b7d2b5f1 StatusStore migration (#14978)
* Finished!

* Typos

* Fix error

* Fix layers

* Lint: remove unnecessary use of sprint

* Fix shadowing err
2020-08-13 11:12:08 +05:30
Mario de Frutos Dieguez
c9cdeba1a7 Move StatusStore.GetByIds away from gorp (#14685)
We're removing the usage of gorp in some of the most used
queries in our system. This is one of them
2020-05-29 11:36:41 +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
Jesús Espino
bce11b7949 Removing unnused store methods (#11725) 2019-07-30 09:35:28 +02:00
Micah Thompson
7180002df8 [MM-16522] Migrate "Status.UpdateLastActivityAt" to Sync by default (#11444)
* [MM-16522] Migrate "Status.UpdateLastActivityAt" to Sync by default

* Remove unused import
2019-07-03 08:35:39 -04:00
Luke P
d0906a0c85 [MM-16517] Migrate "Status.Get" to Sync by default (#11367)
* Test

* Revert "Test"

This reverts commit 2bbf335ee93ae7cd1dfeea4c805efcafeec8dae5.

* Fixed typo in Makefile, line 564: 'persistent' misspelled

* Fixed return of status_store.Get to return model.Status and model.AppError, removed connections to result var in same method, generated new mocks and fixed tests.

* Fixed status_store.go under /sqlstore and /storetest in addition to removing personal comments

* SQL Indentation fix for consistency

* Revert merge change to store.go for SaveOrUpdate to avoid error introduced by merge

* Changed StoreChannel back to *model.Apperror for SaveOrUpdate in store.go, fixed resulting error in storetest/status_store.go so it did not have conflicting types. Fixed spelling errors in same file

* Test for status, err changed according to recommendation upon second look

* Changed status variable on line 77 to blank identifier to stop it from shadowing line 24 declaration

* It appears last statement in test was using 'status' variable where status is model.STATUS_ONLINE instead of model.STATUS_OFFLINE like status3, making comparison always be 'online != offline', which is always true, proceeding into if statement, guaranteeing test failure

* Build fails consistently when line 75 has 'status' in if statement due to shadowing issue due to existing declaration Jenkins complains about in line 24. If this fails then new variable will be necessary

* Renamed parameter to avoid overshadowing issue

* Undid code addition mistake in storetest/status_store.go and updated line 29 accordingly to account for multiple values.

* Remove status3 as used in line 71 in status_store.go.

* Undid change in storetest/status_store.go on line 67 which checked for wrong thing
2019-07-01 07:44:26 -04:00
SezalAgrawal
a86b204105 [MM-16520] Migrate "Status.ResetAll" to Sync by default (#11424)
* Updated ResetAll function to return object

* Modified the defined interface

* Changed the data type where ResetAll was referrenced

* Refactored code

Changed user's email

* Fixed indentation
2019-06-28 10:32:57 +01:00
Deepak Sah
9bab407f26 [MM-16519] Migrate Status.GetOnlineAway to Sync by default (#11410)
* Made changes to status_store.go store/store.go

* Modified test file and updated mocks
2019-06-26 10:44:37 -04:00
Sheshagiri Rao Mallipedhi
1f6aedcdf3 Migrate "Status.GetByIds" to Sync by default (#11364)
* Migrate Status.GetByIds to Sync by default

* gofmt the files
2019-06-26 01:49:57 -04:00
Alex Sahin
30d572000a MM-16521 Migrate "Status.GetTotalActiveUsersCount" to Sync by default (#11401)
* initial code

* remove repeated var declaration
2019-06-25 12:34:28 -04:00
Tarik Eshaq
453f28c05d Migrate Status.GetAllFromTeam method to Sync (#11362)
* Migrate Status.GetAllFromTeam method to Sync

* remove redundant else statement in GetAllFromTeam
2019-06-24 19:01:45 +02:00
Sheshagiri Rao Mallipedhi
cca41427a4 Migrate Status.SaveOrUpdate to Sync by default (#11359)
* Migrate Status.SaveOrUpdate to Sync by default

* address pr comments
2019-06-24 12:03:29 +02:00
Rodrigo Villablanca Vásquez
0199cef145 Migrates Status.GetOnline to sync by default (#11351)
* Status.GetOnline to sync by default

* Removed else sentence
2019-06-24 10:02:50 +02: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