[PDB-2962] (maint) Missing implicit inventory relationships Created: 2016/08/15  Updated: 2016/10/31  Resolved: 2016/08/18

Status: Closed
Project: PuppetDB
Component/s: None
Affects Version/s: None
Fix Version/s: PDB 4.2.4

Type: New Feature Priority: Normal
Reporter: gepetto-bot Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
Template:
Story Points: 1

 Description   

(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 <ken@bob.sh>


Generated at Sat Dec 07 16:16:12 PST 2019 using JIRA 7.7.1#77002-sha1:e75ca93d5574d9409c0630b81c894d9065296414.