Skip to content

Commit f74c597

Browse files
authored
Merge branch 'develop' into bug-131-and-nowait
Signed-off-by: Kamil Nowinski <[email protected]>
2 parents b265a43 + 7b588c0 commit f74c597

File tree

196 files changed

+579
-439
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

196 files changed

+579
-439
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@
55
Your contribution to this project is greatly appreciated!
66
77
TITLE: Please be descriptive not sensationalist.
8-
Prepend the title with the [DscResourceName] if your PR is specific to a DSC resource.
98
Also prepend with [BREAKING CHANGE] if relevant.
109
i.e. [BREAKING CHANGE][xFile] Add security descriptor property
1110
1211
You may remove this comment block, and the other comment blocks, but please
1312
keep the headers and the task list.
1413
Try to keep your PRs atomic: changes grouped in smallest batch affecting a single logical unit.
14+
15+
PLEASE DO NOT submit PRs that contain multiple unrelated changes.
16+
If you have multiple changes, please submit them in separate PRs.
1517
-->
1618

1719
## Pull Request (PR) description
@@ -59,4 +61,4 @@
5961
- [ ] Unit tests added/updated..
6062
- [ ] Integration tests added/updated (where possible).
6163
- [ ] Documentation added/updated (where applicable).
62-
- [ ] Code follows the [contribution guidelines](../CONTRIBUTING.md).
64+
- [ ] Code follows the [contribution guidelines](https://github.com/dataplat/FabricTools/blob/develop/CONTRIBUTING.md).

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66
## [Unreleased]
77

88
### Added
9+
- added unit tests for `Get-FabricWorkspaceUser` function to ensure it works correctly with multiple workspaces both in the pipeline and passed to a parameter.
10+
- Added unit tests for Aliases for `Get-FabricWorkspaceUser` function to ensure backward compatibility.
911
- Added credits for authors to all functions and Unit tests to verify the existence of such tags #89
1012
- Added `NoWait` switch parameter to `New-FabricSQLDatabase` (#123)
1113

1214
### Changed
15+
- Updated `Get-FabricWorkspaceUser` to support pipeline input for `WorkspaceId` and `WorkspaceName` parameters.
16+
- Renamed `Get-FabricWorkspaceUsers` to match the singular form
1317
- Get-FabricSqlDatabase accepts Workspace as a pipeline, handles errors correctly and can filter by name (#117).
1418
- Applied splatting for several parameters in `Invoke-FabricRestMethod` and output results in debug mode
1519
- `Remove-FabricSQLDatabase` uses unified function to handle API results
1620

21+
Updated the `WorkspaceId`, `CapacitiesIds`,`CapacityId`,`CopyJobId`,`datamartId`,`DataPipelineId`,`DataWarehouseGUID`,`DomainId`,`EnvironmentId`,`EventhouseId`,`EventstreamId`,`ExternalDataShareId`,`ItemId`,`KQLDashboardId`,`KQLDatabaseId`,`KQLQuerysetId`,`LakehouseId`,`MirroredDatabaseId`,`MirroredWarehouseId`,`MLExperimentId`,`MLModelId`,`NotebookId`,`operationId`,`PaginatedReportId`,`ParentDomainId`,`parentEventhouseId`,`PrincipalId`,`ReflexId`,`ReportId`,`SemanticModelId`,`SparkCustomPoolId`,`SparkJobDefinitionId`,`SQLDatabaseId`,`SQLEndpointId`,`subscriptionID`,`UserId`,`WarehouseId`,`WorkspaceGUID`,`WorkspaceId`,`WorkspaceIds`,and `WorkspaceRoleAssignmentId` parameters to the datatype GUID [#125](https://github.com/dataplat/FabricTools/issues/125)
22+
23+
24+
1725
### Fixed
1826
- Enhanced logic in unified function `Test-FabricApiResponse` to handle API results and moved it to private functions
1927
- Fixed bug in `Get-FabricLongRunningOperation` - Uri was incorectly created (#131)

CONTRIBUTING.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ Before we go any further, thanks for being here. Thanks for using the module and
66

77
## Important resources
88

9-
- docs TODO: link to docs
10-
- bugs TODO: link to issues issue template
9+
- Documentation such as coding guidelines can be found in the [wiki](https://github.com/dataplat/FabricTools/wiki)
10+
- Bugs can be reported as [issues](https://github.com/dataplat/FabricTools/issues) via the bug issue template.
11+
- Feature requests can be submitted in the issues via the feature request issue template.
12+
- Discussions can be started in the [Discussions](https://github.com/dataplat/FabricTools/discussions) section of the repository.
1113
- communicate via issues, PRs, and discussions as well as the project
1214

1315
## Develop & Build
@@ -113,23 +115,19 @@ If you have any questions or need help, please feel free to reach out to us on t
113115

114116
## How to submit changes
115117

116-
TODO:
117-
Pull Request protocol etc. You might also include what response they'll get back from the team on submission, or any caveats about the speed of response.
118+
We use a Pull Request (PR) workflow to manage changes to the module. This means that you will need to create a new branch in your fork of the repository, make your changes, and then create a PR against the main repository. You can find full details in the [wiki](https://github.com/dataplat/FabricTools/wiki)
118119

119120
## How to report a bug
120121

121-
TODO:
122-
Bugs are problems in code, in the functionality of an application or in its UI design; you can submit them through "bug trackers" and most projects invite you to do so, so that they may "debug" with more efficiency and the input of a contributor. Take a look at Atom's example for how to teach people to report bugs to your project.
122+
If you find a bug in the module, please report it using the [issue template](https://github.com/dataplat/FabricTools/issues). This will help us track the issue and ensure that it is fixed in a timely manner.
123123

124124
## Templates
125125

126-
TODO:
127-
in this section of your file, you might also want to link to a bug report "template" like this one here which contributors can copy and add context to; this will keep your bugs tidy and relevant.
126+
There are a number of templates available in the `.github` folder of the repository. These include issue templates for bugs, feature requests, and discussions. You can use these templates to help you create a new issue or discussion.
128127

129128
## Style Guide
130129

131-
TODO:
132-
include extensions and vscode settings we use to keep things neat
130+
The Style Guide is a set of rules and guidelines that we follow to ensure that our code is consistent, readable, and maintainable. It is located in the [wiki](https://github.com/dataplat/FabricTools/wiki).
133131

134132
## Code of Conduct
135133

FabricTools.code-workspace

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"folders": [
3+
{
4+
"path": "."
5+
}
6+
]
7+
}

source/Private/Get-FabricUri.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ function Get-FabricUri {
3434
param (
3535
$BaseUrl = 'api.powerbi.com',
3636
[parameter(Mandatory)]
37-
[String]$WorkspaceGUID,
37+
[guid]$WorkspaceGUID,
3838
[parameter(Mandatory)]
39-
[String]$DataWarehouseGUID,
39+
[guid]$DataWarehouseGUID,
4040

41-
[String]$BatchId
41+
[guid]$BatchId
4242
)
4343

4444
try {

source/Public/Capacity/Get-FabricCapacities.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function Get-FabricCapacities {
3030
Param (
3131
# Optional parameter for subscription ID
3232
[Parameter(Mandatory = $false)]
33-
[string]$subscriptionID
33+
[guid]$subscriptionID
3434
)
3535

3636
# Initialize an array to store the results

source/Public/Capacity/Get-FabricCapacity.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function Get-FabricCapacity {
3232
param (
3333
[Parameter(Mandatory = $false)]
3434
[ValidateNotNullOrEmpty()]
35-
[string]$capacityId,
35+
[guid]$capacityId,
3636

3737
[Parameter(Mandatory = $false)]
3838
[ValidateNotNullOrEmpty()]

source/Public/Capacity/Get-FabricCapacitySkus.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Author: Kamil Nowinski
2828

2929
Param(
3030
[Parameter(Mandatory = $true)]
31-
[string]$subscriptionID,
31+
[guid]$subscriptionID,
3232
[Parameter(Mandatory = $true)]
3333
[string]$ResourceGroupName,
3434
[Parameter(Mandatory = $true)]

source/Public/Capacity/Get-FabricCapacityState.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Author: Ioana Bouariu
3434
# Define mandatory parameters for the subscription ID, resource group, and capacity.
3535
Param (
3636
[Parameter(Mandatory = $true)]
37-
[string]$subscriptionID,
37+
[guid]$subscriptionID,
3838
[Parameter(Mandatory = $true)]
3939
[string]$resourcegroup,
4040
[Parameter(Mandatory = $true)]

source/Public/Capacity/Get-FabricCapacityWorkload.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Author: Ioana Bouariu
2828
# Define a mandatory parameter for the capacity ID.
2929
Param (
3030
[Parameter(Mandatory = $true)]
31-
[string]$capacityID
31+
[guid]$CapacityId
3232
)
3333

3434
Confirm-TokenState

0 commit comments

Comments
 (0)