-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[#Fixes 12862] Allow to add metadata when uploading a resource #12929
base: 4.4.x
Are you sure you want to change the base?
[#Fixes 12862] Allow to add metadata when uploading a resource #12929
Conversation
b3bf777
to
c0fa2f3
Compare
geonode/resource/manager.py
Outdated
@@ -341,7 +343,7 @@ def create(self, uuid: str, /, resource_type: typing.Optional[object] = None, de | |||
uuid, resource_type=resource_type, defaults=resource_dict | |||
) | |||
_resource.save() | |||
resourcebase_post_save(_resource.get_real_instance()) | |||
resourcebase_post_save(_resource.get_real_instance(), **kwargs) |
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.
Since we are changing this, i guess could be worth to pass both args
and kwargs
waht you think @ridoo?
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.
yes .. no problem.
@mattiagiupponi could you have a look at the failing test? Actually, the test run ok locally. I do not have a clue why it is failing on circleci. If it fails on your machine as well, I would have to re-check my setup.
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.
Sure i can check
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.
Are your refering to the clone test?
ERROR: test_clone_remote_files_remote (geonode.storage.tests.TestDataRetriever)
ERROR: test_get_arcgis_alternative_structure (geonode.services.tests.ModuleFunctionsTestCase)
FAIL: test_create_passing_custom_to_post_save (geonode.resource.tests.TestResourceManager)
plus is 44x so the importer should not interfere with this tests
Hi @ridoo
|
Relates to #12862
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.