udata 10.0.4.dev32695__py2.py3-none-any.whl → 10.0.4.dev32703__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of udata might be problematic. Click here for more details.
- udata/core/dataservices/api.py +4 -2
- udata/tests/api/test_dataservices_api.py +5 -0
- {udata-10.0.4.dev32695.dist-info → udata-10.0.4.dev32703.dist-info}/METADATA +2 -1
- {udata-10.0.4.dev32695.dist-info → udata-10.0.4.dev32703.dist-info}/RECORD +8 -8
- {udata-10.0.4.dev32695.dist-info → udata-10.0.4.dev32703.dist-info}/LICENSE +0 -0
- {udata-10.0.4.dev32695.dist-info → udata-10.0.4.dev32703.dist-info}/WHEEL +0 -0
- {udata-10.0.4.dev32695.dist-info → udata-10.0.4.dev32703.dist-info}/entry_points.txt +0 -0
- {udata-10.0.4.dev32695.dist-info → udata-10.0.4.dev32703.dist-info}/top_level.txt +0 -0
udata/core/dataservices/api.py
CHANGED
|
@@ -76,7 +76,7 @@ class DataserviceAPI(API):
|
|
|
76
76
|
OwnablePermission(dataservice).test()
|
|
77
77
|
|
|
78
78
|
patch(dataservice, request)
|
|
79
|
-
dataservice.
|
|
79
|
+
dataservice.metadata_modified_at = datetime.utcnow()
|
|
80
80
|
|
|
81
81
|
try:
|
|
82
82
|
dataservice.save()
|
|
@@ -93,7 +93,7 @@ class DataserviceAPI(API):
|
|
|
93
93
|
|
|
94
94
|
OwnablePermission(dataservice).test()
|
|
95
95
|
dataservice.deleted_at = datetime.utcnow()
|
|
96
|
-
dataservice.
|
|
96
|
+
dataservice.metadata_modified_at = datetime.utcnow()
|
|
97
97
|
dataservice.save()
|
|
98
98
|
|
|
99
99
|
return "", 204
|
|
@@ -141,6 +141,7 @@ class DataserviceDatasetsAPI(API):
|
|
|
141
141
|
|
|
142
142
|
if diff:
|
|
143
143
|
dataservice.datasets += [ObjectId(did) for did in diff]
|
|
144
|
+
dataservice.metadata_modified_at = datetime.utcnow()
|
|
144
145
|
dataservice.save()
|
|
145
146
|
|
|
146
147
|
return dataservice, 201
|
|
@@ -164,6 +165,7 @@ class DataserviceDatasetAPI(API):
|
|
|
164
165
|
if dataset not in dataservice.datasets:
|
|
165
166
|
api.abort(404, "Dataset not found in dataservice")
|
|
166
167
|
dataservice.datasets = [d for d in dataservice.datasets if d.id != dataset.id]
|
|
168
|
+
dataservice.metadata_modified_at = datetime.utcnow()
|
|
167
169
|
dataservice.save()
|
|
168
170
|
|
|
169
171
|
return None, 204
|
|
@@ -92,6 +92,11 @@ class DataserviceAPITest(APITestCase):
|
|
|
92
92
|
self.assertEqual(
|
|
93
93
|
response.json["self_api_url"], "http://local.test/api/1/dataservices/updated-title/"
|
|
94
94
|
)
|
|
95
|
+
# metadata_modified_at should have been updated during the patch
|
|
96
|
+
self.assertNotEqual(
|
|
97
|
+
response.json["metadata_modified_at"].split("+")[0],
|
|
98
|
+
dataservice.metadata_modified_at.isoformat(),
|
|
99
|
+
)
|
|
95
100
|
|
|
96
101
|
self.assertEqual(response.json["datasets"]["total"], 2)
|
|
97
102
|
response_datasets = self.get(response.json["datasets"]["href"])
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: udata
|
|
3
|
-
Version: 10.0.4.
|
|
3
|
+
Version: 10.0.4.dev32703
|
|
4
4
|
Summary: Open data portal
|
|
5
5
|
Home-page: https://github.com/opendatateam/udata
|
|
6
6
|
Author: Opendata Team
|
|
@@ -141,6 +141,7 @@ It is collectively taken care of by members of the
|
|
|
141
141
|
## Current (in progress)
|
|
142
142
|
|
|
143
143
|
- Add created and last_modified sorts on dataservice list [#3206](https://github.com/opendatateam/udata/pull/3206)
|
|
144
|
+
- Fix dataservice metadata_modified_at update in API [#3207](https://github.com/opendatateam/udata/pull/3207)
|
|
144
145
|
|
|
145
146
|
## 10.0.3 (2024-11-27)
|
|
146
147
|
|
|
@@ -80,7 +80,7 @@ udata/core/contact_point/factories.py,sha256=5UhArDpf_jYXEL_MYs5fVphSq7aRb80-2qu
|
|
|
80
80
|
udata/core/contact_point/forms.py,sha256=ykdnfLPrY2awIis2Ms57Wj0zuhws7dNPFkLpnkq7sas,688
|
|
81
81
|
udata/core/contact_point/models.py,sha256=ABhfig9ldaHrMSbvWwdkGmijlevCOYDlpzDebbfQaHM,644
|
|
82
82
|
udata/core/dataservices/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
83
|
-
udata/core/dataservices/api.py,sha256=
|
|
83
|
+
udata/core/dataservices/api.py,sha256=xBz5xr9KfKheBDTcZA5Rk_uFOrcREmNzk9oxLGgp4mU,7515
|
|
84
84
|
udata/core/dataservices/apiv2.py,sha256=XIqJq58uLtxtt52iKYo7Fl0ZXv9Sz72uA7JIGwP8Qos,995
|
|
85
85
|
udata/core/dataservices/factories.py,sha256=LDk8vvG0zhW8J-ZX5LoJQDU13pqeIyjQ05muuMro_eA,876
|
|
86
86
|
udata/core/dataservices/models.py,sha256=h6QOWJkNCiKQx9XjlZmDa4JbfWHnuaSGwTNTqzI57bE,8604
|
|
@@ -610,7 +610,7 @@ udata/tests/api/test_activities_api.py,sha256=RjDDeNle3T-ydVnh6BRypqxAE_244-DXaK
|
|
|
610
610
|
udata/tests/api/test_auth_api.py,sha256=OMRlY0OQt60j5N4A-N3HdWTuffOjRlFHkz5a3jJFieI,25987
|
|
611
611
|
udata/tests/api/test_base_api.py,sha256=2w_vz0eEuq3P3aN-ByvxGc3VZAo7XtgatFfcrzf2uEU,2244
|
|
612
612
|
udata/tests/api/test_contact_points.py,sha256=jumil3faYa11KmSZgZgl592IrDqKcthHUjRv1zqWWn8,2702
|
|
613
|
-
udata/tests/api/test_dataservices_api.py,sha256=
|
|
613
|
+
udata/tests/api/test_dataservices_api.py,sha256=jSumLzEJDcYq8adStWMotFMyrJ23BB6arnflBLLVbTs,21298
|
|
614
614
|
udata/tests/api/test_datasets_api.py,sha256=FKHUID2uoi8yMON0kTlN0n1LWCxpofFtvk-0rXLwpYk,81340
|
|
615
615
|
udata/tests/api/test_fields.py,sha256=OW85Z5MES5HeWOpapeem8OvR1cIcrqW-xMWpdZO4LZ8,1033
|
|
616
616
|
udata/tests/api/test_follow_api.py,sha256=fccgVNfcqET221PPS3p7qzb9hpvbBBUGhV-l4UeOpyk,3352
|
|
@@ -707,9 +707,9 @@ udata/translations/pt/LC_MESSAGES/udata.mo,sha256=nGPoTSbeRlpCQGuxoJ7Oa650flpeeh
|
|
|
707
707
|
udata/translations/pt/LC_MESSAGES/udata.po,sha256=f-tilnngNNBEIQdXmm3GbdaLlvbwG9YLLwhqyRD5Lh4,44871
|
|
708
708
|
udata/translations/sr/LC_MESSAGES/udata.mo,sha256=8RL_aEe-0QJdgY-TNMy7bS4z8X9IOK8-C076dxcp3As,28163
|
|
709
709
|
udata/translations/sr/LC_MESSAGES/udata.po,sha256=Cp0bKPeIbuAqvFeoey_9ItQbAHIeiFZPnZLa6A6JNbI,51363
|
|
710
|
-
udata-10.0.4.
|
|
711
|
-
udata-10.0.4.
|
|
712
|
-
udata-10.0.4.
|
|
713
|
-
udata-10.0.4.
|
|
714
|
-
udata-10.0.4.
|
|
715
|
-
udata-10.0.4.
|
|
710
|
+
udata-10.0.4.dev32703.dist-info/LICENSE,sha256=V8j_M8nAz8PvAOZQocyRDX7keai8UJ9skgmnwqETmdY,34520
|
|
711
|
+
udata-10.0.4.dev32703.dist-info/METADATA,sha256=QIbgDYv3o8-Z0RFBxJwk7bP4GeSnwoPpbSr-LewOf1k,135924
|
|
712
|
+
udata-10.0.4.dev32703.dist-info/WHEEL,sha256=DZajD4pwLWue70CAfc7YaxT1wLUciNBvN_TTcvXpltE,110
|
|
713
|
+
udata-10.0.4.dev32703.dist-info/entry_points.txt,sha256=3SKiqVy4HUqxf6iWspgMqH8d88Htk6KoLbG1BU-UddQ,451
|
|
714
|
+
udata-10.0.4.dev32703.dist-info/top_level.txt,sha256=39OCg-VWFWOq4gCKnjKNu-s3OwFlZIu_dVH8Gl6ndHw,12
|
|
715
|
+
udata-10.0.4.dev32703.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|