Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Collapse" fields with same type and semantics #461

Open
SegFaulti4 opened this issue Sep 17, 2021 · 1 comment
Open

"Collapse" fields with same type and semantics #461

SegFaulti4 opened this issue Sep 17, 2021 · 1 comment
Labels
backend bug is related to backend enhancement this label means that resolving the issue would improve some part of the system

Comments

@SegFaulti4
Copy link

SegFaulti4 commented Sep 17, 2021

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

@Winking-maniac Winking-maniac added backend bug is related to backend enhancement this label means that resolving the issue would improve some part of the system labels Sep 17, 2021
@SegFaulti4
Copy link
Author

The enhancement is yet to be tested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend bug is related to backend enhancement this label means that resolving the issue would improve some part of the system
Projects
None yet
Development

No branches or pull requests

2 participants