-
Notifications
You must be signed in to change notification settings - Fork 2
refactor(UI-1536): update copying and download output logs #1200
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
refactor(UI-1536): update copying and download output logs #1200
Conversation
Please keep the rate limit in mind. Currently, clicking "Download" triggers multiple requests with pageSize: 50, which could potentially hit the rate limit if there are many session logs. That said, @mario99logic is expected to complete the new endpoint in the next few days, which will allow us to fetch all session logs in a single request (without using nextPageToken). Once that's available, rate limiting will no longer be a concern, so it might be worth waiting a few days before proceeding. |
The "fetch all session logs" endpoint is ready: autokitteh/autokitteh@8364e3f Let's bring this across the finish line! |
added |
const url = URL.createObjectURL(blob); | ||
const link = document.createElement("a"); | ||
link.href = url; | ||
link.download = `session-${sessionId}-logs.txt`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you change the format of the name of the file to: <YY-MM-DD_HH-mm>_<sessionID>.log
Example: 25-05-28_14-37_ses_01jwbdv9mzffkb2dgv0j9r0mc6.log
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed
6e339a6
to
75e3517
Compare
addd100
to
cc117ea
Compare
🎉 This PR is included in version 2.198.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Description
Copy should copy local state (zustand) - don't fetch all
Download should download all -txt - wait for endpoint, 1 request: all logs
Linear Ticket
https://linear.app/autokitteh/issue/UI-1536/session-outputs
What type of PR is this? (check all applicable)