Skip to content

feat: add referer to visits model #19

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

Merged
merged 1 commit into from
May 8, 2025
Merged

Conversation

a-chacon
Copy link
Owner

@a-chacon a-chacon commented May 8, 2025

No description provided.

@a-chacon a-chacon linked an issue May 8, 2025 that may be closed by this pull request
@a-chacon a-chacon force-pushed the 18-add-referrer-information branch 2 times, most recently from 7643ca4 to 9fa9a77 Compare May 8, 2025 12:51
Copy link

@johannesschobel johannesschobel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a comment on code here, but depends on your own style :)
otherwise i like it - thank you very much for adding the feature!

IpCrawlerJob.perform_later(visit)
visit
end
return false if skip_bot_visit?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did like the earlier version better, having 3 method-calls is quite cumbersome in this case, i guess.

cant we just do

return false if skip_bot_visit?

visit = Visit.create(...)
IpCrawlerJob.perform_later(visit)
return visit

i guess, that would be easier to read (i.e., not that many functions).

@a-chacon a-chacon force-pushed the 18-add-referrer-information branch from 9fa9a77 to 770a5b3 Compare May 8, 2025 18:03
@a-chacon a-chacon force-pushed the 18-add-referrer-information branch from 770a5b3 to a2759c4 Compare May 8, 2025 18:10
@a-chacon a-chacon merged commit 84782f9 into main May 8, 2025
5 checks passed
@a-chacon a-chacon deleted the 18-add-referrer-information branch May 8, 2025 18:11
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.

Add Referrer Information
2 participants