[Don't review] Test PR for golden checks#6096
Conversation
…1f1-80c0-2922463dcc7d)
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request primarily focuses on updating internal test data and migrating Data Commons API calls from V1 to V2 within the Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request primarily focuses on migrating get_place_info and get_series_dates functions in server/services/datacommons.py from using V1 API endpoints to V2. This involves substantial new logic to replicate the previous functionality, including a BFS-based ancestor traversal. Commendably, comprehensive unit tests have been added to validate the new implementations, covering basic functionality as well as edge cases like recursion depth limits and cyclical data. The PR also includes updates to various test data files to align with the new logic and improve data quality. My review includes suggestions to improve code maintainability by extracting duplicated logic and replacing a magic number with a constant. I also noted a potential data duplication issue in one of the test files.
| { | ||
| "dcid": "wikidataId/Q953866", | ||
| "name": "Tlalpan", | ||
| "types": [ | ||
| "AdministrativeArea2" | ||
| ] | ||
| }, |
There was a problem hiding this comment.
There appears to be a duplicate entry for "Tlalpan" in the childPlaces list (the other is on lines 453-459). Although the dcids are different (wikidataId/Q408187 and wikidataId/Q953866), they both refer to the same place. If this is not intentional for testing, consider removing one to prevent potential issues with duplicate data.
…v2-golden-updates
…b54-9d0c-4c13795f46b5)
|
Closing this PR as all changes are ported over to the main PR #6047 |
No description provided.