add ownerName to backup list json (#3481)
#### Does this PR need a docs update or release note? - [x] ✅ Yes, it's included #### Type of change - [x] 🌻 Feature #### Issue(s) * #3748 #### Test Plan - [x] 💪 Manual - [x] ⚡ Unit test
This commit is contained in:
parent
64ad412456
commit
d3611db059
@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
## [Unreleased] (beta)
|
## [Unreleased] (beta)
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
- Added OwnerName to the backup list json output. OwnerName holds either a UPN or a WebURL, depending on the resource type.
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- Fix Exchange folder cache population error when parent folder isn't found.
|
- Fix Exchange folder cache population error when parent folder isn't found.
|
||||||
- Fix Exchange backup issue caused by incorrect json serialization
|
- Fix Exchange backup issue caused by incorrect json serialization
|
||||||
|
|||||||
@ -171,6 +171,7 @@ type Printable struct {
|
|||||||
Status string `json:"status"`
|
Status string `json:"status"`
|
||||||
Version string `json:"version"`
|
Version string `json:"version"`
|
||||||
Owner string `json:"owner"`
|
Owner string `json:"owner"`
|
||||||
|
OwnerName string `json:"ownerName"`
|
||||||
Stats backupStats `json:"stats"`
|
Stats backupStats `json:"stats"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -181,6 +182,7 @@ func (b Backup) ToPrintable() Printable {
|
|||||||
Status: b.Status,
|
Status: b.Status,
|
||||||
Version: "0",
|
Version: "0",
|
||||||
Owner: b.Selector.DiscreteOwner,
|
Owner: b.Selector.DiscreteOwner,
|
||||||
|
OwnerName: b.Selector.DiscreteOwnerName,
|
||||||
Stats: b.toStats(),
|
Stats: b.toStats(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user