|
The new index endpoint introduced the capability to query any entity without requiring a particular endpoint. This decision however meant that we had to make a decision about whether for all entity types, we were going to have to decide whether we show all entities even if they are on deactivated nodes, or not. In the past however, the `resource` endpoint (and others like facts) always hid data for deactivated nodes so this seems surprising to some users.
Not only that, hiding deactivated nodes doesn't even work that well in PQL without an implicit subquery across nodes. That is, the ["=", ["node","active"] true] magic doesn't have short-hand in PQL.
This ticket is about deciding what to do about that. In one sense, we've discussed removing this strange concept of deactivation, or amending it to something that works for us today. In another sense, query context might decide - and one thing has been discussed is that users wanting to query from puppet itself never want to see facts or resources from deactivated nodes.
I think this solution is still to be worked out, and this is what this ticket is about - creating a proposal and then deciding on an implementation to fix.
|