Skip to content

Commit 74577eb

Browse files
committed
Remove legacy aliases from functions for clarity
This change eliminates outdated aliases from various functions to streamline the codebase and enhance maintainability. By removing references to old PowerBI-focused aliases, we ensure that the functions are more consistent and easier to understand.
1 parent 48071c0 commit 74577eb

19 files changed

Lines changed: 1 addition & 53 deletions

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
### Fixed
1313

1414
- Added `Id` parameter alias to Workspace functions that take `WorkspaceId` to support compatibility with API field names and issue #158.
15+
- Removed all legacy FAB and PowerBI aliases from functions to clean up the module and remove references to old PowerBI-focused codebase (issue #47).
1516

1617
### Deprecated
1718

source/Public/Capacity/Get-FabricCapacityRefreshables.ps1

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ Author: Ioana Bouariu
2323
2424
#>
2525

26-
# Define aliases for the function for flexibility.
27-
[Alias("Get-FabCapacityRefreshables")]
28-
2926
# Define a mandatory parameter for the number of top refreshable capacities to retrieve.
3027
Param (
3128
[Parameter(Mandatory = $false)]

source/Public/Capacity/Get-FabricCapacityState.ps1

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ Author: Ioana Bouariu
3030
#>
3131

3232
# This function retrieves the state of a specific capacity.
33-
# Define aliases for the function for flexibility.
34-
[Alias("Get-FabCapacityState")]
35-
3633
# Define mandatory parameters for the subscription ID, resource group, and capacity.
3734
Param (
3835
[Parameter(Mandatory = $true)]

source/Public/Capacity/Get-FabricCapacityTenantOverrides.ps1

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ Author: Ioana Bouariu
2121
#>
2222

2323
# This function retrieves the tenant overrides for all capacities.
24-
# Define aliases for the function for flexibility.
25-
[Alias("Get-FabCapacityTenantOverrides")]
26-
2724
Param (
2825
)
2926

source/Public/Capacity/Get-FabricCapacityWorkload.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ Author: Ioana Bouariu
2525

2626
# This function retrieves the workloads for a specific capacity.
2727
# Define aliases for the function for flexibility.
28-
[Alias("Get-FabCapacityWorkload")]
29-
3028
# Define a mandatory parameter for the capacity ID.
3129
Param (
3230
[Parameter(Mandatory = $true)]

source/Public/Capacity/Resume-FabricCapacity.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ function Resume-FabricCapacity {
2727
2828
Author: Ioana Bouariu
2929
#>
30-
# Define aliases for the function for flexibility.
31-
[Alias("Resume-FabCapacity")]
3230
[CmdletBinding(SupportsShouldProcess)]
3331

3432
# Define parameters for the subscription ID, resource group, and capacity.

source/Public/Capacity/Suspend-FabricCapacity.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ The function defines parameters for the subscription ID, resource group, and cap
2828
Author: Ioana Bouariu
2929
3030
#>
31-
# Define aliases for the function for flexibility.
32-
[Alias("Suspend-PowerBICapacity", "Suspend-FabCapacity")]
3331
[CmdletBinding(SupportsShouldProcess)]
3432

3533
# Define parameters for the subscription ID, resource group, and capacity.

source/Public/Get-FabricAPIClusterURI.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ function Get-FabricAPIclusterURI {
1818
1919
#>
2020

21-
# Define aliases for the function for flexibility.
22-
[Alias("Get-FabAPIClusterURI")]
2321
[CmdletBinding()]
2422
[OutputType([string])]
2523
Param (

source/Public/Get-FabricDatasetRefreshes.ps1

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,9 @@ function Get-FabricDatasetRefreshes {
2626
Object. Get-FabricDatasetRefreshes returns an object that contains the refresh history.
2727
2828
.NOTES
29-
Alias: Get-PowerBIDatasetRefreshes, Get-FabDatasetRefreshes
30-
3129
Author: Ioana Bouariu
3230
3331
#>
34-
# Define aliases for the function for flexibility.
35-
[Alias("Get-FabDatasetRefreshes")]
36-
3732
# Define a mandatory parameter for the dataset ID.
3833
Param (
3934
[Parameter(Mandatory = $true)]

source/Public/Get-FabricUsageMetricsQuery.ps1

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ Author: Ioana Bouariu
3737
#>
3838

3939
# This function retrieves usage metrics for a specific dataset.
40-
# Define aliases for the function for flexibility.
41-
[Alias("Get-FabUsageMetricsQuery")]
42-
4340
# Define parameters for the dataset ID, group ID, report name, token, and impersonated user.
4441
param (
4542
[Parameter(Mandatory = $true)]

0 commit comments

Comments
 (0)