focalboard
focalboard copied to clipboard
[MM-43781] Feature: boards insights
Summary
This PR introduces 2 endpoints to get boards insights.
/users/<user-id>/boards/insights?duration<time>
/teams/<team-id>/boards/insights?duration=<time>
time
can be of the format
- 1 day
- 3 minute
- 2 year
Ticket Link
JIRA: https://mattermost.atlassian.net/browse/MM-43781
Hello @plant99,
Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.
@plant99 can you share any requirement doc for this? That'll help in the review.
Added 2 comments for now as I haven't gone through the entire PR yet. Will review this again.
@harshilsharma63 https://github.com/mkraft/suite-users/blob/main/tech-specs/activity-and-insights-widgets/top-boards.md this is a brief design doc.
I'm still working on two things.
- https://github.com/mattermost/focalboard/pull/3005/files#diff-b9c5dee0af94791cf10c365cac0a7b054a4cc0d3e10b329fe9a4942d42f590c0 there are more cases to be added here, and they'd be made stricter with more
assert
statements. - https://github.com/mattermost/focalboard/pull/3005/files#diff-4c7fcc4f7fcc084199c81be767b488432860acc05e6d5d29bdb1dadf66064b52R127 tests for the new utility functions in
sqlstore_test.go
While I'll come back to this PR, @mkraft and @jespino please look at the one against release-7.0
. I've tried to fix things there based on the feedback I got here.
Thanks for the review @mkraft , the queries are written with squirrel fully now. Addressed other concerns as well.
Let me know if/when this is ready for review.
@wiggin77 it is now ready for review.
/update-branch
/update-branch
@BenCookie95 could you please update the plugin frontend if necessary? similar to this commit
Let's merge that commit into this PR.
@plant99 sorry for the delay. I'll be reviewing this today.
/update-branch
I understand that we had to rush this because of 7.2 deadline, but if there are any other improvements you'd like to see in the merged code, please feel free to create tickets and assign it to me. Thanks for all your reviews.