"Collapse" fields with same type and semantics #461
Labels
backend
bug is related to backend
enhancement
this label means that resolving the issue would improve some part of the system
There are a lot of fields in lingvodoc that are pretty much the same (for example six "Звук" fields), the issue is to replace them with older (or more suitable) instances with the same type.
Execution of same_field_types.py script is added to docker-compose.yml configuration file.
The script itself has only one argument, configuration file uri for ld container (/api/docker/docker.ini).
To execute script from shell use a command "python3 same_field_types.py /api/docker/docker.ini" inside ld container.
To execute script from another python script call it like "same_field_types.main(['same_field_types', '/api/docker/docker.ini'])".
WARNING - IF DON'T WANT TO "COLLAPSE" FIELDS (AND AFTER YOU DID IT) DELETE SCRIPT EXECUTION FROM DOCKER-COMPOSE CONFIGURATION FILE OR/AND COMMENT LAST LINES IN main FUNCTION OF same_field_types.py
Request link: ispras/lingvodoc#1318
The text was updated successfully, but these errors were encountered: