Jira (PDB-2528) Expose PQL Parser in HTTP Endpoint

1 view
Skip to first unread message

Steve Axthelm (JIRA)

unread,
Mar 14, 2016, 2:37:04 PM3/14/16
to puppe...@googlegroups.com
Steve Axthelm created an issue
 
PuppetDB / New Feature PDB-2528
Expose PQL Parser in HTTP Endpoint
Issue Type: New Feature New Feature
Assignee: Unassigned
Created: 2016/03/14 11:36 AM
Priority: Normal Normal
Reporter: Steve Axthelm

In talking to Wyatt Alt about PQL, he noted that PDB has a parser that complies PQL into the AST syntax. Exposing this functionality in an end point would be potentially useful in supporting structured facts for node group rules in the NC UI.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc)
Atlassian logo

Ryan Senior (JIRA)

unread,
Jul 1, 2016, 4:42:04 PM7/1/16
to puppe...@googlegroups.com
Ryan Senior updated an issue
Change By: Ryan Senior
Sprint: Hopper
This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9)
Atlassian logo

Ryan Senior (JIRA)

unread,
Jul 12, 2016, 12:25:03 PM7/12/16
to puppe...@googlegroups.com
Ryan Senior updated an issue
Change By: Ryan Senior
Story Points: 2

Wyatt Alt (JIRA)

unread,
Jul 20, 2016, 1:24:29 PM7/20/16
to puppe...@googlegroups.com
Wyatt Alt assigned an issue to Molly Waggett
Change By: Wyatt Alt
Assignee: Molly Waggett

Molly Waggett (JIRA)

unread,
Jul 20, 2016, 2:09:10 PM7/20/16
to puppe...@googlegroups.com
Molly Waggett commented on New Feature PDB-2528
 
Re: Expose PQL Parser in HTTP Endpoint

We have decided to add an optional query param to the root endpoint to indicate the desire to parse the PQL query into AST rather than query the database.
For example: curl -X GET http://localhost:8080/pdb/query/v4 -d 'query=<some query>' -d 'parse_pql_only=true'

Susan McNerney (JIRA)

unread,
Jul 27, 2016, 12:12:08 PM7/27/16
to puppe...@googlegroups.com
Susan McNerney updated an issue
 
Change By: Susan McNerney
Fix Version/s: PDB 4.2.0

Steve Axthelm (JIRA)

unread,
Nov 28, 2017, 6:55:02 PM11/28/17
to puppe...@googlegroups.com
Steve Axthelm commented on New Feature PDB-2528
 
Re: Expose PQL Parser in HTTP Endpoint

For the historical record, the query parameter is ast_only not parse_pql_only

This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db)
Atlassian logo

Claudia Petty (Jira)

unread,
Jun 21, 2023, 10:59:59 AM6/21/23
to puppe...@googlegroups.com
Claudia Petty updated an issue
 
Change By: Claudia Petty
Labels: new-feature
This message was sent by Atlassian Jira (v8.20.21#820021-sha1:38274c8)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages