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

(maint) Mergeup master into 1.0 #250

Merged
merged 18 commits into from
May 16, 2020
Merged

Conversation

glennsarti
Copy link
Contributor

No description provided.

glennsarti and others added 18 commits April 3, 2020 08:48
It appears that Facter 4.0.16 is resetting the Facter search dirs
which then causes the sidecar to not find some external or custom facts.
This commit monkey patches the Facter module and makes it possible
to limit the number of resets to one.
Co-Authored-By: David Schmitt <david.schmitt@puppet.com>
Revert "(puppetlabsGH-238) Monkey patch Facter for minimal resets"
This commit adds an acceptance test for the puppet/getFacts request. Previously
this message was added to the message handler, but not to the test suite.
Previously the puppet/getFacts request would call out to Facter directly however
this can be very slow, particularly with Facter v2 in the PDK.  This commit
changes the request to instead use the object cache which already has all of the
available facter information.

This commit also moves the method from the PuppetHelper to the FacterHelper
where it would make more sense.  This is tested as part of the acceptance suite.
Now that the language server no longer calls the facts_all action, the
supporting code can be removed.
…services into mergeup-master

* 'master' of https://github.com/glennsarti/puppet-editor-services:
  (maint) Release 0.26.0
  (puppetlabsGH-245) Remove facts_all sidecar request
  (puppetlabsGH-245) Use object cache for fact data
  (puppetlabsGH-245) Add acceptance tests for getFacts request
  (puppetlabsGH-242) Puppet Facts Endpoint
  Revert "(puppetlabsGH-238) Monkey patch Facter for minimal resets"
  (maint) Update branding urls
  (puppetlabsGH-238) Monkey patch Facter for minimal resets
  (maint) Update rubocop to 0.80.x
This commit updates the Facter Helper for 1.0, due to the change in the
session state.
@glennsarti
Copy link
Contributor Author

Self merging this as it's a mergeup from master (already reviewed) and 1.0 is not released yet.

@glennsarti glennsarti merged commit 5088c22 into puppetlabs:1.0 May 16, 2020
@glennsarti glennsarti deleted the mergeup-master branch May 23, 2020 12:10
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.

2 participants