Repository navigation
Conversation
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Map creation remains incompletely scoped, causing subclass mutations to be omitted from the creation change.
Review effort: Balanced
Findings: 1
Open (2)
What changed in this PR
Improves metadata audit tracking boundaries and user attribution across resource managers and upload handlers.
Changes:
- Opens tracking before resource mutations.
- Propagates initiating users through update paths.
- Prevents unresolved default users from breaking operations.
| File | Description |
|---|---|
geonode/upload/handlers/common/vector.py |
Passes the execution user to updates. |
geonode/upload/handlers/common/remote.py |
Attributes remote overwrites. |
geonode/upload/handlers/common/raster.py |
Attributes raster overwrites. |
geonode/resource/manager.py |
Starts tracking before initial mutations. |
geonode/metadata/tracking/operation.py |
Handles default-user resolution failures. |
geonode/maps/manager.py |
Groups map update mutations. |
geonode/geoapps/manager.py |
Groups GeoApp mutations and propagates users. |
geonode/documents/manager.py |
Groups document creation mutations. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## 5.1.x #14699 +/- ##
========================================
Coverage ? 75.58%
========================================
Files ? 993
Lines ? 62843
Branches ? 8649
========================================
Hits ? 47498
Misses ? 13430
Partials ? 1915 🚀 New features to boost your workflow:
|
|
One note related to last forced push. Passing |
- open the tracking block before the resource is touched, so that what set_missing_info() writes is part of the change and not of its premises - bracket the subclass managers: they change the resource both before and after delegating to the base one - pass the user on from the geoapps manager and the upload handlers - do not let an unresolvable default user break the change being tracked


Checklist
For all pull requests:
The following are required only for core and extension modules (they are welcomed, but not required, for contrib modules):
Submitting the PR does not require you to check all items, but by the time it gets merged, they should be either satisfied or inapplicable.