Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Q
query-service
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
GraphPolaris
Microservices
query-service
Compare revisions
v1.18.0 to v1.18.1
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
graphpolaris/microservices/query-service
Select target project
No results found
v1.18.1
Select Git revision
Swap
Target
graphpolaris/microservices/query-service
Select target project
graphpolaris/microservices/query-service
1 result
v1.18.0
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (5)
chore: trigger pipeline
· 8ad2556d
Leonardo
authored
1 month ago
8ad2556d
chore: trigger pipeline
· 073b481c
Leonardo
authored
1 month ago
073b481c
chore: trigger pipeline
· 5d4eca92
Leonardo
authored
1 month ago
5d4eca92
chore: trigger pipeline
· e624af9a
Leonardo
authored
1 month ago
e624af9a
fix: use direction enum for relation parsing
· 4d54ac8d
Leonardo
authored
1 month ago
4d54ac8d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/utils/cypher/converter/relation.ts
+1
-0
1 addition, 0 deletions
src/utils/cypher/converter/relation.ts
src/utils/reactflow/query2backend.ts
+3
-3
3 additions, 3 deletions
src/utils/reactflow/query2backend.ts
with
4 additions
and
3 deletions
src/utils/cypher/converter/relation.ts
View file @
4d54ac8d
import
type
{
RelationStruct
}
from
'
ts-common
'
;
import
{
getNodeCypher
}
from
'
./node
'
;
import
type
{
QueryCacheData
}
from
'
./model
'
;
import
{
log
}
from
'
ts-common/src/logger/logger
'
;
export
const
NoNodeError
=
new
Error
(
'
relation must have a node
'
);
...
...
This diff is collapsed.
Click to expand it.
src/utils/reactflow/query2backend.ts
View file @
4d54ac8d
...
...
@@ -14,7 +14,7 @@ import type {
}
from
'
ts-common/src/model/graphology
'
;
import
type
{
AllLogicStatement
}
from
'
ts-common/src/model/query/logic/general
'
;
import
{
QueryElementTypes
}
from
'
ts-common/src/model/reactflow
'
;
import
{
type
QueryBuilderSettings
,
QueryUnionType
}
from
'
ts-common/src/model/query/queryBuilderModel
'
;
import
{
type
QueryBuilderSettings
,
QueryRelationDirection
,
QueryUnionType
}
from
'
ts-common/src/model/query/queryBuilderModel
'
;
import
{
log
}
from
'
../../logger
'
;
// Chunk extraction: traverse graph to find all paths of logic between relations and entities
...
...
@@ -269,9 +269,9 @@ export function Query2BackendQuery(
depth
:
_currNode
.
depth
,
direction
:
!
_currNode
.
direction
?
'
BOTH
'
:
_currNode
.
direction
===
'
right
'
:
_currNode
.
direction
===
QueryRelationDirection
.
RIGHT
?
'
TO
'
:
_currNode
.
direction
===
'
left
'
:
_currNode
.
direction
===
QueryRelationDirection
.
LEFT
?
'
FROM
'
:
'
BOTH
'
,
node
:
chunk
.
length
===
position
+
1
?
undefined
:
(
processConnection
(
chunk
,
position
+
1
)
as
NodeStruct
),
...
...
This diff is collapsed.
Click to expand it.