Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions docs/en-US/New-FabricReport.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Creates a new Report in a specified Microsoft Fabric workspace.

```
New-FabricReport [-WorkspaceId] <guid> [-ReportName] <string> [[-ReportDescription] <string>]
[-ReportPathDefinition] <string> [-WhatIf] [-Confirm] [<CommonParameters>]
[[-ReportPathDefinition] <string>] [-WhatIf] [-Confirm] [<CommonParameters>]
```

## ALIASES
Expand Down Expand Up @@ -111,7 +111,7 @@ HelpMessage: ''

### -ReportPathDefinition

A mandatory path to the folder that contains Report definition files to upload.
An optional path to the folder that contains Report definition files to upload.

```yaml
Type: System.String
Expand All @@ -121,7 +121,7 @@ Aliases: []
ParameterSets:
- Name: (All)
Position: 3
IsRequired: true
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
Expand Down Expand Up @@ -195,4 +195,3 @@ Author: Tiago Balabuch
## RELATED LINKS

{{ Fill in the related links here }}

2 changes: 1 addition & 1 deletion helper/build-and-test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Remove-Module -Name FabricTools -ErrorAction SilentlyContinue
ipmo .\output\module\FabricTools\0.0.1\FabricTools.psd1
Get-Module Fab*

Invoke-ScriptAnalyzer -Path .\source\Public\**
# Invoke-ScriptAnalyzer -Path .\source\Public\**


$tests = Invoke-Pester .\tests\ -PassThru
Expand Down
2 changes: 1 addition & 1 deletion source/Private/Test-FabricApiResponse.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ function Test-FabricApiResponse {

# Try to get Name of Id from the response when new item is created
if ($Operation -eq 'New' -and -not $ObjectIdOrName) {
$ObjectIdOrName = $Response.DisplayName ? $Response.DisplayName : $Response.id
$ObjectIdOrName = if ($Response.DisplayName) { $Response.DisplayName } else { $Response.id }
}
switch ($Operation) {
'New' { $msg = "$TypeName '$ObjectIdOrName' created successfully."; $level = 'Info' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Author: Kamil Nowinski
HandleResponse = $true
ExtractValue = $true
TypeName = "deployment pipeline stage"
ObjectIdOrName = $StageId ? $StageId : $DeploymentPipelineId
ObjectIdOrName = if ($StageId) { $StageId } else { $DeploymentPipelineId }
}
$response = Invoke-FabricRestMethod @apiParameters

Expand Down
4 changes: 2 additions & 2 deletions source/Public/Report/New-FabricReport.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function New-FabricReport
An optional description for the Report.

.PARAMETER ReportPathDefinition
A mandatory path to the folder that contains Report definition files to upload.
An optional path to the folder that contains Report definition files to upload.


.EXAMPLE
Expand Down Expand Up @@ -49,7 +49,7 @@ function New-FabricReport
[ValidateNotNullOrEmpty()]
[string]$ReportDescription,

[Parameter(Mandatory = $true)]
[Parameter(Mandatory = $false)]
[ValidateNotNullOrEmpty()]
[string]$ReportPathDefinition
)
Expand Down
Loading