Jira (PDB-2962) (maint) Missing implicit inventory relationships

2 views
Skip to first unread message

gepetto-bot (JIRA)

unread,
Aug 15, 2016, 8:11:03 AM8/15/16
to puppe...@googlegroups.com
gepetto-bot created an issue
 
PuppetDB / Bug PDB-2962
(maint) Missing implicit inventory relationships
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2016/08/15 5:10 AM
Priority: Normal Normal
Reporter: gepetto-bot

This adds relationships from environment and node entities to inventory, to
behave in a similar way to factsets. This allows implicit subqueries to work.

Signed-off-by: Ken Barber <k...@bob.sh>

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9)
Atlassian logo

Ken Barber (JIRA)

unread,
Aug 15, 2016, 8:32:03 AM8/15/16
to puppe...@googlegroups.com
Ken Barber updated an issue
Change By: Ken Barber
Affects Version/s: PDB 4.2.0
Fix Version/s: PDB 4.2.1
    (maint) Missing implicit inventory relationships

This adds relationships from environment and node entities to inventory ,  to

behave in a similar way to factsets. This allows implicit subqueries to work.

    Without this patch you cannot do queries of this nature:

        nodes { inventory { facts.operatingsystem = "CentOS" } }

    Instead you are forced to use explicit querying:

        nodes { certname in inventory[certname] { facts.operatingsystem = "CentOS" } }

    Which is a lot more verbose and should be unnecessary.

Signed-off-by: Ken Barber <k...@bob.sh>

Ken Barber (JIRA)

unread,
Aug 15, 2016, 8:32:04 AM8/15/16
to puppe...@googlegroups.com
Ken Barber updated an issue
    (maint) Missing implicit inventory relationships

    This adds relationships from environment and node entities to inventory to

    behave in a similar way to factsets. This allows implicit subqueries to work.

    Without this patch you cannot do queries of this nature:

{{         nodes { inventory { facts.operatingsystem = "CentOS" } }
}}
    Instead you are forced to use explicit querying:

{{         nodes { certname in inventory[certname] { facts.operatingsystem = "CentOS" } }
}}
    Which is a lot more verbose and should be unnecessary.

Signed-off-by: Ken Barber <k...@bob.sh>

Ken Barber (JIRA)

unread,
Aug 15, 2016, 8:33:03 AM8/15/16
to puppe...@googlegroups.com
Ken Barber updated an issue
    (maint) Missing implicit inventory relationships

    This adds relationships from environment and node entities to inventory to
    behave in a similar way to factsets. This allows implicit subqueries to work.

    Without this patch you cannot do queries of this nature:

{ { code}
        nodes { inventory { facts.operatingsystem = "CentOS" } }
{code } }

    Instead you are forced to use explicit querying:

{ { code}
        nodes { certname in inventory[certname] { facts.operatingsystem = "CentOS" } }
{code } }

    Which is a lot more verbose and should be unnecessary.

Signed-off-by: Ken Barber <k...@bob.sh>

Ken Barber (JIRA)

unread,
Aug 15, 2016, 11:20:03 AM8/15/16
to puppe...@googlegroups.com
Ken Barber updated an issue
Change By: Ken Barber
Affects Version/s: PDB 4.2.0
Fix Version/s: PDB 4.2.1
Fix Version/s: PDB 4.3.0
Issue Type: Bug New Feature

Ryan Senior (JIRA)

unread,
Oct 26, 2016, 9:46:03 AM10/26/16
to puppe...@googlegroups.com
Ryan Senior updated an issue
Change By: Ryan Senior
Fix Version/s: PDB 4.3.0
Fix Version/s: PDB 4.2.4
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Claudia Petty (Jira)

unread,
Jun 21, 2023, 10:56:10 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