-
Notifications
You must be signed in to change notification settings - Fork 125
#2166: Fix - Time series information retrieved for read-only resources #2171
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
Conversation
Summary of ChangesHello @dsuren1, 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 focuses on refining the display and management of time series data within the application. It addresses issues related to user permissions for viewing and editing time series information, ensuring that only authorized users can interact with these settings. Additionally, it corrects a UI anomaly where a 'pending' state was erroneously shown on detail pages, providing a more accurate representation of the resource's modification status. 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. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request introduces several fixes related to time series information for resources. The changes correctly hide time series settings for read-only resources, ensure time series data is fetched when a resource has it, and resolve an issue with the pending changes indicator appearing incorrectly. The logic is sound and addresses the described issues. I've identified one potential issue in the code that could lead to an error if a resource is not found, and I've provided a suggestion to make the code more robust.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- the timeline is not visible in datasets after saving. I think we should not use timeseries endpoint to decide if we need to create dimensions or not. We should not use timeseries but instead
has_timeto decide if creating the dimensions object. Please ensure the timeline is working both for datasets and maps also after saving reloading the resource
…me_series * commit '89fc69cd1f20ce048a5e0e19baa8a06bfca466a7': Fix: 2154 : Download metadata available for everyone (GeoNode#2172) [create-pull-request] automated change (GeoNode#2179) Add support for uploading/deleting assets from a resource (GeoNode#2174) [create-pull-request] automated change (GeoNode#2178) [Fixes GeoNode#2055] Add compile:dev script using MAPSTORE_COMPILE_DEV=true for debug-friendly production builds (GeoNode#2056) Upgrade to Django 5.2 (GeoNode#2173)
@allyoucanmap |
The issue, caused by a race condition during parallel dataset and timeseries updates, has been resolved by implementing sequential call execution |
Description
This PR fixes the following
Issue