Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

first version bookings Helper #2197

Merged
merged 2 commits into from
Nov 4, 2024
Merged

first version bookings Helper #2197

merged 2 commits into from
Nov 4, 2024

Conversation

v-rusil
Copy link
Contributor

@v-rusil v-rusil commented Sep 24, 2024

Issue:
Describe what the issue is you are addressing

Reason:
Describe what the reason is for making the change

Fix:
Short description of the fix

Validation:
Provide if applicable

@v-rusil v-rusil requested a review from a team as a code owner September 24, 2024 18:34
@v-rusil v-rusil marked this pull request as draft September 24, 2024 18:39
@Shanefe
Copy link
Contributor

Shanefe commented Sep 24, 2024

function RunMessageTrackingLogTests {

Only comment would be if you wanted to rename from RunMessageTrackingLogTests to RunMessageTrackingLogValidation
i.e. use Validation instead of Test #Closed


Refers to: Calendar/BookingHelpers/BookingMessageTrackingLogLogic.ps1:1 in 204f797. [](commit_id = 204f797, deletion_comment = False)

@Shanefe
Copy link
Contributor

Shanefe commented Sep 24, 2024

function Get-StaffData {

This is in a Logic file, but looks more like a helper. #Closed


Refers to: Calendar/BookingHelpers/BookingStaffLogic.ps1:1 in 204f797. [](commit_id = 204f797, deletion_comment = False)

@v-rusil
Copy link
Contributor Author

v-rusil commented Oct 22, 2024

@microsoft-github-policy-service agree company="Microsoft"

@v-rusil v-rusil marked this pull request as ready for review October 22, 2024 18:40
@dpaulson45
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Shanefe
Shanefe previously approved these changes Oct 23, 2024
Calendar/BookingHelpers/BookingMBHelpers.ps1 Outdated Show resolved Hide resolved
Comment on lines 44 to 76
$BookingBusinessArray += [PSCustomObject]@{
DisplayName = $GraphBookingBusiness.DisplayName
OwnerEmail = $GraphBookingBusiness.Email
IsPublished = $GraphBookingBusiness.IsPublished
DefaultCurrencyIso = $GraphBookingBusiness.DefaultCurrencyIso
DefaultTimeZone = $GraphBookingBusiness.DefaultTimeZone
LanguageTag = $GraphBookingBusiness.LanguageTag
Phone = $GraphBookingBusiness.Phone
PublicUrl = $GraphBookingBusiness.PublicUrl
WebSiteUrl = $GraphBookingBusiness.WebSiteUrl
CreatedDateTime = $GraphBookingBusiness.AdditionalProperties["createdDateTime"]
lastUpdatedDateTime = $GraphBookingBusiness.AdditionalProperties["lastUpdatedDateTime"]
Address = "City= " + $GraphBookingBusiness.Address.City + ", `r`n" +
"CountryOrRegion= " + $GraphBookingBusiness.Address.CountryOrRegion + ", `r`n" +
"PostalCode= " + $GraphBookingBusiness.Address.PostalCode + ", `r`n" +
"State= " + $GraphBookingBusiness.Address.State + ", `r`n" +
"Street= " + $GraphBookingBusiness.Address.Street
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be inside a loop? If you want the type to be returned an array, we should be able to create the object and define the type we want to be returned.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not in this case, this method returns a 1 element array to be imported to Excel

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then we shouldn't be doing a += to make it an array element. Use the casting of [array] if that is what you want.

Calendar/BookingHelpers/BookingMBHelpers.ps1 Outdated Show resolved Hide resolved
Calendar/BookingHelpers/BookingMBHelpers.ps1 Outdated Show resolved Hide resolved
Comment on lines +30 to +34
if ($PSCmdlet.ShouldProcess('Microsoft.Graph.Bookings module', 'Import')) {
Write-Verbose "Installing Microsoft.Graph.Bookings module..."

# Install Microsoft.Graph.Bookings module
Install-Module -Name Microsoft.Graph.Bookings -Force -AllowClobber

Write-Host "Done. Microsoft.Graph.Bookings module is now installed. Please re-run the script."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that we need to likely do this. However, we should place it in Share somehow to avoid other scripts doing this same thing over and over again.

Need to think about this.

Calendar/BookingHelpers/GraphInstaller.ps1 Outdated Show resolved Hide resolved
Calendar/BookingsDiagnosticSummary.ps1 Outdated Show resolved Hide resolved
docs/Calendar/BookingsDiagnosticSummary.md Show resolved Hide resolved
docs/Calendar/BookingsDiagnosticSummary.md Show resolved Hide resolved
@dpaulson45
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dpaulson45
Copy link
Member

Please add Prosumer here.

@dpaulson45
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dpaulson45
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dpaulson45
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dpaulson45 dpaulson45 merged commit c3bf949 into microsoft:main Nov 4, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants