You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Fixes #14686][5.1.x] Metadata: handler registration order - #14687
Reviewing is a process done by project maintainers, mostly on a volunteer basis. We try to keep the overhead as small as possible and appreciate if you help us to do so by completing the following items. Feel free to ask in a comment if you have troubles with any of them.
You have sent a Contribution Licence Agreement (CLA) as necessary (not required for small changes, e.g., fixing typos in the documentation)
Make sure the first PR targets the master branch, eventual backports will be managed later. This can be ignored if the PR is fixing an issue that only happens in a specific branch, but not in newer ones.
The following are required only for core and extension modules (they are welcomed, but not required, for contrib modules):
❌ Patch coverage is 92.04545% with 49 lines in your changes missing coverage. Please review. ⚠️ Please upload report for BASE (5.1.x@fb92702). Learn more about missing BASE report.
The reason will be displayed to describe this comment to others. Learn more.
Copilot review overview
🟡 Changes recommended
Resource updates snapshot metadata after mutations, omitting primary changes from tracked deltas, and fallback-user failures can surface after successful saves.
Handle missing fallback user without failing successful updates
geonode/metadata/tracking/operation.py:92
Resolving the fallback user happens outside the per-resource exception handling. If METADATA_TRACK_DEFAULTUSER does not exist, default_user() raises out of metadata_tracker(None) after the resource update has succeeded; this turns successful manager updates into errors even though tracking failures elsewhere are deliberately logged without breaking the save. Catch this lookup failure as well and log it.
Document support for omitted users in metadata tracking
docs/src/development/metadata/tracking.md:26
This says the user cannot be omitted, but the public context manager explicitly supports metadata_tracker(None), BaseResourceManager.update() uses that path, and a nested save may attribute the operation later or it falls back to the configured default. Document that behavior so integrations do not invent a user merely to satisfy this statement.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cla-signedCLA Bot: community license agreement signed
4 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#14686
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.