Skip to content
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

Merged
merged 8 commits into from
Aug 7, 2023
Merged

Add referrers.csv to CSV export (#2624) #3002

merged 8 commits into from
Aug 7, 2023

Conversation

kiote
Copy link
Contributor

@kiote kiote commented Jun 2, 2023

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

  • Automated tests have been added
  • This PR does not require tests

Changelog

  • Entry has been added to changelog
  • This PR does not make a user-facing change

Documentation

  • Docs have been updated
  • This change does not need a documentation update

Dark mode

  • The UI has been tested both in dark and light mode
  • This PR does not change the UI

@ukutaht
Copy link
Contributor

ukutaht commented Jun 5, 2023

Thanks @kiote!

I think this PR definitely needs tests to prevent regressions before we can review and approve. We have some existing tests for exported CSVs here.

@kiote
Copy link
Contributor Author

kiote commented Jun 5, 2023

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?

@bundlemon
Copy link

bundlemon bot commented Jun 8, 2023

BundleMon

Files updated (1)
Status Path Size Limits
static/js/dashboard.js
320.33KB (+265B +0.08%) -
Unchanged files (6)
Status Path Size Limits
static/css/app.css
492.34KB -
static/js/app.js
40.11KB -
static/js/embed.host.js
5.58KB -
static/js/embed.content.js
5.08KB -
tracker/js/plausible.js
742B -
static/js/applyTheme.js
314B -

Total files change +265B +0.03%

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

@ukutaht
Copy link
Contributor

ukutaht commented Jun 8, 2023

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.

@kiote
Copy link
Contributor Author

kiote commented Jun 8, 2023

Ah, I see. Will look into it, thanks!

@kiote
Copy link
Contributor Author

kiote commented Jun 9, 2023

Hi @ukutaht can you please have a look again? I fixed failing tests, and also got a bit better understanding of the code 💪

@kiote
Copy link
Contributor Author

kiote commented Jun 26, 2023

hi @ukutaht, what are the next steps with this?

@aerosol
Copy link
Member

aerosol commented Aug 2, 2023

@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.

@kiote
Copy link
Contributor Author

kiote commented Aug 3, 2023

Hey I've made a merge with master, which as I realise afterwards was not exactly the same as rebase you wanted :D
So what should I do now?

Also would be happy to continue with Browser/OS versions since I have some grasp in it already

@aerosol
Copy link
Member

aerosol commented Aug 6, 2023

Hey I've made a merge with master, which as I realise afterwards was not exactly the same as rebase you wanted :D
So what should I do now?

Excellent. thank you!
Same thing effectively, since we squash to master anyway :)

Also would be happy to continue with Browser/OS versions since I have some grasp in it already

Awesome, looking forward to it!

@aerosol
Copy link
Member

aerosol commented Aug 6, 2023

@kiote
Copy link
Contributor Author

kiote commented Aug 6, 2023

Looks like the merge didn't go as planned. Sorry for that, will try again soon

@kiote
Copy link
Contributor Author

kiote commented Aug 6, 2023

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

@aerosol aerosol merged commit 9e26ea2 into plausible:master Aug 7, 2023
6 checks passed
@aerosol
Copy link
Member

aerosol commented Aug 7, 2023

Nice, thank you.
Your next PR should kick off CI automatically I hope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants