Skip to content

"Collapse" fields with same type and semantics #461

@SegFaulti4

Description

@SegFaulti4

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendbug is related to backendenhancementthis label means that resolving the issue would improve some part of the system

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions