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

fix: 审计支持失败记录 #71 #93

Merged
merged 9 commits into from
Oct 26, 2021

Conversation

Canway-shiisa
Copy link
Contributor

No description provided.

src/api/bkuser_core/audit/constants.py Outdated Show resolved Hide resolved
src/api/bkuser_core/audit/utils.py Outdated Show resolved Hide resolved
src/api/bkuser_core/audit/utils.py Outdated Show resolved Hide resolved
src/api/bkuser_core/categories/views.py Outdated Show resolved Hide resolved
src/api/bkuser_core/categories/views.py Outdated Show resolved Hide resolved
src/api/bkuser_core/tests/apis/audits/test_audits.py Outdated Show resolved Hide resolved
src/api/bkuser_core/tests/audit/test_utils.py Outdated Show resolved Hide resolved
@IMBlues IMBlues linked an issue Oct 18, 2021 that may be closed by this pull request
src/api/bkuser_core/categories/views.py Outdated Show resolved Hide resolved
src/api/bkuser_core/categories/views.py Outdated Show resolved Hide resolved
src/api/bkuser_core/audit/models.py Show resolved Hide resolved
src/api/bkuser_core/profiles/views.py Outdated Show resolved Hide resolved
@Canway-shiisa Canway-shiisa force-pushed the development branch 2 times, most recently from 1a339e9 to d59176c Compare October 21, 2021 11:01
@IMBlues IMBlues merged commit 2d9c70d into TencentBlueKing:development Oct 26, 2021
def catch_exc(func):
def _catch_exc(self, request, *args, **kwargs):
try:
func(self, request, *args, **kwargs)
Copy link
Contributor

Choose a reason for hiding this comment

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

这里没有返回正常的 Response,后续的异常没有继续 raise 来返回异常的 Response 😕

Copy link
Contributor

Choose a reason for hiding this comment

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

可以看看这个 mr #127 应该解决了这个问题,有空的话也可以帮忙 review 一下。

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.

审计支持失败记录
3 participants