Skip to content

first version bookings Helper#2197

Merged
dpaulson45 merged 2 commits into
microsoft:mainfrom
v-rusil:main
Nov 4, 2024
Merged

first version bookings Helper#2197
dpaulson45 merged 2 commits into
microsoft:mainfrom
v-rusil:main

Conversation

@v-rusil
Copy link
Copy Markdown
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
Comment thread Calendar/BookingsDiagnosticSummary.ps1 Outdated
Comment thread Calendar/BookingsDiagnosticSummary.ps1
Comment thread Calendar/BookingsDiagnosticSummary.ps1 Outdated
Comment thread Calendar/BookingsDiagnosticSummary.ps1 Outdated
Comment thread Calendar/BookingsDiagnosticSummary.ps1 Outdated
Comment thread Calendar/BookingHelpers/BookingGenericFunctions.ps1 Outdated
Comment thread Calendar/BookingHelpers/BookingGenericFunctions.ps1 Outdated
Comment thread Calendar/BookingHelpers/BookingGenericFunctions.ps1
Comment thread Calendar/BookingHelpers/BookingMBHelpers.ps1
Comment thread Calendar/BookingHelpers/BookingMBHelpers.ps1 Outdated
Comment thread Calendar/BookingHelpers/BookingMBHelpers.ps1 Outdated
Comment thread Calendar/BookingHelpers/BookingMessageTrackingLogHelper.ps1 Outdated
@Shanefe
Copy link
Copy Markdown
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)

Comment thread Calendar/BookingHelpers/BookingMessageTrackingLogLogic.ps1 Outdated
Comment thread Calendar/BookingHelpers/BookingServiceHelpers.ps1 Outdated
Comment thread Calendar/BookingHelpers/BookingServiceHelpers.ps1 Outdated
Comment thread Calendar/BookingHelpers/BookingStaffHelpers.ps1
Comment thread Calendar/BookingHelpers/BookingStaffLogHelper.ps1 Outdated
Comment thread Calendar/BookingHelpers/BookingStaffLogHelper.ps1 Outdated
@Shanefe
Copy link
Copy Markdown
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)

Comment thread Calendar/BookingHelpers/BookingTenantSettingsHelper.ps1 Outdated
Comment thread Calendar/BookingHelpers/BookingTenantSettingsHelper.ps1 Outdated
Comment thread Calendar/BookingHelpers/BookingTenantSettingsHelper.ps1 Outdated
Comment thread Calendar/BookingHelpers/BookingTenantSettingsLogic.ps1 Outdated
Comment thread Calendar/BookingHelpers/ExcelWrite.ps1
Comment thread Calendar/BookingHelpers/ExcelWrite.ps1 Outdated
Comment thread Calendar/BookingHelpers/GraphInstaller.ps1 Outdated
Comment thread Calendar/BookingHelpers/GraphInstaller.ps1 Outdated
@v-rusil
Copy link
Copy Markdown
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
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Comment thread Calendar/BookingHelpers/ExcelWrite.ps1
Comment thread Calendar/BookingHelpers/ExcelWrite.ps1 Outdated
Comment thread Calendar/BookingHelpers/ExcelWrite.ps1 Outdated
Comment thread Calendar/BookingHelpers/ExcelWrite.ps1
Comment thread docs/Calendar/BookingsDiagnosticSummary.md Outdated
Comment thread docs/Calendar/BookingsDiagnosticSummary.md Outdated
Comment thread docs/Calendar/BookingsDiagnosticSummary.md Outdated
Comment thread docs/Calendar/BookingsDiagnosticSummary.md Outdated
Shanefe
Shanefe previously approved these changes Oct 23, 2024
Comment thread Calendar/BookingHelpers/BookingCustomQuestionHelpers.ps1
Comment thread Calendar/BookingHelpers/BookingMBHelpers.ps1 Outdated
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

Comment thread Calendar/BookingHelpers/BookingMBHelpers.ps1 Outdated
Comment thread Calendar/BookingHelpers/BookingMBHelpers.ps1 Outdated
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
Copy Markdown
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.

Comment thread Calendar/BookingHelpers/GraphInstaller.ps1 Outdated
Comment thread Calendar/BookingsDiagnosticSummary.ps1 Outdated
Comment thread docs/Calendar/BookingsDiagnosticSummary.md
Comment thread docs/Calendar/BookingsDiagnosticSummary.md
@dpaulson45
Copy link
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@dpaulson45
Copy link
Copy Markdown
Member

Please add Prosumer here.

@dpaulson45
Copy link
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@dpaulson45
Copy link
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@dpaulson45
Copy link
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@dpaulson45 dpaulson45 merged commit c3bf949 into microsoft:main Nov 4, 2024
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