[Idea] Synthetic get based on export
#1305
Replies: 4 comments
-
|
While I do think there's value in a synthetic
I believe these problems are tractable, but would require some careful design considerations. A few things this made me think about in no particular order:
While I do think there are some very neat performance and convenience benefits from this proposal, we should weigh those against the increasing complexity for defining resources and interoperating with them not just through DSC but for higher order tools. The more flexibility authors have in selecting which operations to implement and which to use synthetically, the more context and consideration is required during resource design. |
Beta Was this translation helpful? Give feedback.
-
|
Well reasoned. Though I believe the effort is worth it. Using a single
The largest problem I see is actually one of user expectations. The documentation never says configurations will be evaluated in order from top to bottom. And the phrase "The example document is declarative. It describes the desired state, not how to put the system into that state." implies that order may not be maintained. However, commands like This could easily save hundreds of * Especially if there is ever a V3 "Microsoft.VisualStudio.DSC/VSComponents" adapter As to the barriers:
|
Beta Was this translation helpful? Give feedback.
-
This is a fair callout - I need to address that on the docs side. For the purposes of this discussion, I'll clarify that:
So while the statement in the documentation is true - the configuration document is declarative, not imperative - it is also true that the default order is determined by the author and the order that the instances are defined. If that order would be invalid (such as for a dependency chain where a dependent resource is declared before its dependency), DSC invokes the resources in the correct order. Of course, it can only determine a "correct" order when the author defines dependency relationships between the instances. If you try to configure SQL Server before you install it without declaring that the configuration depends on the install, the set operation will still fail. Regarding caching, we haven't implemented generic caching for resource export because there wasn't a compelling reason to do so. Some resources have implemented their own caching behaviors (such as the PowerShell adapters), but we don't have an API and coherent way for resources to participate in caching data within a I can see a lot of value in using |
Beta Was this translation helpful? Give feedback.
-
|
Sounds like we're on the same page. Nice feature, but lots of work before it can happen. Leaving the issue open, but you could probably drop the "Needs Triage" label. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary of the new feature / enhancement
Allow using
exportwith pre-defined matching rules ifgetis not defined.Reasoning
Some package managers, like
pip, easily support exporting all installed packages but not filtering them to a single package.In creating a pip resource I had to essentially perform an export* then manually filter the results.
Combining this with #1261 would massively simplify the job of resource authors in similar situations.
Proposed technical implementation details (optional)
No response
Beta Was this translation helpful? Give feedback.
All reactions