udata 10.4.4.dev35830__py2.py3-none-any.whl → 10.4.4.dev35901__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.

Files changed (25) hide show
  1. udata/core/dataset/api.py +7 -1
  2. udata/harvest/backends/dcat.py +1 -1
  3. udata/static/chunks/{10.471164b2a9fe15614797.js → 10.8ca60413647062717b1e.js} +3 -3
  4. udata/static/chunks/{10.471164b2a9fe15614797.js.map → 10.8ca60413647062717b1e.js.map} +1 -1
  5. udata/static/chunks/{11.83535504cd650ea08f65.js → 11.b6f741fcc366abfad9c4.js} +3 -3
  6. udata/static/chunks/{11.83535504cd650ea08f65.js.map → 11.b6f741fcc366abfad9c4.js.map} +1 -1
  7. udata/static/chunks/{13.f29411b06be1883356a3.js → 13.2d06442dd9a05d9777b5.js} +2 -2
  8. udata/static/chunks/{13.f29411b06be1883356a3.js.map → 13.2d06442dd9a05d9777b5.js.map} +1 -1
  9. udata/static/chunks/{17.3bd0340930d4a314ce9c.js → 17.e8e4caaad5cb0cc0bacc.js} +2 -2
  10. udata/static/chunks/{17.3bd0340930d4a314ce9c.js.map → 17.e8e4caaad5cb0cc0bacc.js.map} +1 -1
  11. udata/static/chunks/{19.df16abde17a42033a7f8.js → 19.f03a102365af4315f9db.js} +3 -3
  12. udata/static/chunks/{19.df16abde17a42033a7f8.js.map → 19.f03a102365af4315f9db.js.map} +1 -1
  13. udata/static/chunks/{8.462bb3029de008497675.js → 8.778091d55cd8ea39af6b.js} +2 -2
  14. udata/static/chunks/{8.462bb3029de008497675.js.map → 8.778091d55cd8ea39af6b.js.map} +1 -1
  15. udata/static/chunks/{9.07515e5187f475bce828.js → 9.033d7e190ca9e226a5d0.js} +3 -3
  16. udata/static/chunks/{9.07515e5187f475bce828.js.map → 9.033d7e190ca9e226a5d0.js.map} +1 -1
  17. udata/static/common.js +1 -1
  18. udata/static/common.js.map +1 -1
  19. udata/tests/api/test_datasets_api.py +22 -0
  20. {udata-10.4.4.dev35830.dist-info → udata-10.4.4.dev35901.dist-info}/METADATA +3 -2
  21. {udata-10.4.4.dev35830.dist-info → udata-10.4.4.dev35901.dist-info}/RECORD +25 -25
  22. {udata-10.4.4.dev35830.dist-info → udata-10.4.4.dev35901.dist-info}/LICENSE +0 -0
  23. {udata-10.4.4.dev35830.dist-info → udata-10.4.4.dev35901.dist-info}/WHEEL +0 -0
  24. {udata-10.4.4.dev35830.dist-info → udata-10.4.4.dev35901.dist-info}/entry_points.txt +0 -0
  25. {udata-10.4.4.dev35830.dist-info → udata-10.4.4.dev35901.dist-info}/top_level.txt +0 -0
udata/core/dataset/api.py CHANGED
@@ -689,9 +689,15 @@ class ResourceAPI(ResourceMixin, API):
689
689
 
690
690
  # populate_obj populates existing resource object with the content of the form.
691
691
  # update_resource saves the updated resource dict to the database
692
- # the additional dataset.save is required as we update the last_modified date.
693
692
  form.populate_obj(resource)
694
693
  resource.last_modified_internal = datetime.utcnow()
694
+
695
+ # populate_obj is bugged when sending a None value we want to remove the existing
696
+ # value. We don't want to remove the existing value if no "schema" is sent.
697
+ # Will be fixed when we switch to the new API Fields.
698
+ if "schema" in request.get_json() and form._fields.get("schema").data is None:
699
+ resource.schema = None
700
+
695
701
  dataset.update_resource(resource)
696
702
  return resource
697
703
 
@@ -344,7 +344,7 @@ class CswIso19139DcatBackend(DcatBackend):
344
344
 
345
345
  ISO_SCHEMA = "http://www.isotc211.org/2005/gmd"
346
346
 
347
- XSL_URL = "https://raw.githubusercontent.com/SEMICeu/iso-19139-to-dcat-ap/master/iso-19139-to-dcat-ap.xsl"
347
+ XSL_URL = "https://raw.githubusercontent.com/datagouv/iso-19139-to-dcat-ap/patch-datagouv/iso-19139-to-dcat-ap.xsl"
348
348
 
349
349
  def walk_graph(self, url: str, fmt: str) -> Generator[tuple[int, Graph], None, None]:
350
350
  """