Skip to content
Commits on Source (147)
......@@ -5,9 +5,42 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](<http://keepachangelog.com/en/1.0.0/>)
and this project adheres to [Semantic Versioning](<http://semver.org/spec/v2.0.0.html>).
## Unreleased
## [1.2.2]
### Changed
- API read/write permissions granted to users in the ``opdm_redazione`` group
## [1.2.1]
### Fixed
- testuser need to be in ``opdm_api_writers`` group
## [1.2.0]
### Changed
- Class ``HasuraTokenObtainSlidingSerializer`` was renamed into ``CustomTokenObtainSlidingSerializer``,
in order to account for the fact that both hasura and opdm custom claims are handled.
- Same for ``CustomTokenObtainSlidingView``.
- API permissions changed:
- writing access is granted to all users in the ``opdm_api_writers`` group
- reading access is granted to all users in the ``opdm_api_readers`` group
- anonymous users do not have access to the API data any more
- udates of OPDM memberships coming from the ``scrape_histadmin_minint`` tasks do not overwrite existing values
### Fixed
- management task ``script_correct_comuni`` generate an intelligible error when an Area cannot be associated
with an Organization of type Comune;
- The special case "Comune Perfugas" is now handled well, which is relevant due to the particualrity of
Sardinia's language;
- ``script_correct_memberships_overlapping_apicals.py`` fails with a trapped exception if no context is passed.
### Added
- maintenance management tasks to associate correct electoral events to memebrships and correct end dates,
in order for them not to cross next electoral event
## [1.1.18]
### Added
- ``topics`` app handles mapping between ATOKA_ATECO classifications and Organizations' topics
- ``labels`` app handles mapping between RoleTypes and ``OPDM_PERSON_LABEL`` Classifications
and between ``FORMA_GIURIDICA_OP`` Classifications and ``OPDM_PERSON_LABEL`` Classifications
- Mappings can be imported from CSV sources
......@@ -495,6 +528,7 @@ in the test stage.
[atoka]: https://atoka.io
[1.1.18]: https://gitlab.depp.it/openpolis/opdm/opdm-service/compare/v1.1.17...v1.1.18
[1.1.17]: https://gitlab.depp.it/openpolis/opdm/opdm-service/compare/v1.1.16...v1.1.17
[1.1.16]: https://gitlab.depp.it/openpolis/opdm/opdm-service/compare/v1.1.15...v1.1.16
[1.1.15]: https://gitlab.depp.it/openpolis/opdm/opdm-service/compare/v1.1.14...v1.1.15
......
{
"nodes": {
"Persona": {
"active": true,
"displayName": false,
"properties": [
"name"
]
},
"Organizzazione": {
"active": true,
"displayName": false,
"properties": [
"name"
]
},
"Area": {
"active": true,
"displayName": false,
"properties": [
"name"
]
},
"Tema": {
"active": true,
"displayName": false,
"properties": [
"name"
]
}
},
"edges": {
"INCARICO_IN": {
"active": true,
"displayName": true,
"properties": [
"role"
]
},
"DETIENE_QUOTA_DI": {
"active": true,
"displayName": true,
"properties": [
"percentage"
]
},
"HA_NOMINATO": {
"active": true,
"displayName": true,
"properties": [
"role"
]
},
"ATTIVA_IN": {
"active": true,
"displayName": true,
"properties": []
},
"PARTE_DI": {
"active": true,
"displayName": true,
"properties": []
},
"SI_OCCUPA_DI": {
"active": true,
"displayName": true,
"properties": []
},
"IN_RELAZIONE_DI": {
"active": true,
"displayName": true,
"properties": [
"classification"
]
}
}
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
echo csv_extraction
cat extract_neo4j_csv.sql | psql -Uopdm opdm
cat extract_neo4j_csv.sql | psql -Uopdm opdm
echo csv_transformation
rm *_header.csv
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -94,9 +94,9 @@ Log into the host and copy the files in the postgres container of the stack, mak
bash -c "cd /var/lib/postgresql/neo4j_import && chmod a+x extract_neo4j_csv.sh"
Modify `.bashrc` on the host, in order to enter the `LINKURIOUS` related env variables, needed to run the script.
Modify `.linkurious_env` on the host, in order to enter the `LINKURIOUS` related env variables, needed to run the script.
This must be done, in order for the cronjob script to work without stopping and asking for the values.
Remove read permissions to group and others for `.bashrc`.
Remove read permissions to group and others for `.linkurious_env`.
.. code:: bash
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.