udata 9.2.5.dev32287__py2.py3-none-any.whl → 9.2.5.dev32317__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/commands/fixtures.py +1 -1
- udata/core/organization/constants.py +3 -3
- udata/migrations/2024-10-30-rename-organization-badges.py +27 -0
- {udata-9.2.5.dev32287.dist-info → udata-9.2.5.dev32317.dist-info}/METADATA +4 -2
- {udata-9.2.5.dev32287.dist-info → udata-9.2.5.dev32317.dist-info}/RECORD +9 -8
- {udata-9.2.5.dev32287.dist-info → udata-9.2.5.dev32317.dist-info}/LICENSE +0 -0
- {udata-9.2.5.dev32287.dist-info → udata-9.2.5.dev32317.dist-info}/WHEEL +0 -0
- {udata-9.2.5.dev32287.dist-info → udata-9.2.5.dev32317.dist-info}/entry_points.txt +0 -0
- {udata-9.2.5.dev32287.dist-info → udata-9.2.5.dev32317.dist-info}/top_level.txt +0 -0
udata/commands/fixtures.py
CHANGED
|
@@ -39,7 +39,7 @@ COMMUNITY_RES_URL = "/api/1/datasets/community_resources"
|
|
|
39
39
|
DISCUSSION_URL = "/api/1/discussions"
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
DEFAULT_FIXTURE_FILE_TAG: str = "
|
|
42
|
+
DEFAULT_FIXTURE_FILE_TAG: str = "v3.0.0"
|
|
43
43
|
DEFAULT_FIXTURE_FILE: str = f"https://raw.githubusercontent.com/opendatateam/udata-fixtures/{DEFAULT_FIXTURE_FILE_TAG}/results.json" # noqa
|
|
44
44
|
|
|
45
45
|
DEFAULT_FIXTURES_RESULTS_FILENAME: str = "results.json"
|
|
@@ -19,9 +19,9 @@ BIGGEST_LOGO_SIZE = LOGO_SIZES[0]
|
|
|
19
19
|
|
|
20
20
|
PUBLIC_SERVICE = "public-service"
|
|
21
21
|
CERTIFIED = "certified"
|
|
22
|
-
ASSOCIATION = "
|
|
23
|
-
COMPANY = "
|
|
24
|
-
LOCAL_AUTHORITY = "
|
|
22
|
+
ASSOCIATION = "association"
|
|
23
|
+
COMPANY = "company"
|
|
24
|
+
LOCAL_AUTHORITY = "local-authority"
|
|
25
25
|
|
|
26
26
|
TITLE_SIZE_LIMIT = 350
|
|
27
27
|
DESCRIPTION_SIZE_LIMIT = 100000
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"""
|
|
2
|
+
This migration renames the organization badges for coherent cases
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
import logging
|
|
6
|
+
|
|
7
|
+
from udata.core.organization.constants import ASSOCIATION, COMPANY, LOCAL_AUTHORITY
|
|
8
|
+
from udata.models import Organization
|
|
9
|
+
|
|
10
|
+
log = logging.getLogger(__name__)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
mapping_legacy_to_actual = {
|
|
14
|
+
"Association": ASSOCIATION,
|
|
15
|
+
"Company": COMPANY,
|
|
16
|
+
"Local authority": LOCAL_AUTHORITY,
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def migrate(db):
|
|
21
|
+
log.info("Processing Organizations...")
|
|
22
|
+
|
|
23
|
+
for legacy, actual in mapping_legacy_to_actual.items():
|
|
24
|
+
count = Organization.objects(badges__kind=legacy).update(set__badges__S__kind=actual)
|
|
25
|
+
log.info(f"Renamed badge {actual} for {count} Organization objects.")
|
|
26
|
+
|
|
27
|
+
log.info("Done")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: udata
|
|
3
|
-
Version: 9.2.5.
|
|
3
|
+
Version: 9.2.5.dev32317
|
|
4
4
|
Summary: Open data portal
|
|
5
5
|
Home-page: https://github.com/opendatateam/udata
|
|
6
6
|
Author: Opendata Team
|
|
@@ -148,7 +148,9 @@ It is collectively taken care of by members of the
|
|
|
148
148
|
- Fix flaky "duplicated email" importing fixtures tests [#3176](https://github.com/opendatateam/udata/pull/3176)
|
|
149
149
|
- Fix deprecated CircleCI config [#3181](https://github.com/opendatateam/udata/pull/3181)
|
|
150
150
|
- Use proper RESTful Hydra API endpoints [#3178](https://github.com/opendatateam/udata/pull/3178)
|
|
151
|
-
-
|
|
151
|
+
- Migrate organization badges label to lowercase [#3182](https://github.com/opendatateam/udata/pull/3182)
|
|
152
|
+
- Add a "filter by organization badge" for datasets, dataservices, reuses and organizations [#3155](https://github.com/opendatateam/udata/pull/3155)
|
|
153
|
+
* you will need https://github.com/opendatateam/udata-search-service/pull/49 for the search service
|
|
152
154
|
- Add dataservices search with search-service [#3171](https://github.com/opendatateam/udata/pull/3171)
|
|
153
155
|
* you will need https://github.com/opendatateam/udata-search-service/pull/48
|
|
154
156
|
- Expose the "landingPage" in DCAT RDF [#3183](https://github.com/opendatateam/udata/pull/3183)
|
|
@@ -42,7 +42,7 @@ udata/commands/__init__.py,sha256=Won_rW_hIU9TA3o4oNe6kI46l1fnDBM_oW0Hc1XS9F8,77
|
|
|
42
42
|
udata/commands/cache.py,sha256=bLdrf_fCWFYX9ULlL2ADsZRwijkI4pArsJxfx24OivM,341
|
|
43
43
|
udata/commands/db.py,sha256=x5ui77hoT-JcECneBhhXZtpH4g65gaj7SyeM0bnORhA,14694
|
|
44
44
|
udata/commands/dcat.py,sha256=L1J1AxQCmMDmwdxzugQNfy4VZQYf1rI1wPhSdUaMB5E,3419
|
|
45
|
-
udata/commands/fixtures.py,sha256=
|
|
45
|
+
udata/commands/fixtures.py,sha256=qWNV5COW_8uWpt9msDAI14ep7c4V1Rk8_Ng4Hic4ujI,9157
|
|
46
46
|
udata/commands/images.py,sha256=0rVojLik5DYgJ6W4uNEfMP2g2QUU2V761tj3z6lo8no,2050
|
|
47
47
|
udata/commands/info.py,sha256=A5WMo3_N_rlt3cySVJrZqKWrbIowX97ZLKMIFQE5178,1545
|
|
48
48
|
udata/commands/init.py,sha256=8CpH8MklzPkpxczs43lFM5ZNrHCJRbUtzHapgYNHs7M,1520
|
|
@@ -144,7 +144,7 @@ udata/core/organization/api.py,sha256=Z8QHV8KE53nNv56qJhUq5OLo_F6dFyzxrTT9wJ3VAP
|
|
|
144
144
|
udata/core/organization/api_fields.py,sha256=d2U4X_WRCVVRppS-8T6gJkJKqmB-0ST8W-PyAIoTr-c,7576
|
|
145
145
|
udata/core/organization/apiv2.py,sha256=1HQRQNu8r5dKPOGdkQyYfn7romhOoZydd4ZVUA0tQIk,3169
|
|
146
146
|
udata/core/organization/commands.py,sha256=DsRAtFDZvTciYNsUWumQWdn0jnNmKW-PwfIHUUZoBb8,1591
|
|
147
|
-
udata/core/organization/constants.py,sha256=
|
|
147
|
+
udata/core/organization/constants.py,sha256=fncNtA-vFrRM22K1Wo6iYu9DQZjzknYxH6TIYfxM9kA,563
|
|
148
148
|
udata/core/organization/csv.py,sha256=j6BJvXE8_6c-IWOPOg0C-j9KiCushoG1FQxzKVBDj2A,1625
|
|
149
149
|
udata/core/organization/factories.py,sha256=g8ubBcz79xbjvpunZ02IDOakFg1KE6cXjNkE9vFyFAc,624
|
|
150
150
|
udata/core/organization/forms.py,sha256=tscDb1_yOpbTx3ahl8ttA7oDkX9jIyzLc4gOf6WbN3s,3552
|
|
@@ -352,6 +352,7 @@ udata/migrations/2024-03-22-migrate-activity-kwargs-to-extras.py,sha256=ucoXSqZl
|
|
|
352
352
|
udata/migrations/2024-06-11-fix-reuse-datasets-references.py,sha256=p0ksSutxk93rY9AMPyN7w_9lU5Y3sRU75iWOLR8MmsY,768
|
|
353
353
|
udata/migrations/2024-10-01-remove-ods-duplicates.py,sha256=e7u0oGUxFgp4_cmxJlEpWZtKp2gn6T1tVYrQgb6V2wo,3621
|
|
354
354
|
udata/migrations/2024-10-09-remove-extras-harvest.py,sha256=cCuuUMZXcmTVhUle-sdERD4FxLbtA7ISX30MSge_SUM,895
|
|
355
|
+
udata/migrations/2024-10-30-rename-organization-badges.py,sha256=Yu8PTayYY0m4YJJ3W7JLsQwC-PDoC6BELqFfDhG66bE,695
|
|
355
356
|
udata/migrations/__init__.py,sha256=RBCBDaTlLjuMs_Qzwji6Z6T4r7FCGXhESKoxQbT5qAA,11221
|
|
356
357
|
udata/models/__init__.py,sha256=txbZwa-lRG3mq99eQ9E5YcFWiNUdjDVSyJJvlqUMFfs,1413
|
|
357
358
|
udata/mongo/__init__.py,sha256=y4Rv-kq3o_kcEulcNpePLzocXPBNpx3Jd82G-VZPaMc,1421
|
|
@@ -703,9 +704,9 @@ udata/translations/pt/LC_MESSAGES/udata.mo,sha256=TpMlhwj07t7CPkzXn-qmHG4aTq6ZT7
|
|
|
703
704
|
udata/translations/pt/LC_MESSAGES/udata.po,sha256=vRqSEt9Jds--Wic-hYMkdjYaWzeHFnUn3wD5XvQL-qE,44877
|
|
704
705
|
udata/translations/sr/LC_MESSAGES/udata.mo,sha256=bc-BmgT91ZJJB9DKc5YDsHqyxBhOjDJdbOy-UPo-NjA,28163
|
|
705
706
|
udata/translations/sr/LC_MESSAGES/udata.po,sha256=BKVmr4M88pfgZMU4sHIyDObV5M9E8ezZ9m7jviy2PE4,51369
|
|
706
|
-
udata-9.2.5.
|
|
707
|
-
udata-9.2.5.
|
|
708
|
-
udata-9.2.5.
|
|
709
|
-
udata-9.2.5.
|
|
710
|
-
udata-9.2.5.
|
|
711
|
-
udata-9.2.5.
|
|
707
|
+
udata-9.2.5.dev32317.dist-info/LICENSE,sha256=V8j_M8nAz8PvAOZQocyRDX7keai8UJ9skgmnwqETmdY,34520
|
|
708
|
+
udata-9.2.5.dev32317.dist-info/METADATA,sha256=w8rO4nK8oZr1Qcd_reMapgk2kfj8B0I6wMklhCdr7Es,133984
|
|
709
|
+
udata-9.2.5.dev32317.dist-info/WHEEL,sha256=DZajD4pwLWue70CAfc7YaxT1wLUciNBvN_TTcvXpltE,110
|
|
710
|
+
udata-9.2.5.dev32317.dist-info/entry_points.txt,sha256=3SKiqVy4HUqxf6iWspgMqH8d88Htk6KoLbG1BU-UddQ,451
|
|
711
|
+
udata-9.2.5.dev32317.dist-info/top_level.txt,sha256=39OCg-VWFWOq4gCKnjKNu-s3OwFlZIu_dVH8Gl6ndHw,12
|
|
712
|
+
udata-9.2.5.dev32317.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|