-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from tableau/lsz/v1.0.2
v1.0.2 Release
- Loading branch information
Showing
105 changed files
with
4,664 additions
and
1,276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Generate and Deploy DocFX Documentation | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up .NET | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: '8.0.x' | ||
|
||
- name: Install DocFX | ||
run: dotnet tool install -g docfx | ||
|
||
- name: Add .dotnet/tools to PATH | ||
run: echo "::add-path::${HOME}/.dotnet/tools" | ||
|
||
- name: Build DocFX site | ||
working-directory: ./docs | ||
run: docfx | ||
|
||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v4 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./docs/_site | ||
publish_branch: gh-pages | ||
keep_files: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- name: Docs | ||
href: docs/ | ||
- name: API | ||
href: api/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/bash | ||
dotnet test tests/Tableau.Migration.App.Core.Tests/ /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput=../../CoreCoverage.xml | ||
dotnet test tests/Tableau.Migration.App.GUI.Tests /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput=../../GUICoverage.xml | ||
reportgenerator -reports:"./*Coverage.xml" -targetdir:./coverage-report -reporttypes:"Html;TextSummary" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
src/Tableau.Migration.App.Core/Entities/MigrationTimerEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
// <copyright file="MigrationTimerEvent.cs" company="Salesforce, Inc."> | ||
// Copyright (c) 2024, Salesforce, Inc. All rights reserved. | ||
// SPDX-License-Identifier: Apache-2 | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License") | ||
// You may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at: | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// </copyright> | ||
|
||
namespace Tableau.Migration.App.Core.Entities; | ||
using System; | ||
|
||
/// <summary> | ||
/// Possible value types for Migration Timer Events. | ||
/// </summary> | ||
public enum MigrationTimerEventType | ||
{ | ||
/// <summary> | ||
/// Event fired when Migration has started. | ||
/// </summary> | ||
MigrationStarted, | ||
|
||
/// <summary> | ||
/// Event fired when Migration has either completed or failed. | ||
/// </summary> | ||
Migrationfinished, | ||
|
||
/// <summary> | ||
/// Event fired when a Migration Action has completed. | ||
/// </summary> | ||
MigrationActionCompleted, | ||
} | ||
|
||
/// <summary> | ||
/// Migration Time events to be triggered. | ||
/// </summary> | ||
public class MigrationTimerEvent : EventArgs | ||
{ | ||
private DateTime migrationStartTime; | ||
private Dictionary<string, DateTime> actionStartTimes; | ||
private Dictionary<string, DateTime> actionStopTimes; | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="MigrationTimerEvent" /> class. | ||
/// </summary> | ||
/// <param name="eventType">The event type.</param> | ||
public MigrationTimerEvent(MigrationTimerEventType eventType) | ||
{ | ||
this.EventType = eventType; | ||
this.migrationStartTime = DateTime.Now; | ||
this.actionStartTimes = new Dictionary<string, DateTime>(); | ||
this.actionStopTimes = new Dictionary<string, DateTime>(); | ||
} | ||
|
||
/// <summary> | ||
/// Gets the Migration event type. | ||
/// </summary> | ||
public MigrationTimerEventType EventType { get; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.