Skip to content

Commit

Permalink
UserMpaping shenanigans (#2422)
Browse files Browse the repository at this point in the history
💡 (TfsUserMappingTool.cs): add debug logging for user identity mapping

Add a debug log statement to track changes in user identity mapping.
This helps in tracing the mapping process by logging the original and
new values, which is useful for debugging and ensuring the mapping logic
is functioning as expected.
  • Loading branch information
MrHinsh authored Oct 3, 2024
2 parents e79d28b + 95ec5f1 commit af279b1
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 13 deletions.
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ updates:
directory: "/src" # Location of package manifests
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
4 changes: 2 additions & 2 deletions .github/workflows/MigrationToolsTelemetery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@latest
with:
dotnet-version: ${{ env.DOTNET_CORE_VERSION }}
- name: Setup .NET Core (for inproc extensions)
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@latest
with:
dotnet-version: ${{ env.DOTNET_CORE_VERSION_INPROC }}
- name: Restore
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- uses: actions/create-github-app-token@v1
id: app-token
with:
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
nkdAgility_AzureSitesEnvironment: ${{ steps.nkdagility.outputs.AzureSitesEnvironment }}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install GitVersion
Expand Down Expand Up @@ -255,19 +255,19 @@ jobs:
GitVersion_MajorMinorPatch: ${{ needs.Setup.outputs.GitVersion_MajorMinorPatch }}
steps:
- name: Set up JDK 17
uses: actions/setup-java@v3
uses: actions/setup-java@v2
with:
java-version: 17
distribution: 'zulu'
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- uses: cschleiden/replace-tokens@v1
with:
files: '["**/StaticVariables.cs"]'
tokenPrefix: "${"
tokenSuffix: "}"
- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.x
Expand Down Expand Up @@ -340,7 +340,7 @@ jobs:
GitVersion_AssemblySemVer: ${{ needs.Setup.outputs.GitVersion_AssemblySemVer }}
GitVersion_InformationalVersion: ${{ needs.Setup.outputs.GitVersion_InformationalVersion }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0
with:
Expand Down Expand Up @@ -475,7 +475,7 @@ jobs:
if: ${{ success() && ( needs.Setup.outputs.nkdAgility_Ring == 'Release' ) }}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- uses: actions/download-artifact@v4
- name: "Find files"
shell: pwsh
Expand Down Expand Up @@ -528,7 +528,7 @@ jobs:
if: ${{ success() && ( needs.Setup.outputs.nkdAgility_RunRelease == 'true' ) }}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- uses: actions/download-artifact@v4
- name: "Find files"
shell: pwsh
Expand Down Expand Up @@ -558,7 +558,7 @@ jobs:
run: |
Get-Item -Path .\
- name: SFTP Upload ${{ (needs.Setup.outputs.nkdAgility_Ring) }}
uses: Dylan700/sftp-upload-action@v1.1.4
uses: Dylan700/sftp-upload-action@latest
with:
server: nakedalmweb.sftp.wpengine.com
username: nakedalmweb-learn
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/open-pr-describer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
pull-request:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: Ant0wan/openai-pr@v1
with:
api-key: ${{ secrets.OPENAI_API_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/opencommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: '16'
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: di-sukharev/opencommit@github-action-v1.0.4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ public void MapUserIdentityField(TfsProcessor processor, Field field)
var mapps = GetMappingFileData();
if (mapps != null && mapps.ContainsKey(field.Value.ToString()))
{
var original = field.Value;
field.Value = mapps[field.Value.ToString()];
Log.LogDebug($"TfsUserMappingTool::MapUserIdentityField::Map:[original|{original}][new|{field.Value}]");
}

}
Expand Down

0 comments on commit af279b1

Please sign in to comment.