gliff-ai / store

gliff.ai STORE – django application running gliff.ai’s main API and passing to the etebase API
https://gliff.ai
1 stars 0 forks source link

feat: Add new projects field to database #159

Closed Kinukeo closed 3 years ago

Kinukeo commented 3 years ago

Description

Added a new projects field to the database in order to use this for the business insights dashboard.

Migrations (if applicable)

Have any database migrations been committed as part of this pull request? Yes

Checklist:

cooper667 commented 3 years ago

Can this not just be inferred by counting a users collections?

ChasNelson1990 commented 3 years ago

It will indeed be based on counting their collections. The next PR will be a scheduled task, like Silvia's, to update this field every 24 hours. We need the data to be in the BI replicant of the DB for the dashboard?

cooper667 commented 3 years ago

Why not just use SQL to select that value rather than store it ourselves?

ChasNelson1990 commented 3 years ago

Why not just use SQL to select that value rather than store it ourselves?

So just count the rows in Django Etebase Collection for each Owner ID? I presume Etebase's Owner ID matches our Team Owner ID?

ChasNelson1990 commented 3 years ago

Closed as discussed at #techteam