Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-server
Commits
ab88d92e
Verified
Commit
ab88d92e
authored
4 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
FIX: find any version of entity ...
parent
e48c9acf
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/caosdb/server/query/Query.java
+3
-2
3 additions, 2 deletions
src/main/java/org/caosdb/server/query/Query.java
with
3 additions
and
2 deletions
src/main/java/org/caosdb/server/query/Query.java
+
3
−
2
View file @
ab88d92e
...
...
@@ -272,7 +272,7 @@ public class Query implements QueryInterface, ToElementable, TransactionInterfac
applyQueryTemplates
(
this
,
getSourceSet
());
}
if
(
this
.
role
!=
null
)
{
if
(
this
.
role
!=
null
&&
this
.
role
!=
Role
.
ENTITY
)
{
final
RoleFilter
roleFilter
=
new
RoleFilter
(
this
.
role
,
"="
,
this
.
versioned
);
roleFilter
.
apply
(
this
);
}
...
...
@@ -324,7 +324,8 @@ public class Query implements QueryInterface, ToElementable, TransactionInterfac
final
Query
subQuery
=
new
Query
(
q
.
getValue
(),
query
.
getUser
());
subQuery
.
setAccess
(
query
.
getAccess
());
subQuery
.
parse
();
// TODO versioning is set to false here (hard) it this the best way to do it?
// versioning for QueryTemplates is not supported and probably never will.
final
String
subResultSet
=
subQuery
.
executeStrategy
(
false
);
// ... and merge the resultSets.
...
...
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