microsoft / microsoft/powerbi-powershell
CopyWorkspaceSampleScript.ps1 should be a function, not a script-function
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- C#
- Stars
- 413
- Forks
- 134
- Avg merge
- 33m
- Merged PRs (30d)
- 1
Description
Copying a Workspace is a very standard activity and should be supported by a proper PowerShell Function, not a Script Function.
https://github.com/Microsoft/powerbi-powershell/blob/master/examples/CopyWorkspaceSampleScript.ps1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with examples/CopyWorkspaceSampleScript.ps1, linked in the issue, and inspect how the workspace-copy operation is currently exposed. Update that sample so it is provided as a proper PowerShell function rather than a script function, then verify the example still supports copying a workspace.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- cli
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100