1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-12-24 13:43:12 +02:00
focalboard/server/services/store/sqlstore
Shivashis Padhi f00b5c9e61
[MM-43781] Feature: boards insights (#3005)
* Add boilerplate functions and handlers for boards insights

* Fix function signatures to add 'duration' parameter, fix where clauses in db queries

* Fix where clause to include boards of which userId in parameter is a member

* Modify queries to work with sqlite, postgres, mysql

* Integration tests, and results of make generate

* Lint Fixes

* Add icons to board insights

* Lint fixes

* Format insights queries without squirrel to fix parameterization issues

* Add tests for sqlstore utility functions

* Improve team insights tests by creating 2 boards

* Refactor endpoints/app to adhere to developments in 7.0 release

* Refactor queries to use squirrel

* Lint fixes

* Fix client, integration tests

* Remove old integration tests

* Add storetests, refactor functions to handle authorized board_ids

* Make queries compatible with mysql, sqlite

* Add app tests

* Fix lint errors

* Revert makefile changes, fix docstring in api

* Lint fixes and doc correction suggested by @wiggin77

* Fix mock store call count error

* adding client code

* Make the following changes

 - use serviceAPI to get user.Timezone
 - rename licenseAndGuestUserCheck to insightPermissionGate, and handle returned error better
 - validate page, perPage parameters aren't < 0

* Lint fix

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Benjamin Cooke <benjamincooke@Benjamins-MacBook-Pro.local>
2022-08-08 11:42:02 +05:30
..
migrations Add the creator of the board as a administrator of the board if it still belongs to the channel (#3454) 2022-07-28 18:45:00 +02:00
blocks.go don't copy 'comment' blocks (#3267) 2022-06-22 15:57:27 -06:00
board_insights.go [MM-43781] Feature: boards insights (#3005) 2022-08-08 11:42:02 +05:30
board.go Refactor websockets state and lifecycle (#3315) 2022-07-14 12:31:51 +02:00
boards_and_blocks.go don't copy 'comment' blocks (#3267) 2022-06-22 15:57:27 -06:00
category_boards.go Updated update category-board mapping method to not rely on DB returning affected rows (#2840) 2022-04-20 09:21:53 -06:00
category.go Standardize err not found (#2834) 2022-04-20 11:02:12 -04:00
cloud.go Adds limits implementation to the server (#3213) 2022-06-15 12:17:44 +02:00
data_migrations_test.go Permissions feature branch (#2578) 2022-03-22 08:24:34 -06:00
data_migrations.go Move category creation and UUID update to a more performant data migration (#3437) 2022-07-27 23:21:19 +02:00
data_retention.go Implement Boards Data Retention - Take 2 (#2859) 2022-04-25 12:58:08 -06:00
file.go Forward-porting fileinfo limits (#3164) 2022-06-13 13:35:42 +05:30
helpers_test.go Permissions feature branch (#2578) 2022-03-22 08:24:34 -06:00
legacy_blocks.go fix postgres SQL for legacyBoardFields (#3111) 2022-05-26 18:11:53 -04:00
migrate_test.go Fix MySQL migration connection when the DSN doesn't contain any query parameters (#557) 2021-06-11 11:18:11 +02:00
migrate.go Adds more loglines to the database migrations and fixes some inconsistencies (#3392) 2022-07-22 15:58:52 +02:00
notificationhints.go Standardize err not found (#2834) 2022-04-20 11:02:12 -04:00
params.go Multi product architecture (#3381) 2022-07-18 13:21:57 -04:00
public_methods.go [MM-43781] Feature: boards insights (#3005) 2022-08-08 11:42:02 +05:30
session.go Adds a generator that wraps store methods with transactions and migrates implementations to use transactions (#1440) 2021-10-22 12:48:53 +02:00
sharing.go Permissions feature branch (#2578) 2022-03-22 08:24:34 -06:00
sqlstore_test.go [MM-43781] Feature: boards insights (#3005) 2022-08-08 11:42:02 +05:30
sqlstore.go [MM-43781] Feature: boards insights (#3005) 2022-08-08 11:42:02 +05:30
subscriptions.go Standardize err not found (#2834) 2022-04-20 11:02:12 -04:00
system.go Standardize err not found (#2834) 2022-04-20 11:02:12 -04:00
team.go Permissions feature branch (#2578) 2022-03-22 08:24:34 -06:00
templates.go GH-2745 Don't init default templates when unit testing (#2748) 2022-04-08 13:46:16 +02:00
user.go [MM-43781] Feature: boards insights (#3005) 2022-08-08 11:42:02 +05:30
util.go Adds limits implementation to the server (#3213) 2022-06-15 12:17:44 +02:00