udata 10.8.3.dev37305__py2.py3-none-any.whl → 10.8.4.dev37339__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/__init__.py CHANGED
@@ -4,5 +4,5 @@
4
4
  udata
5
5
  """
6
6
 
7
- __version__ = "10.8.3.dev"
7
+ __version__ = "10.8.4.dev"
8
8
  __description__ = "Open data portal"
udata/core/user/models.py CHANGED
@@ -258,7 +258,7 @@ class User(WithMetrics, UserMixin, Linkable, db.Document):
258
258
 
259
259
  copied_user = copy(self)
260
260
  self.email = "{}@deleted".format(self.id)
261
- self.slug = "deleted"
261
+ self.slug = "deleted-{}".format(self.id)
262
262
  self.password = None
263
263
  self.active = False
264
264
  self.first_name = "DELETED"
@@ -42,7 +42,7 @@ class UserModelTest:
42
42
  assert Follow.objects(id=user_follow_org.id).first() is None
43
43
  assert Follow.objects(id=user_followed.id).first() is None
44
44
 
45
- assert user.slug == "deleted"
45
+ assert user.slug == f"deleted-{user.id}"
46
46
 
47
47
  def test_mark_as_deleted_with_comments_deletion(self):
48
48
  user = UserFactory()
@@ -75,8 +75,8 @@ class UserModelTest:
75
75
  user.mark_as_deleted()
76
76
  other_user.mark_as_deleted()
77
77
 
78
- assert user.slug == "deleted"
79
- assert other_user.slug == "deleted-1"
78
+ assert user.slug == f"deleted-{user.id}"
79
+ assert other_user.slug == f"deleted-{other_user.id}"
80
80
 
81
81
  def test_delete_safeguard(self):
82
82
  user = UserFactory()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: udata
3
- Version: 10.8.3.dev37305
3
+ Version: 10.8.4.dev37339
4
4
  Summary: Open data portal
5
5
  Home-page: https://github.com/opendatateam/udata
6
6
  Author: Opendata Team
@@ -143,6 +143,10 @@ It is collectively taken care of by members of the
143
143
 
144
144
  ## Current (in progress)
145
145
 
146
+ - Prevent numerous user deleted slug duplicates [#3403](https://github.com/opendatateam/udata/pull/3403)
147
+
148
+ ## 10.8.3 (2025-08-20)
149
+
146
150
  - Count dataservices and reuses for datasets based on signal [#3335](https://github.com/opendatateam/udata/pull/3335)
147
151
  :warning: the job `update-datasets-reuses-metrics` disappears, you should unschedule it before installing this version
148
152
  - Consolidate CSW harvesting logic [#3378](https://github.com/opendatateam/udata/pull/3378)
@@ -1,6 +1,6 @@
1
1
  tasks/__init__.py,sha256=nfgZ5nkcoluXMIk52P4-8Rj6xL0Qlm_xSUfWW2aHZfI,8161
2
2
  tasks/helpers.py,sha256=70fS9tI_m0DTWmKx9Zl5-LG-nxdz_ZaPyvvsFkN2r48,1091
3
- udata/__init__.py,sha256=ynJeF5zdAyl9Qf8a9Mwfd_7-oZhrShAgEivkmYSH7sE,102
3
+ udata/__init__.py,sha256=h-yI0UxZD1qbROM9xbjpRqGUfNxlw_CnKp6_HjDHS4Q,102
4
4
  udata/api_fields.py,sha256=EapRy1NZbkSQ7IB7zS8kEUFYkD9x1hMvo6-goLZ8Bf8,31921
5
5
  udata/app.py,sha256=gRQSi4Scqu6rj0czVsmBRkNM4wNRkBhY7y7NWbqY8UM,7249
6
6
  udata/assets.py,sha256=H5Hrc2vnKM0IFLyWfLXmJ2Kj35w1i8W1D8Cgy8_cUj4,657
@@ -252,11 +252,11 @@ udata/core/user/constants.py,sha256=aTluhTR2RGZ_cdG7-mkEoT5Ndbg8BNUwwzCOld0aLMY,
252
252
  udata/core/user/factories.py,sha256=kkwaojciLzfuAOeRnL1E7XCcGPo8waAal_G2eeuVc0k,825
253
253
  udata/core/user/forms.py,sha256=yotqZozH9ViKuNI8SwdKocDEi7NXVs_XUMpdr_bIe5s,966
254
254
  udata/core/user/metrics.py,sha256=J4zgjcAudQAi6NUIb47o2Pfe0xZ_Eu17ta9HjhE-HvE,1274
255
- udata/core/user/models.py,sha256=E7WxSBa9jVqgrUF3bjqwemrDD0HYmJH3MN8tajq3-Aw,11293
255
+ udata/core/user/models.py,sha256=G2iiM4xFdMQ-ESTMKWXJTq7nsADza1JaL518EmCE0yM,11312
256
256
  udata/core/user/permissions.py,sha256=Wbd8bLqSjqp9RHJ6ffLBj74L-LECcAhWazuw4Hq-2Gk,435
257
257
  udata/core/user/rdf.py,sha256=_tN8KlJHt8mYwJhLKoULhmZ3sapUGmX1Sl5W8uawxeU,718
258
258
  udata/core/user/tasks.py,sha256=VcK0zJq2it4CVmoAMIOgJ0c2IHCV6UBQPAB0qDABD88,3451
259
- udata/core/user/tests/test_user_model.py,sha256=9tjtxvzUNpoT2SjLBxAS8hEDWlUBQwTcnv-c8Ws3rN8,2857
259
+ udata/core/user/tests/test_user_model.py,sha256=C9QYZJeDySwGslC6qgi76Ghk-ugsfzysVCt3yoW4e9E,2894
260
260
  udata/db/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
261
261
  udata/db/tasks.py,sha256=6PDnvvrE0lmQ3ss7sDLu8MUYHxUWW17NGgHCq9UnraY,151
262
262
  udata/event/__init__.py,sha256=2G9g1C_dp3yap4ehJE950Bnl1uQtD00TsvTFZhvhRS8,41
@@ -758,9 +758,9 @@ udata/translations/pt/LC_MESSAGES/udata.mo,sha256=U0abG-nBwCIoYxRZNsc4KOLeIRSqTV
758
758
  udata/translations/pt/LC_MESSAGES/udata.po,sha256=eCG35rMzYLHXyLbsnLSexS1g0N_K-WpNHqrt_8y6I4E,48590
759
759
  udata/translations/sr/LC_MESSAGES/udata.mo,sha256=IBcCAdmcvkeK7ZeRBNRI-wJ0jzWNM0eXM5VXAc1frWI,28692
760
760
  udata/translations/sr/LC_MESSAGES/udata.po,sha256=yFxHEEB4behNwQ7JnyoYheiCKLNnMS_NV4guzgyzWcE,55332
761
- udata-10.8.3.dev37305.dist-info/LICENSE,sha256=V8j_M8nAz8PvAOZQocyRDX7keai8UJ9skgmnwqETmdY,34520
762
- udata-10.8.3.dev37305.dist-info/METADATA,sha256=8UPWm69CWe4NOOUG3-skvHL8P8CGQ_vORS7h4plQYPk,154041
763
- udata-10.8.3.dev37305.dist-info/WHEEL,sha256=Kh9pAotZVRFj97E15yTA4iADqXdQfIVTHcNaZTjxeGM,110
764
- udata-10.8.3.dev37305.dist-info/entry_points.txt,sha256=v2u12qO11i2lyLNIp136WmLJ-NHT-Kew3Duu8J-AXPM,614
765
- udata-10.8.3.dev37305.dist-info/top_level.txt,sha256=39OCg-VWFWOq4gCKnjKNu-s3OwFlZIu_dVH8Gl6ndHw,12
766
- udata-10.8.3.dev37305.dist-info/RECORD,,
761
+ udata-10.8.4.dev37339.dist-info/LICENSE,sha256=V8j_M8nAz8PvAOZQocyRDX7keai8UJ9skgmnwqETmdY,34520
762
+ udata-10.8.4.dev37339.dist-info/METADATA,sha256=g2wTvgF4VC2fmbDzFcYhjApGRQahyqyICyLXy5Or6RA,154171
763
+ udata-10.8.4.dev37339.dist-info/WHEEL,sha256=Kh9pAotZVRFj97E15yTA4iADqXdQfIVTHcNaZTjxeGM,110
764
+ udata-10.8.4.dev37339.dist-info/entry_points.txt,sha256=v2u12qO11i2lyLNIp136WmLJ-NHT-Kew3Duu8J-AXPM,614
765
+ udata-10.8.4.dev37339.dist-info/top_level.txt,sha256=39OCg-VWFWOq4gCKnjKNu-s3OwFlZIu_dVH8Gl6ndHw,12
766
+ udata-10.8.4.dev37339.dist-info/RECORD,,