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

feat: use geoip info for display #13745

Merged
merged 2 commits into from
May 25, 2023

Conversation

miketheman
Copy link
Member

@miketheman miketheman commented May 24, 2023

Implementation of pulling the GeoIP info off Event.additional

@miketheman miketheman force-pushed the miketheman/location-info branch 2 times, most recently from 1a054ce to 99d80c0 Compare May 25, 2023 14:52
Basic implementation of pulling the GeoIP info off `Event.additional`

Needs test cases, as well as refining the display order of values.

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
Signed-off-by: Mike Fiedler <miketheman@gmail.com>
@miketheman miketheman marked this pull request as ready for review May 25, 2023 14:56
@miketheman miketheman requested a review from a team as a code owner May 25, 2023 14:56
@@ -183,14 +183,14 @@ def test_acl(self, db_session):
key=lambda x: x[1],
)

def test_record_event(self, db_request):
def test_record_event_with_geoip(self, db_request):
Copy link
Member Author

Choose a reason for hiding this comment

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

thought: ‏for a future refactor, I'm thinking these test cases should be split out to events/test_models.py, but I wanted to defer that for now, since there's some complexity in creating a subclassed fakeish db model

@ewdurbin ewdurbin merged commit 5175a95 into pypi:main May 25, 2023
@miketheman miketheman deleted the miketheman/location-info branch May 25, 2023 17:02
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.

2 participants