-
Notifications
You must be signed in to change notification settings - Fork 57
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
Calls support #88
Calls support #88
Conversation
Handle Discord calls
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #88 +/- ##
==========================================
- Coverage 74.45% 72.07% -2.39%
==========================================
Files 56 60 +4
Lines 2302 2435 +133
Branches 485 509 +24
==========================================
+ Hits 1714 1755 +41
- Misses 539 621 +82
- Partials 49 59 +10
☔ View full report in Codecov by Sentry. |
⚡ Preview for this PR: https://pr-88.chat-analytics.pages.dev |
Couldn't wait heh! It's not ready yet! |
Oops 😙 |
Could you check it out again? Added a log that could be related with #85. |
Where? I don't see much 3pZ8e8eKU3.mp4 |
Try the one with calls 🤔 (in this PR https://pr-88.chat-analytics.pages.dev) The change was this: chat-analytics/pipeline/process/DatabaseBuilder.ts Lines 426 to 432 in 509e7f8
Hope it throws |
Yep, that's where I am already |
@Laiteux Does the same file works in the production app? (https://chatanalytics.app) |
It works, however I see no call stats at all, despite my JSON file containing |
Its not processing even one message, it can't find the channel information. Can you show me the start of the file? (scramble the sensitive information) It should look like this: {
"guild": {
"id": "253601524398293010",
"name": "DefleMask",
"iconUrl": "https://cdn.discordapp.com/icons/253601524398293010/a_801de7dbf6c4b24d8c2c0b576c36150a.png"
},
"channel": {
"id": "253601524398293010",
"type": "GuildTextChat",
"categoryId": "497802346320101387",
"category": "Chat",
"name": "general-chiptune",
"topic": "discuss chiptune stuff here"
},
"dateRange": {
"after": null,
"before": null
},
"messages": [...]
}
This PR is not merged in production yet! However if this PR breaks something that already works I can't merge |
{
"guild": {
"id": "0",
"name": "Direct Messages",
"iconUrl": "https://cdn.discordapp.com/embed/avatars/0.png"
},
"channel": {
"id": "REDACTED_STRING",
"type": "DirectTextChat",
"categoryId": null,
"category": "Private",
"name": "REDACTED_STRING",
"topic": null
},
"dateRange": {
"after": null,
"before": null
},
"exportedAt": "2023-08-04REDACTED_TIMEZONE",
My bad. High. |
I can't find any reason why it does not work. The format of your file is as expected. I tried replacing the start of a file of mine with yours and it works. Do you have any other file that breaks? Or this is the only one? (https://pr-88.chat-analytics.pages.dev) Relevant code is here: chat-analytics/pipeline/parse/parsers/DiscordParser.ts Lines 27 to 77 in 110ce1c
|
I don't use Discord myself very much. I sent you the file via email as it contains nothing too private. Mostly calls. |
I tried it in the production version (https://chatanalytics.app) and in the PR (https://pr-88.chat-analytics.pages.dev) and it works as expected 🙃 Can you try again? What browser and OS are you using? |
Weird. I did Ctrl+F5 before but maybe that wasn't enough. I'm on Windows, MS Edge. |
Ok, it worked on Firefox. Nice job (: |
Checking |
Numbers seem correct. Duration of calls March 2022: [3, 4, 5, 7, 39, 52, 64, 113, 301, 301, 566, 1353, 1367, 1766, 2445, 2755, 5699, 8188, 8462, 10042, 12084, 12571, 20271, 37159, 43354, 48706, 49557, 49590, 49741, 50340, 52195, 53363, 53620, 53695, 55755, 55896, 55986, 57040, 57166, 59029, 60268, 62407, 64909, 65958, 67007] sum = 1291199 ~= 14.94 days I made the "Time spent on" more accurate, now it spreads the duration between days , weeks and months (and not only at the start time) |
Indeed, nice. Thanks for checking too! (: |
gg |
Hopefully implement #76 😄