From 0690347424f20b1ed5456ee8f72e21614f5eaa33 Mon Sep 17 00:00:00 2001 From: scottkiener <70162485+scottkiener@users.noreply.github.com> Date: Mon, 24 Feb 2025 13:23:13 -0500 Subject: [PATCH 1/5] Add prettier test back to PR check list --- azure-pipelines.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 9d81b3236..e22e5f920 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -37,15 +37,15 @@ variables: stages: # PR's - ${{ if eq(variables['Build.Reason'], 'PullRequest') }}: - # - stage: TestFormat - # displayName: Test Code Format - # jobs: - # - job: checkFormatting - # displayName: Check formatting - # container: prettier-node - # steps: - # - bash: prettier --check "$(Build.SourcesDirectory)/src/**/*.(js|vue)" - # displayName: Run Prettier check + - stage: TestFormat + displayName: Test Code Format + jobs: + - job: checkFormatting + displayName: Check formatting + container: prettier-node + steps: + - bash: prettier --check "$(Build.SourcesDirectory)/src/**/*.(js|vue)" + displayName: Run Prettier check - stage: TestPr displayName: Run Unit Tests For PullRequest From a89dd246a482e15d7f0d36573a6244bc40811e6f Mon Sep 17 00:00:00 2001 From: Scott Kiener Date: Mon, 24 Feb 2025 13:43:17 -0500 Subject: [PATCH 2/5] Change where to look for prettier package --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e22e5f920..24ccaf67b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -22,7 +22,7 @@ resources: - container: awscli image: packagerepository.sagaws.net:8082/safelite/awscli2-build:3.9 - container: prettier-node - image: packagerepository.sagaws.net:8082/safelite/prettier-node-build:23 + image: ghcr.io/safelite/prettier-node-build:23 repositories: - repository: AzureDevOps type: github From 13afbb9d06a52826c2dfe11c01e28582e5c007f4 Mon Sep 17 00:00:00 2001 From: SujathaAnishetty <88043758+SujathaAnishetty@users.noreply.github.com> Date: Tue, 25 Feb 2025 11:10:33 -0500 Subject: [PATCH 3/5] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 24ccaf67b..2cb18429c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -23,6 +23,7 @@ resources: image: packagerepository.sagaws.net:8082/safelite/awscli2-build:3.9 - container: prettier-node image: ghcr.io/safelite/prettier-node-build:23 + endpoint: GitHub Docker repositories: - repository: AzureDevOps type: github From bd34beeb1f4d593fa60cd3269cb6583cc355e013 Mon Sep 17 00:00:00 2001 From: Scott Kiener Date: Tue, 25 Feb 2025 11:12:44 -0500 Subject: [PATCH 4/5] Add endpoint to get prettier to work --- azure-pipelines.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 24ccaf67b..7747709ea 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -22,7 +22,8 @@ resources: - container: awscli image: packagerepository.sagaws.net:8082/safelite/awscli2-build:3.9 - container: prettier-node - image: ghcr.io/safelite/prettier-node-build:23 + image: ghcr.io/safelite/prettier-node-build:23 + endpoint: GitHub Docker repositories: - repository: AzureDevOps type: github From 8b54efb0598be954f80cc3fa1e8900c2a663e58e Mon Sep 17 00:00:00 2001 From: Scott Kiener Date: Tue, 25 Feb 2025 11:35:57 -0500 Subject: [PATCH 5/5] Run formatting --- src/layouts/schedule/schedule.vue | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/layouts/schedule/schedule.vue b/src/layouts/schedule/schedule.vue index 040d87ac8..925683073 100644 --- a/src/layouts/schedule/schedule.vue +++ b/src/layouts/schedule/schedule.vue @@ -521,7 +521,12 @@ export default { this.$router.navigateWithSaving(this.navigationScenarios.CLICKED_FORWARD, this.$route); }, setDisplayWaitList() { - if(experimentMixin.methods.hasSettingEqualTo(experimentSettings.DISPLAY_WAITLIST, "true")){ + if ( + experimentMixin.methods.hasSettingEqualTo( + experimentSettings.DISPLAY_WAITLIST, + "true" + ) + ) { const dateString = this.selectableDatesData.days[0].date; const [year, month, day] = dateString.split("-").map(Number); const targetDate = new Date(year, month - 1, day); @@ -531,10 +536,10 @@ export default { experimentSettings.WAITLIST_THRESHOLD_DAYS ) ? parseInt( - experimentMixin.methods.getSettingValue( - experimentSettings.WAITLIST_THRESHOLD_DAYS - ) - ) + experimentMixin.methods.getSettingValue( + experimentSettings.WAITLIST_THRESHOLD_DAYS + ) + ) : 0; futureDate.setDate(currentDate.getDate() + experimentThresholdDays);