-
Notifications
You must be signed in to change notification settings - Fork 795
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[🕹️] Filter document analytics by link and views #1228
Comments
/assign |
Assigned to @RajuGangitla! Please open a draft PR linking this issue within 48h |
@RajuGangitla, please open a draft PR linking this issue within 12 hours. If we can't detect a PR in 12 hours, you will be unassigned automatically. |
@mfts im trying to setup the tiny bbird database and it added bunch of files am i doing anything wrong |
@RajuGangitla Yes that's adding all the python files. You don't need to commit them. Did you open open a python shell with pipenv? |
@RajuGangitla If you have pipenv install on your computer, then inside the repo directory, you can call |
@mfts Its still throwing Error: invalid authentication token. Workspace not found, make sure you use the token host https://api.us-east.tinybird.co screen-capture.23.mp4 |
In tinybird when you create the account and token, you need to add the pipe to the token permissions. You do that inside the tinybird dashboard |
Yes. But to solve this issue you probably need to create a new pipe as well that fits this criteria |
hey @RajuGangitla , if you are not working on this, may I take this forward? |
@DeepaPrasanna I'm working on this one |
@RajuGangitla let me know if you need help :) |
@mfts even I have added tinybird token it's still saying invalid authentication token do you have any idea |
@mfts I'm interested to work on this one But I didn't understand why I'm getting invalid authentication token for tinybird token
I added tinybird token in env |
What side quest or challenge are you solving?
In each document, we have aggregated document analytics and in order to better understand the analytics, we want to filter it.
Considerations
Please use url query params or the url query framework
nuqs
for controlling the state in the url for each filter. This way we always know what we are filtering on.We already have some functions and pipes in Tinybird that retrieve the relevant data for a set of viewIds
papermark/lib/tinybird/pipes.ts
Lines 64 to 73 in 832b432
and the corresponding Tinybird pipe:
https://github.com/mfts/papermark/blob/832b432e234b52f1c42d29f5afa92ff9db48256b/lib/tinybird/endpoints/get_document_duration_per_viewer.pipe
Inspiration:
I'm thinking about google flight search where the
airlines
filter has a toggle for all, only one, or checkbox to (de)select multiple airlinesPlease only serious PRs. This will likely take some experimenting, you need to create a tinybird account in order to fully test the implementation yourself.
Points
1500 Points
Provide proof that you've completed the task
Open a PR with working code to the solution, detailed explanation what you did and ideally a video of the working solution.
The text was updated successfully, but these errors were encountered: