Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[query] Add endpoint that parses query to an AST #2002

Merged
merged 10 commits into from
Oct 16, 2019

Conversation

arnikola
Copy link
Collaborator

What this PR does / why we need it:
Adds an endpoint that parses and returns a JSON representation of the given query.

Special notes for your reviewer:

Does this PR introduce a user-facing and/or backwards incompatible change?:

NONE

Does this PR require updating code package or user-facing documentation?:

NONE

@codecov
Copy link

codecov bot commented Oct 15, 2019

Codecov Report

Merging #2002 into master will increase coverage by 0.4%.
The diff coverage is 65.9%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #2002     +/-   ##
=========================================
+ Coverage      63%    63.5%   +0.4%     
=========================================
  Files        1123     1119      -4     
  Lines      106854   106426    -428     
=========================================
+ Hits        67419    67635    +216     
+ Misses      35061    34455    -606     
+ Partials     4374     4336     -38
Flag Coverage Δ
#aggregator 65% <ø> (-14.7%) ⬇️
#cluster 38.5% <ø> (-17.8%) ⬇️
#collector 61.6% <ø> (-2.1%) ⬇️
#dbnode 64.9% <ø> (+0.9%) ⬆️
#m3em 51.7% <ø> (-7.9%) ⬇️
#m3ninx 61.1% <ø> (+0.2%) ⬆️
#m3nsch 51.1% <ø> (ø) ⬆️
#metrics 13.3% <ø> (-4.4%) ⬇️
#msg 61.2% <ø> (-13.6%) ⬇️
#query 53% <65.9%> (-15.2%) ⬇️
#x 68% <ø> (-7%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b267303...2364d68. Read the comment docs.

@robskillington robskillington changed the title [query] Add endpoint that parses query to an AST. [query] Add endpoint that parses query to an AST Oct 15, 2019
return nodeMap, nil
}

func parsingThreshold(r *http.Request) bool {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dead code?

@@ -53,6 +53,7 @@ const (
timeParam = "time"
queryParam = "query"
debugParam = "debug"
thresholdParam = "threshold"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like this is dead code too?

Copy link
Collaborator

@robskillington robskillington left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM other than minor comments

@arnikola arnikola merged commit 68e3e4c into master Oct 16, 2019
@arnikola arnikola deleted the arnikola/parse-endpoint branch October 16, 2019 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants