Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AmendsenProject
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shaik Janipasha
AmendsenProject
Commits
af59a773
Unverified
Commit
af59a773
authored
Jun 05, 2019
by
Daniel
Committed by
GitHub
Jun 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added logging to update bookmark API (#189)
parent
71383b15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
v0.py
amundsen_application/api/metadata/v0.py
+7
-0
No files found.
amundsen_application/api/metadata/v0.py
View file @
af59a773
...
@@ -514,6 +514,11 @@ def update_bookmark() -> Response:
...
@@ -514,6 +514,11 @@ def update_bookmark() -> Response:
:param key: Resource key for the bookmarked item.
:param key: Resource key for the bookmarked item.
:return:
:return:
"""
"""
@
action_logging
def
_log_update_bookmark
(
*
,
resource_key
:
str
,
resource_type
:
str
,
method
:
str
)
->
None
:
pass
# pragma: no cover
try
:
try
:
if
app
.
config
[
'AUTH_USER_METHOD'
]:
if
app
.
config
[
'AUTH_USER_METHOD'
]:
user
=
app
.
config
[
'AUTH_USER_METHOD'
](
app
)
user
=
app
.
config
[
'AUTH_USER_METHOD'
](
app
)
...
@@ -530,6 +535,8 @@ def update_bookmark() -> Response:
...
@@ -530,6 +535,8 @@ def update_bookmark() -> Response:
resource_type
,
resource_type
,
resource_key
)
resource_key
)
_log_update_bookmark
(
resource_key
=
resource_key
,
resource_type
=
resource_type
,
method
=
request
.
method
)
response
=
request_metadata
(
url
=
url
,
method
=
request
.
method
)
response
=
request_metadata
(
url
=
url
,
method
=
request
.
method
)
status_code
=
response
.
status_code
status_code
=
response
.
status_code
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment