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

Added the ability to hide button #60

Merged
merged 6 commits into from
Aug 10, 2024
Merged

Conversation

DaymasS
Copy link
Contributor

@DaymasS DaymasS commented Jul 30, 2024

Изменения

Добавлена возможность прятать кнопки

Детали реализации

В таблицу button добавлено поле is_hidden (boolean)

При создании/изменении кнопки добавилось поле is_hidden. Если запросить кнопку через get_buttons, get_button или get_service, то поле link будет None.

Также в перечисление ButtonView добавлено имя HIDDEN, присваиваемое спрятанным кнопкам.

Check-List

  • Вы проверили свой код перед отправкой запроса?
  • Вы написали тесты к реализованным функциям?
  • Вы не забыли применить форматирование black и isort для Back-End или Prettier для Front-End?

@DaymasS DaymasS self-assigned this Jul 30, 2024
Copy link

github-actions bot commented Jul 30, 2024

Code Coverage

Coverage Report
FileStmtsMissCoverMissing
services_backend
   __main__.py440%1–7
   schemas.py8450%6–9
services_backend/models
   base.py13469%19–22
   database.py83396%81–82, 102
services_backend/routes
   button.py1965970%83, 113–148, 164–165, 169, 174, 180, 213, 218, 244, 250, 253, 255, 279, 281, 296–327
   category.py1191092%83, 88–89, 114–118, 148, 180–181
TOTAL4578482% 

Summary

Tests Skipped Failures Errors Time
37 0 💤 0 ❌ 0 🔥 1.957s ⏱️

services_backend/routes/button.py Outdated Show resolved Hide resolved
tests/api/button.py Outdated Show resolved Hide resolved
tests/api/button.py Show resolved Hide resolved
tests/api/button.py Show resolved Hide resolved
tests/api/button.py Show resolved Hide resolved
tests/api/button.py Show resolved Hide resolved
Copy link

💩 Code linting failed, use black and isort to fix it.

@grigoriev-semyon grigoriev-semyon merged commit 086d321 into main Aug 10, 2024
2 checks passed
@grigoriev-semyon grigoriev-semyon deleted the Hidden-for-buttons branch August 10, 2024 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Добавить в view параметр hidden для скрытия кнопки
2 participants