microsoft / microsoft/CSS-Exchange

[Work Item] Create a Shared Function(s) for displaying object in a common format to avoid lots of lines of code/code changes

Open
#1,773 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue Work Item
Dominant language
PowerShell
Stars
1.3k
Forks
395
Avg merge
14h 7m
Merged PRs (30d)
5

Description

Describe the work
Would like to move and create more functions similar to this:

https://github.com/microsoft/CSS-Exchange/blob/fc8b7ada30c101a5bda0d07c1ba66262d7d91356/Search/Troubleshoot-ModernSearch/Write/WriteHelpers.ps1

This will help the display of object a little bit better and avoid formatting issues like this:

image

Where adding a color code format to the object being displayed required multiple lines to be adjusted and if we add another attribute to the object that is longer, we have to then adjust all the lines as well to keep the same formatting.

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 Search/Troubleshoot-ModernSearch/Write/WriteHelpers.ps1, the referenced example of shared display helpers. Search the repository for repeated object-formatting and color-output code, then determine the common scope and confirm that the affected output remains consistently aligned when attributes change.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
tooling
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.