microsoft / microsoft/powerbi-powershell

-Name parameter on cmdlets does not do exact match

Open
#294 0 comments 0 reactions 0 assignees View on GitHub

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.