Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DBRepo
Manage
Activity
Members
Labels
Plan
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FAIR Data Austria DB Repository
DBRepo
Commits
515b7b53
Verified
Commit
515b7b53
authored
Jun 16, 2024
by
Martin Weise
Browse files
Options
Downloads
Patches
Plain Diff
Debug information for docker compose crashes
parent
e540bf88
Branches
Branches containing commit
Tags
Tags containing commit
3 merge requests
!296
Dev
,
!293
Dev
,
!289
Dev
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
dbrepo-ui/composables/table-service.ts
+0
-1
0 additions, 1 deletion
dbrepo-ui/composables/table-service.ts
dbrepo-ui/utils/index.ts
+3
-0
3 additions, 0 deletions
dbrepo-ui/utils/index.ts
with
3 additions
and
1 deletion
dbrepo-ui/composables/table-service.ts
+
0
−
1
View file @
515b7b53
...
@@ -69,7 +69,6 @@ export const useTableService = (): any => {
...
@@ -69,7 +69,6 @@ export const useTableService = (): any => {
async
function
getData
(
databaseId
:
number
,
tableId
:
number
,
page
:
number
,
size
:
number
,
timestamp
:
Date
):
Promise
<
QueryResultDto
>
{
async
function
getData
(
databaseId
:
number
,
tableId
:
number
,
page
:
number
,
size
:
number
,
timestamp
:
Date
):
Promise
<
QueryResultDto
>
{
const
axios
=
useAxiosInstance
()
const
axios
=
useAxiosInstance
()
console
.
debug
(
'
====>
'
,
mapFilter
(
timestamp
,
page
,
size
))
console
.
debug
(
'
get data for table with id
'
,
tableId
,
'
in database with id
'
,
databaseId
);
console
.
debug
(
'
get data for table with id
'
,
tableId
,
'
in database with id
'
,
databaseId
);
return
new
Promise
<
QueryResultDto
>
((
resolve
,
reject
)
=>
{
return
new
Promise
<
QueryResultDto
>
((
resolve
,
reject
)
=>
{
axios
.
get
<
QueryResultDto
>
(
`/api/database/
${
databaseId
}
/table/
${
tableId
}
/data`
,
{
params
:
mapFilter
(
timestamp
,
page
,
size
),
timeout
:
30
_000
})
axios
.
get
<
QueryResultDto
>
(
`/api/database/
${
databaseId
}
/table/
${
tableId
}
/data`
,
{
params
:
mapFilter
(
timestamp
,
page
,
size
),
timeout
:
30
_000
})
...
...
This diff is collapsed.
Click to expand it.
dbrepo-ui/utils/index.ts
+
3
−
0
View file @
515b7b53
...
@@ -1056,10 +1056,12 @@ export function axiosErrorToApiError(error: AxiosError): ApiErrorDto {
...
@@ -1056,10 +1056,12 @@ export function axiosErrorToApiError(error: AxiosError): ApiErrorDto {
code
:
'
error.axios.timeout
'
,
code
:
'
error.axios.timeout
'
,
message
:
error
.
message
message
:
error
.
message
}
}
console
.
info
(
'
==> mapped axios error to
'
,
errorObj
)
return
errorObj
return
errorObj
}
}
if
(
error
.
response
?.
data
)
{
if
(
error
.
response
?.
data
)
{
const
errorObj
:
ApiErrorDto
=
(
error
.
response
?.
data
as
ApiErrorDto
)
const
errorObj
:
ApiErrorDto
=
(
error
.
response
?.
data
as
ApiErrorDto
)
console
.
info
(
'
==> mapped axios error to
'
,
errorObj
)
return
errorObj
return
errorObj
}
}
const
errorObj
:
ApiErrorDto
=
{
const
errorObj
:
ApiErrorDto
=
{
...
@@ -1067,6 +1069,7 @@ export function axiosErrorToApiError(error: AxiosError): ApiErrorDto {
...
@@ -1067,6 +1069,7 @@ export function axiosErrorToApiError(error: AxiosError): ApiErrorDto {
code
:
'
error.axios.connection
'
,
code
:
'
error.axios.connection
'
,
message
:
error
.
message
message
:
error
.
message
}
}
console
.
info
(
'
==> mapped axios error to
'
,
errorObj
)
return
errorObj
return
errorObj
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment