Commit Graph

18 Commits (94bf7b04dde2a828737f5c4a59c3e6156ecdd886)

Author SHA1 Message Date
Brian Cao 8732d056dd
Dev (#1702)
* Initial Typescript models.

* Re-add realtime data

* get distinct sessions for session metrics

* Add queries for new schema.

* Fix Typo.

* Add some api/team endpoints.

* Fix destructure error.

* Fix getWebsites call.

* Ignore typescript build errors.

* Fix enum issue.

* add clickhouse route to deleteWebsite

* Fix Website auth.

* Updated lint-staged config.

* Add permission checks.

* Add user role api.

* Fix error when updating website.

* Fix isAdmin check.  Fix Schema.

* Initial conversion to react-basics.

* Remove user/team transfer from website update.

* delete website in relational query

* Fix login secure token creation.

* Add event type to event.

* Allow user to be added to team with role.

* Updated login form.

* Add Role to TeamUser.

* Add database migration.

* Refactored permissions check. Updated redis lib.

* Feat/um 114 roles and permissions (#1683)

* Auth checkpoint.

* Merge branch 'dev' into feat/um-114-roles-and-permissions

* Add 02 migration.

* Added lib/types.

* Updated schema.

* Updated roles and permissions logic.

* Implement react-basics styles. Fix queries.

* Update website details layout.

* Add 01 migration.

* Fix admin create.

* Update react-basics.

Co-authored-by: Francis Cao <franciscao@gmail.com>
Co-authored-by: Mike Cao <mike@mikecao.com>
Co-authored-by: Mike Cao <moocao@gmail.com>
2022-12-12 19:45:38 -08:00
Mike Cao 67732b9b5a Refactor authentication and token handling. 2022-11-08 22:58:52 -08:00
Mike Cao f118bc95c1 Refactored redis usage. Added lib/cache. 2022-11-07 22:35:51 -08:00
Mike Cao 3485b6268b Added rev_id column. Updated redis calls. 2022-11-07 16:22:49 -08:00
Brian Cao 17041efaae use uuid 2022-10-31 23:42:37 -07:00
Brian Cao 78338205a3
Feat/um 62 prisma property names (#1562)
* checkpoint

* fix pg schema

* fix mysql schema

* change property names
2022-10-10 13:42:18 -07:00
Brian Cao dcf16e1411 fix redis init 2022-10-06 16:41:37 -07:00
Mike Cao e442617421 Add connect methods to libraries. 2022-10-06 15:00:16 -07:00
Brian Cao 99914d6e98 Add retry connection to redis. Clean up up redis/session logic 2022-09-05 22:47:45 -07:00
Brian Cao 42bdfccdf4 Fix website get during collection/session check 2022-09-05 11:36:57 -07:00
Brian Cao afe6d8994b fix redis connection. fix delete account 2022-09-01 11:11:11 -07:00
Brian Cao d53b4a8895 roll back bigint. add loading 2022-08-30 00:03:22 -07:00
Brian Cao b6cd9f305b add db call as fallback 2022-08-29 13:04:58 -07:00
Brian Cao 9ddbd12060 re-add log 2022-08-29 10:47:31 -07:00
Brian Cao 48fe6ebcc5 configure redis 2022-08-29 10:47:01 -07:00
Mike Cao f4e0da481e Use next-basics package. 2022-08-28 20:20:54 -07:00
Mike Cao 467c7f289f Database refactoring. 2022-08-27 21:38:35 -07:00
Brian Cao 818f8721e9 redis checkpoint 2022-08-26 20:21:53 -07:00