Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Commit

Permalink
bump version to 0.2.x (#32)
Browse files Browse the repository at this point in the history
!Deploy
* added dependancy on latest powershellget
* Minor added class diagram (#25)
* Added Class diagram, and linked in Readme.
* added private tests (#26)
* Codecoverage (#27)
* added preproc test
* made ObjectToMigrate mandatory for Copy-ESE2SQL
* Sqlqueryupdates (#29)
* added select top and operationtype filter to GetStatusReport function
* updated docs
* updated confirmimpact for set functions to high (#30)
* bump version to 0.2.x (#31)
  • Loading branch information
bgelens authored Oct 23, 2018
1 parent 95fd125 commit 6509b59
Show file tree
Hide file tree
Showing 37 changed files with 289 additions and 69 deletions.
6 changes: 3 additions & 3 deletions .build/Release/MergeModule.Release.build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@

[string] $ModuleVersion = (property ModuleVersion $(
if($resolvedModuleVersion = Get-NextNugetPackageVersion -Name $ProjectName -ErrorAction SilentlyContinue) {
if ($resolvedModuleVersion -gt [version]'0.1.0') {
if ($resolvedModuleVersion -gt [version]'0.2.0') {
$resolvedModuleVersion
} else {
'0.1.0'
'0.2.0'
}
} else {
'0.1.0'
'0.2.0'
}
)),

Expand Down
2 changes: 1 addition & 1 deletion .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ comment:
behavior: default

coverage:
range: 50..80
range: 50..70
round: down
precision: 0

Expand Down
2 changes: 1 addition & 1 deletion DSCPullServerAdmin/DSCPullServerAdmin.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ PrivateData = @{
# IconUri = ''

# ReleaseNotes of this module
ReleaseNotes = 'Throw error when edb filepath specified is invalid.'
ReleaseNotes = 'SQL Query updates for Get-DSCPullServerAdminStatusReport. Increased ConfirmImpact to High for Set functions'

} # End of PSData hashtable

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Copy data from EDB to SQL.

```
Copy-DSCPullServerAdminDataESEToSQL [-ESEConnection] <DSCPullServerESEConnection>
[-SQLConnection] <DSCPullServerSQLConnection> [[-ObjectsToMigrate] <String[]>] [-Force] [-WhatIf] [-Confirm]
[-SQLConnection] <DSCPullServerSQLConnection> [-ObjectsToMigrate] <String[]> [-Force] [-WhatIf] [-Confirm]
[<CommonParameters>]
```

Expand Down Expand Up @@ -77,7 +77,7 @@ Type: String[]
Parameter Sets: (All)
Aliases:

Required: False
Required: True
Position: 3
Default value: @('Devices', 'RegistrationData')
Accept pipeline input: False
Expand Down Expand Up @@ -134,8 +134,7 @@ Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
Expand Down
3 changes: 1 addition & 2 deletions DSCPullServerAdmin/docs/Get-DSCPullServerAdminConnection.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
Expand Down
3 changes: 1 addition & 2 deletions DSCPullServerAdmin/docs/Get-DSCPullServerAdminDevice.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@ Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,7 @@ Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
Expand Down
57 changes: 50 additions & 7 deletions DSCPullServerAdmin/docs/Get-DSCPullServerAdminStatusReport.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,22 @@ Get status report entries (LCMv2) from a Pull Server Database.
### Connection (Default)
```
Get-DSCPullServerAdminStatusReport [-AgentId <Guid>] [-NodeName <String>] [-JobId <Guid>]
[-FromStartTime <DateTime>] [-ToStartTime <DateTime>] [-Connection <DSCPullServerConnection>]
[<CommonParameters>]
[-FromStartTime <DateTime>] [-ToStartTime <DateTime>] [-All] [-Top <UInt16>] [-OperationType <String>]
[-Connection <DSCPullServerConnection>] [<CommonParameters>]
```

### ESE
```
Get-DSCPullServerAdminStatusReport [-AgentId <Guid>] [-NodeName <String>] [-JobId <Guid>]
[-FromStartTime <DateTime>] [-ToStartTime <DateTime>] -ESEFilePath <String> [<CommonParameters>]
[-FromStartTime <DateTime>] [-ToStartTime <DateTime>] [-All] [-Top <UInt16>] [-OperationType <String>]
-ESEFilePath <String> [<CommonParameters>]
```

### SQL
```
Get-DSCPullServerAdminStatusReport [-AgentId <Guid>] [-NodeName <String>] [-JobId <Guid>]
[-FromStartTime <DateTime>] [-ToStartTime <DateTime>] -SQLServer <String> [-Credential <PSCredential>]
[-Database <String>] [<CommonParameters>]
[-FromStartTime <DateTime>] [-ToStartTime <DateTime>] [-All] [-Top <UInt16>] [-OperationType <String>]
-SQLServer <String> [-Credential <PSCredential>] [-Database <String>] [<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -122,6 +123,49 @@ Accept pipeline input: False
Accept wildcard characters: False
```
### -All
Return all reports that correspond to specified filters (overwrites Top parameter).
SQL Only.```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```
### -Top
Return number of reports that correspond to specified filters.
SQL Only.```yaml
Type: UInt16
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: 5
Accept pipeline input: False
Accept wildcard characters: False
```
### -OperationType
{{Fill OperationType Description}}
```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: All
Accept pipeline input: False
Accept wildcard characters: False
```
### -Connection
Accepts a specific Connection to be passed to target a specific database.
When not specified, the currently Active Connection from memory will be used
Expand Down Expand Up @@ -201,8 +245,7 @@ Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
Expand Down
3 changes: 1 addition & 2 deletions DSCPullServerAdmin/docs/New-DSCPullServerAdminConnection.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
Expand Down
3 changes: 1 addition & 2 deletions DSCPullServerAdmin/docs/New-DSCPullServerAdminDevice.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,7 @@ Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,7 @@ Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
Expand Down
3 changes: 1 addition & 2 deletions DSCPullServerAdmin/docs/New-DSCPullServerAdminSQLDatabase.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,7 @@ Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
Expand Down
3 changes: 1 addition & 2 deletions DSCPullServerAdmin/docs/Remove-DSCPullServerAdminDevice.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,7 @@ Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,7 @@ Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,7 @@ Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
Expand Down
3 changes: 1 addition & 2 deletions DSCPullServerAdmin/docs/Set-DSCPullServerAdminDevice.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,7 @@ Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,7 @@ Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -437,8 +437,7 @@ Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
Expand Down
10 changes: 9 additions & 1 deletion DSCPullServerAdmin/private/Get-DSCPullServerESEStatusReport.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ function Get-DSCPullServerESEStatusReport {
[datetime] $ToStartTime,

[Parameter()]
[guid] $JobId
[guid] $JobId,

[Parameter()]
[ValidateSet('All', 'LocalConfigurationManager', 'Consistency', 'Initial')]
[string] $OperationType = 'All'
)
$table = 'StatusReport'
[Microsoft.Isam.Esent.Interop.JET_TABLEID] $tableId = [Microsoft.Isam.Esent.Interop.JET_TABLEID]::Nil
Expand Down Expand Up @@ -149,6 +153,10 @@ function Get-DSCPullServerESEStatusReport {
continue
}

if ($OperationType -ne 'All' -and $statusReport.OperationType -ne $OperationType) {
continue
}

$statusReport
}
} catch {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ function Copy-DSCPullServerAdminDataESEToSQL {
[Parameter(Mandatory)]
[DSCPullServerSQLConnection] $SQLConnection,

[Parameter()]
[Parameter(Mandatory)]
[ValidateSet('Devices', 'RegistrationData', 'StatusReports')]
[string[]] $ObjectsToMigrate = @('Devices', 'RegistrationData'),
[string[]] $ObjectsToMigrate,

[Parameter()]
[switch] $Force
Expand Down
Loading

0 comments on commit 6509b59

Please sign in to comment.