PowerShell / PowerShell/DSC

Presenting Content type property diff

Open
#1,683 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Enhancement Needs Triage
Dominant language
Rust
Stars
523
Forks
75
Avg merge
3d 16h
Merged PRs (30d)
24

Description

Summary of the new feature / enhancement

The discussion from the WG regarding the FileContent resource was around how to present to the user which line in the content was different rather than just indicating the entire content property was different.

Proposed technical implementation details (optional)

Resource can optionally return the diff if it implements test directly. However, this is currently expected to be a list of properties that differ. We can enhance this by adding a structured syntax to identify a specific line. For example:

content:200

This would indicate that line 200 in property content differs.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the FileContent resource discussion and the current handling of property differences returned by resources that implement test directly. Determine how a structured value such as content:200 can be represented and presented to users, then verify that content differences identify the relevant line rather than only the property.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.