Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(GH-213) Use Facts from the Sidecar #215

Merged
merged 2 commits into from
Jan 22, 2020

Conversation

glennsarti
Copy link
Contributor

Fixes #213

#213 Part 2


Previously in commit 590804e the Sidecar was updated to retrieve facts
however the object module was incorrectly setup to be used by the Language
Server in-memory cache. This commit changes the protocol to have a Fact and
FactList, similar to PuppetClass etc.


Now that facts can be loaded from the Sidecar, the FacterHelper needs to be
updated to use these instead of calling Facter directly. This commit:

  • Modifies the FacterHelper to call the sidecar queue to get the Fact
    information
  • Modifies the FacterHelper to expose methods to query facts
  • Updates the cache to store facts
  • Updates the tests for the new Fact collection method

@glennsarti glennsarti changed the title Gh 213 use fact sidecar (GH-213) Use Facts from the Sidecar Jan 21, 2020
@glennsarti glennsarti self-assigned this Jan 21, 2020
@glennsarti glennsarti added this to the 0.24.0 milestone Jan 21, 2020
Previously in commit 590804e the Sidecar was updated to retrieve facts
however the object module was incorrectly setup to be used by the Language
Server in-memory cache. This commit changes the protocol to have a Fact and
FactList, similar to PuppetClass etc.
Now that facts can be loaded from the Sidecar, the FacterHelper needs to be
updated to use these instead of calling Facter directly.  This commit:

* Modifies the FacterHelper to call the sidecar queue to get the Fact
  information
* Modifies the FacterHelper to expose methods to query facts
* Updates the cache to store facts
* Updates the tests for the new Fact collection method
@glennsarti glennsarti force-pushed the gh-213-use-fact-sidecar branch from 4240883 to a8c5e1f Compare January 21, 2020 13:12
@jpogran jpogran merged commit 131c2ea into puppetlabs:master Jan 22, 2020
@glennsarti glennsarti deleted the gh-213-use-fact-sidecar branch February 3, 2020 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use the sidecar for gathering facts
2 participants