Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Q
query-conversion
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
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
query-conversion
Commits
ca2c08f4
Verified
Commit
ca2c08f4
authored
3 months ago
by
Dennis Collaris
Browse files
Options
Downloads
Patches
Plain Diff
feat: change incoming query JSON to only include query ID, ML and cached parameters
parent
c339574a
No related branches found
No related tags found
1 merge request
!5
feat: change incoming query JSON to only include query ID, ML and cached parameters
Pipeline
#142735
failed
3 months ago
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
entityv2/queryStruct.go
+4
-13
4 additions, 13 deletions
entityv2/queryStruct.go
with
4 additions
and
13 deletions
entityv2/queryStruct.go
+
4
−
13
View file @
ca2c08f4
...
...
@@ -9,17 +9,8 @@ package entityv2
IncomingQueryJSON describes the query coming into the service in JSON format
*/
type
IncomingQueryJSON
struct
{
SaveStateID
string
`json:"saveStateId"`
Limit
int
`json:"limit"`
Return
[]
string
`json:"return"`
Query
[]
QueryStruct
`json:"query"`
Logic
interface
{}
`json:"logic"`
// Entities []QueryEntityStruct `json:"entities"`
// Relations []QueryRelationStruct `json:"relations"`
// GroupBys []QueryGroupByStruct `json:"groupBys"`
MachineLearning
[]
QueryMLStruct
`json:"machineLearning"`
// Modifiers []QueryModifierStruct
// Prefix string
QueryID
string
`json:"queryID"`
MachineLearning
[]
QueryMLStruct
`json:"ml"`
Cached
bool
`json:"cached"`
}
...
...
@@ -27,8 +18,8 @@ type IncomingQueryJSON struct {
QueryMLStruct holds info for machinelearning
*/
type
QueryMLStruct
struct
{
Type
string
Parameters
[]
string
Type
string
`json:"type"`
Parameters
[]
string
`json:"parameters"`
}
type
QueryStruct
struct
{
...
...
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