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

[Streamlit GUI] Выбор полей колекций через st.multiselect #35

Open
PlatonB opened this issue Nov 8, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@PlatonB
Copy link
Owner

PlatonB commented Nov 8, 2022

Раз GUI-модули теперь подгружают MongoClient (#30), то открывается возможность сделать мышко-ориентированный выбор монгячих полей. Поскольку st.multiselect при невыборе выдаёт пустой список, а не пустую строку, понадобится учесть это в инитах соответствующих главных модулей.

@PlatonB PlatonB added the enhancement New feature or request label Nov 8, 2022
@PlatonB PlatonB self-assigned this Nov 8, 2022
@PlatonB
Copy link
Owner Author

PlatonB commented Nov 8, 2022

Помочь сформировать список всех полей и подполей возьмётся модуль get_field_paths.

@PlatonB
Copy link
Owner Author

PlatonB commented Feb 24, 2023

get_field_paths выдаёт набор полей, парся лишь один документ. Запрашиваемого поля может в конкретном документе не оказаться (см. #38). Поэтому очень надеюсь, что ограничение st.multiselect на выбор только заготовленных значений будет снято. Вот как реализован менеджер тегов (по-сути, тот же multiselect) на портале профессиональных фотографов 500px:

500px_com_multiselect_edited.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant