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

Improve integration tab #228

Merged
merged 2 commits into from
Nov 15, 2023

Conversation

VasilyevPS
Copy link
Contributor

Fixes #178
Перенес модуль со скриптом во вкладку интеграции, также сделал кнопку регенерации токена видимой только для админа. Деплой по ссылке:
https://hexlet-correction-vasilyevps-fork.onrender.com/

Вкладка интеграция
image

Вкладка настройки (админ)
image

Вкладка настройки (юзер)
image

@fey fey requested a review from Malcom1986 November 13, 2023 10:28
getLastTypoDataToModel(model, wksName);
return "workspace/wks-integration";
}

@PatchMapping("/token/regenerate")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А давай тут тоже защитим маршрут. Сейчас получается, что не админ поросто не видит кнопку регенерации токена, но если напрямую запрос отправит, то сможет пересоздать

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Malcom1986 Добавил защиту маршрута, тестами тоже покрыл оба случая (админ и юзер).

@Malcom1986 Malcom1986 merged commit 78c490d into Hexlet:main Nov 15, 2023
1 check passed
@VasilyevPS VasilyevPS deleted the issue-178-improve-integration-tab branch November 18, 2023 08:16
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.

Доработать вкладку Integration
2 participants