-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add referrers.csv
to CSV export (#2624)
#3002
Conversation
hey @ukutaht , thanks for checking. What kind of tests you have in mind? currently what I see, there is a check that .zip file with all csv files created, but no test on separate files.. should I create the first one? |
BundleMonFiles updated (1)
Unchanged files (6)
Total files change +265B +0.03% Final result: ✅ View report in BundleMon website ➡️ |
There are a few tests for CSV exports in test/plausible_web/controllers/stats_controller_test.exs I've enabled CI on this PR and it shows that the existing tests are failing. I think extending the tests that are currently failing would provide good test coverage. |
Ah, I see. Will look into it, thanks! |
Hi @ukutaht can you please have a look again? I fixed failing tests, and also got a bit better understanding of the code 💪 |
hi @ukutaht, what are the next steps with this? |
@kiote hey 👋, sorry for the delay on that one. If you could rebase your PR I'm going to merge it. We'll also need Browser/OS versions in the export. Is that something you'd be interested in working on? I have some capacity the coming days so I'll be happy to assist. |
Hey I've made a merge with master, which as I realise afterwards was not exactly the same as rebase you wanted :D Also would be happy to continue with Browser/OS versions since I have some grasp in it already |
Excellent. thank you!
Awesome, looking forward to it! |
Looks like the merge didn't go as planned. Sorry for that, will try again soon |
ok seems like some renaming was made in master, now I followed it too in this PR. Should be better now! Could you please re-try the tests |
Nice, thank you. |
Changes
Added a new file: referrers.csv to statsController. That also required to create a new function in stats controller API (or, maybe I didn't realize how to re-use existing functions). Before only
referrer_drilldown
function was presented, which requires a particular referrer.Tests
Changelog
Documentation
Dark mode