-
Notifications
You must be signed in to change notification settings - Fork 6
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 #25 from tableau/release/4.1.0
Release 4.1.0
- Loading branch information
Showing
383 changed files
with
12,308 additions
and
1,487 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
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
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
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
50 changes: 50 additions & 0 deletions
50
examples/Csharp.ExampleApplication/Hooks/Transformers/SimpleScheduleStartAtTransformer.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,50 @@ | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using Microsoft.Extensions.Logging; | ||
using Tableau.Migration.Content.Schedules; | ||
using Tableau.Migration.Content.Schedules.Cloud; | ||
using Tableau.Migration.Engine.Hooks.Transformers; | ||
using Tableau.Migration.Resources; | ||
|
||
namespace Csharp.ExampleApplication.Hooks.Transformers | ||
{ | ||
#region class | ||
public class SimpleScheduleStartAtTransformer<T> | ||
: ContentTransformerBase<T> | ||
where T : IWithSchedule<ICloudSchedule> | ||
{ | ||
private readonly ILogger<IContentTransformer<T>>? _logger; | ||
|
||
public SimpleScheduleStartAtTransformer( | ||
ISharedResourcesLocalizer localizer, | ||
ILogger<IContentTransformer<T>> logger) | ||
: base( | ||
localizer, | ||
logger) | ||
{ | ||
_logger = logger; | ||
} | ||
|
||
public override async Task<T?> TransformAsync( | ||
T itemToTransform, | ||
CancellationToken cancel) | ||
{ | ||
// In this example, the `Start At` time is in the UTC time zone. | ||
if (itemToTransform.Schedule.FrequencyDetails.StartAt is not null) | ||
{ | ||
// A simple conversion to the EDT time zone. | ||
var updatedStartAt = itemToTransform.Schedule.FrequencyDetails.StartAt.Value.AddHours(-4); | ||
|
||
_logger?.LogInformation( | ||
@"Adjusting the 'Start At' from {previousStartAt} to {updatedStartAt}.", | ||
itemToTransform.Schedule.FrequencyDetails.StartAt.Value, | ||
updatedStartAt); | ||
|
||
itemToTransform.Schedule.FrequencyDetails.StartAt = updatedStartAt; | ||
} | ||
|
||
return await Task.FromResult(itemToTransform); | ||
} | ||
} | ||
#endregion | ||
} |
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
15 changes: 15 additions & 0 deletions
15
examples/Python.ExampleApplication/Hooks/transformers/schedule_startat_transformer.py
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,15 @@ | ||
from datetime import time | ||
from tableau_migration import ( | ||
ContentTransformerBase, | ||
ICloudExtractRefreshTask | ||
) | ||
|
||
class SimpleScheduleStartAtTransformer(ContentTransformerBase[ICloudExtractRefreshTask]): | ||
def transform(self, itemToTransform: ICloudExtractRefreshTask) -> ICloudExtractRefreshTask: | ||
# In this example, the `Start At` time is in the UTC time zone. | ||
if itemToTransform.schedule.frequency_details.start_at: | ||
prev_start_at = itemToTransform.schedule.frequency_details.start_at | ||
# A simple conversion to the EDT time zone. | ||
itemToTransform.schedule.frequency_details.start_at = time(prev_start_at.hour - 4, prev_start_at.minute, prev_start_at.second, prev_start_at.microsecond); | ||
|
||
return itemToTransform |
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 |
---|---|---|
@@ -1,10 +1,7 @@ | ||
--index-url https://artifactory.prod.tableautools.com/artifactory/api/pypi/tabpypi/simple | ||
--pre | ||
pip==24.0.0 | ||
setuptools==69.1.0 | ||
configparser==6.0.0 | ||
setuptools==70.1.1 | ||
configparser==7.0.0 | ||
tableau_migration | ||
cffi==1.16.0 | ||
pycparser==2.21 | ||
pycparser==2.22 | ||
pythonnet==3.0.3 | ||
typing_extensions==4.9.0 | ||
typing_extensions==4.12.2 |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"sdk": { | ||
"version": "8.0.201", | ||
"version": "8.0.302", | ||
"rollForward": "latestMajor" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -6,5 +6,4 @@ | |
/**/packages/ | ||
/**/bin/ | ||
/**/obj/ | ||
_site | ||
migration_sdk_metadata.json |
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
Oops, something went wrong.