microsoft / microsoft/powerbi-powershell
-Name parameter on cmdlets does not do exact match
Open
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 413
- Forks
- 134
- Avg merge
- 33m
- Merged PRs (30d)
- 1
Description
Given reports/datasets 'X' and 'XY' in workspace :
Get-PowerBIReport -WorkspaceId <id>-Name 'X'
Get-PowerBIDataset -WorkspaceId $<id>-Name 'X'
both return both 'X' and 'XY', which seems to be a bug as if the -Name parameter is doing a substring match? It seems related that sending the TMSL to refresh the dataset 'XY' as below refreshes instead dataset 'X':
{
"refresh": {
"type": "full",
"objects": [
{
"database": "XY"
}
]
}
}
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 by locating the implementations of Get-PowerBIReport and Get-PowerBIDataset, then inspect the code handling the TMSL dataset name during refresh. Reproduce the examples with reports or datasets named X and XY. Done means -Name and the refresh object select only the exact matching name.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, powershell
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100