Jira (FACT-3006) Centralize and document fact matching and filtering

18 views
Skip to first unread message

Gabriel Nagy (Jira)

unread,
Apr 12, 2021, 7:03:02 AM4/12/21
to puppe...@googlegroups.com
Gabriel Nagy created an issue
 
Facter / Improvement FACT-3006
Centralize and document fact matching and filtering
Issue Type: Improvement Improvement
Assignee: Unassigned
Created: 2021/04/12 4:02 AM
Labels: tech-debt
Priority: Normal Normal
Reporter: Gabriel Nagy

Throughout FACT-2998 we improved fact querying/matching/filtering but currently the functionality (attempting to dig in the facts) is spread out in at least 2 places: FactAugmenter and FactFilter.

We should unify all these functionalities in a single class, preferably inside the FactFilter class.

Also, even if it's private API we should document the purpose and boundaries of the FactFilter class, preferably also the other classes (Augmenter, QueryParser...).

FactFilter: https://github.com/puppetlabs/facter/blob/0c769fff1e70f0673db90841f305aacd190878cb/lib/facter/framework/core/fact_filter.rb#L8
FactAugmenter: https://github.com/puppetlabs/facter/blob/0ac50a34ec0ec079413b2f1329085b490821d667/lib/facter/framework/core/fact_augmenter.rb#L36
FactCollection (mentioning this because it also relies on the dig..rescue pattern): https://github.com/puppetlabs/facter/blob/0ac50a34ec0ec079413b2f1329085b490821d667/lib/facter/models/fact_collection.rb#L24

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Mihai Buzgau (Jira)

unread,
Apr 13, 2021, 9:34:02 AM4/13/21
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Sprint: ready for triage NW-2021-04-28

Ciprian Badescu (Jira)

unread,
Apr 14, 2021, 5:39:02 AM4/14/21
to puppe...@googlegroups.com

Gheorghe Popescu (Jira)

unread,
Apr 23, 2021, 1:52:04 AM4/23/21
to puppe...@googlegroups.com

Mihai Buzgau (Jira)

unread,
Apr 28, 2021, 5:51:03 AM4/28/21
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Sprint: NW-2021-04-28 , NW-2021-05-19

Gheorghe Popescu (Jira)

unread,
May 13, 2021, 2:06:04 AM5/13/21
to puppe...@googlegroups.com

Gheorghe Popescu (Jira)

unread,
May 13, 2021, 2:07:03 AM5/13/21
to puppe...@googlegroups.com
Gheorghe Popescu updated an issue
Change By: Gheorghe Popescu
Release Notes Summary: Improves the overall mechanism of fact filtering and matching.

Gabriel Nagy (Jira)

unread,
May 19, 2021, 8:04:04 AM5/19/21
to puppe...@googlegroups.com
Gabriel Nagy updated an issue
Change By: Gabriel Nagy
Fix Version/s: FACT 4.2.0

Claire Cadman (Jira)

unread,
May 20, 2021, 8:26:04 AM5/20/21
to puppe...@googlegroups.com
Claire Cadman updated an issue
Change By: Claire Cadman
Labels: doc-reviewed tech-debt
Reply all
Reply to author
Forward
0 new messages