Jira (PDB-4589) Add PuppetDB behavior for structured facts and regex in docs

35 views
Skip to first unread message

Logan Mantyla (JIRA)

unread,
Nov 15, 2019, 4:44:03 PM11/15/19
to puppe...@googlegroups.com
Logan Mantyla moved an issue
 
PuppetDB / Improvement PDB-4589
Add PuppetDB behavior for structured facts and regex in docs
Change By: Logan Mantyla
Scrum Team: PuppetDB
Workflow: Documentation Scrum Team Workflow
Key: DOC PDB - 4380 4589
Project: Documentation [Internal] PuppetDB
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Logan Mantyla (JIRA)

unread,
Nov 15, 2019, 4:48:03 PM11/15/19
to puppe...@googlegroups.com
Logan Mantyla assigned an issue to Unassigned
Change By: Logan Mantyla
Assignee: Logan Mantyla

Logan Mantyla (JIRA)

unread,
Nov 15, 2019, 4:48:03 PM11/15/19
to puppe...@googlegroups.com
Logan Mantyla updated an issue
I realized this ticket is for PuppetDB and not docs. 

This came from a bug fix for PE-26106 where there were some interesting PuppetDB behaviors related to regex matching for structured facts. The bug note includes the following language: 

"PuppetDB's regular expression matching behaves in surprising ways for structured fact value comparison. For example for the structured fact `os`, a rule that matches `["~", "os", ":"]` will match every node that has the "os" structured fact because the regular expression is applied to the JSON encoded version of the fact value.
The classifier's classification doesn't use puppetdb for determining classification, and regular expressions in the classifier rules syntax only support direct value comparisons of string types."

We thought it would be helpful to make note of this behavior in the PuppetDB docs, somewhere around here: [https://puppet.com/docs/puppetdb/latest/api/query/v4/ast.html#regexp-match

Please let me know if this is not the right channel for this ticket or if you have any questions. 

Logan Mantyla (JIRA)

unread,
Nov 15, 2019, 4:49:04 PM11/15/19
to puppe...@googlegroups.com
Logan Mantyla commented on Improvement PDB-4589
 
Re: Add PuppetDB behavior for structured facts and regex in docs

Jonathan Newman I moved this to PuppetDB since they manage their own docs, but will still include what we discussed in the release note.

Zachary Kent (JIRA)

unread,
Nov 18, 2019, 7:07:04 PM11/18/19
to puppe...@googlegroups.com

David McTavish (Jira)

unread,
Feb 2, 2022, 3:51:02 PM2/2/22
to puppe...@googlegroups.com
David McTavish updated an issue
Change By: David McTavish
Sprint: HAHA/Grooming
This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)
Atlassian logo

David McTavish (Jira)

unread,
Feb 2, 2022, 3:51:02 PM2/2/22
to puppe...@googlegroups.com
David McTavish updated an issue
Change By: David McTavish
Sprint: HAHA/Grooming HA 2022-02-16

David McTavish (Jira)

unread,
Feb 2, 2022, 3:52:02 PM2/2/22
to puppe...@googlegroups.com

David McTavish (Jira)

unread,
Feb 16, 2022, 2:42:03 PM2/16/22
to puppe...@googlegroups.com
David McTavish updated an issue
Change By: David McTavish
Sprint: HAHA On Deck, HA 2022-02-16

David McTavish (Jira)

unread,
Mar 1, 2022, 1:52:03 PM3/1/22
to puppe...@googlegroups.com
David McTavish updated an issue
Change By: David McTavish
Sprint: I&M&H On Deck, HA 2022-02-16
Reply all
Reply to author
Forward
0 new messages