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
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
b9e24d70
Verified
Commit
b9e24d70
authored
11 months ago
by
Martin Weise
Browse files
Options
Downloads
Patches
Plain Diff
Hotfix search database
parent
e718bc0f
No related branches found
No related tags found
2 merge requests
!277
Dev
,
!275
Dev
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dbrepo-metadata-service/services/src/main/java/at/tuwien/gateway/impl/SearchServiceGatewayImpl.java
+9
-0
9 additions, 0 deletions
...java/at/tuwien/gateway/impl/SearchServiceGatewayImpl.java
with
9 additions
and
0 deletions
dbrepo-metadata-service/services/src/main/java/at/tuwien/gateway/impl/SearchServiceGatewayImpl.java
+
9
−
0
View file @
b9e24d70
package
at.tuwien.gateway.impl
;
import
at.tuwien.api.database.DatabaseDto
;
import
at.tuwien.api.database.ViewDto
;
import
at.tuwien.api.database.table.constraints.unique.UniqueDto
;
import
at.tuwien.entities.database.Database
;
import
at.tuwien.entities.database.View
;
...
...
@@ -67,6 +68,14 @@ public class SearchServiceGatewayImpl implements SearchServiceGateway {
// });
});
});
payload
.
getViews
()
.
stream
()
.
map
(
ViewDto:
:
getColumns
)
.
flatMap
(
List:
:
stream
)
.
forEach
(
columns
->
{
columns
.
setIsPublic
(
database
.
getIsPublic
());
columns
.
setDatabaseId
(
database
.
getId
());
});
final
HttpHeaders
headers
=
new
HttpHeaders
();
headers
.
set
(
"Accept"
,
"application/json"
);
headers
.
set
(
"Content-Type"
,
"application/json"
);
...
...
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