[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:
Story Points: 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 <ken@bob.sh>

Generated at Sat Jul 11 01:51:32 PDT 2020 using Jira 8.5.2#805002-sha1:a66f9354b9e12ac788984e5d84669c903a370049.