Skip to content

Commit

Permalink
Merge branch 'master' into v-sabiraj-updatingadditionaltable
Browse files Browse the repository at this point in the history
  • Loading branch information
v-prasadboke committed Dec 3, 2024
2 parents 8550eff + be88290 commit 0e8267b
Show file tree
Hide file tree
Showing 309 changed files with 48,505 additions and 8,763 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/kql-validations.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: KQL Validations
run-name: KQL Validations running on ${{ github.ref_name }}
on:
pull_request:
branches:
- master
# Allows to run workflow manually from the Actions tab
workflow_dispatch:
jobs:
KqlValidations:
runs-on: ubuntu-latest
env:
buildConfiguration: Release
dotnetSdkVersion: 6.0.x
PRNUM: ${{ github.event.pull_request.number }}
steps:
- uses: actions/checkout@v4
- name: Use .NET Core SDK ${{ env.dotnetSdkVersion }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.dotnetSdkVersion }}
- name: Run KQL Validation tests
run: dotnet test .script/tests/KqlvalidationsTests/Kqlvalidations.Tests.csproj --configuration ${{ env.buildConfiguration }}
env:
GITHUBAPPID: ${{ secrets.APPLICATION_ID }}
GITHUBAPPINSTALLATIONID: ${{ secrets.APPLICATION_INSTALLATION_ID }}
GITHUBAPPPRIVATEKEY: ${{ secrets.APPLICATION_PRIVATE_KEY }}
SYSTEM_PULLREQUEST_ISFORK: ${{ github.event.pull_request.head.repo.fork }}

Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"FunctionName": "DataverseSharePointSites",
"FunctionParameters": [
{
"Name": "MSBizAppsConfigurationWatchlistAlias",
"Type": "string",
"Default": "'MSBizApps-Configuration'"
}
],
"FunctionResultColumns": [
{
"Name": "InstanceUrl",
"Type": "string"
},
{
"Name": "SharePointUrl",
"Type": "string"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"FunctionName": "MSBizAppsNetworkAddresses",
"FunctionParameters": [
{
"Name": "NetworkAddressesWatchlistAlias",
"Type": "string",
"Default": "'NetworkAddresses'"
}
],
"FunctionResultColumns": [
{
"Name": "IPSubnet",
"Type": "string"
},
{
"Name": "RangeName",
"Type": "string"
},
{
"Name": "Tags",
"Type": "string"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"FunctionName": "MSBizAppsOrgSettings",
"FunctionParameters": [],
"FunctionResultColumns": [
{
"Name": "FieldName",
"Type": "string"
},
{
"Name": "DisplayName",
"Type": "string"
},
{
"Name": "Description",
"Type": "string"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"FunctionName": "MSBizAppsTerminatedEmployees",
"FunctionParameters": [
{
"Name": "TerminatedEmployeesWatchlistAlias",
"Type": "string",
"Default": "'TerminatedEmployees'"
}
],
"FunctionResultColumns": [
{
"Name": "UserIdentifier",
"Type": "string"
},
{
"Name": "UserAADObjectId",
"Type": "string"
},
{
"Name": "UserOnPremSid",
"Type": "string"
},
{
"Name": "UserPrincipalName",
"Type": "string"
},
{
"Name": "UserState",
"Type": "string"
},
{
"Name": "NotificationDate",
"Type": "datetime"
},
{
"Name": "TerminationDate",
"Type": "datetime"
},
{
"Name": "Tags",
"Type": "string"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"FunctionName": "MSBizAppsVIPUsers",
"FunctionParameters": [
{
"Name": "VIPUsersWatchlistAlias",
"Type": "string",
"Default": "'VIPUsers'"
}
],
"FunctionResultColumns": [
{
"Name": "UserIdentifier",
"Type": "string"
},
{
"Name": "UserAADObjectId",
"Type": "string"
},
{
"Name": "UserOnPremSid",
"Type": "string"
},
{
"Name": "UserPrincipalName",
"Type": "string"
},
{
"Name": "Tags",
"Type": "string"
}
]
}
113 changes: 113 additions & 0 deletions .script/tests/KqlvalidationsTests/CustomTables/DataverseActivity.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
{
"Name": "DataverseActivity",
"Properties": [
{
"name": "SourceRecordId",
"type": "String"
},
{
"name": "UserAgent",
"type": "String"
},
{
"name": "TimeGenerated",
"type": "DateTime"
},
{
"name": "Operation",
"type": "String"
},
{
"name": "OrganizationId",
"type": "String"
},
{
"name": "UserType",
"type": "String"
},
{
"name": "UserKey",
"type": "String"
},
{
"name": "ResultStatus",
"type": "String"
},
{
"name": "OriginalObjectId",
"type": "String"
},
{
"name": "UserId",
"type": "String"
},
{
"name": "UserUpn",
"type": "String"
},
{
"name": "ClientIp",
"type": "String"
},
{
"name": "CorrelationId",
"type": "String"
},
{
"name": "CrmOrganizationUniqueName",
"type": "String"
},
{
"name": "InstanceUrl",
"type": "String"
},
{
"name": "ItemUrl",
"type": "String"
},
{
"name": "ItemType",
"type": "String"
},
{
"name": "Message",
"type": "String"
},
{
"name": "EntityId",
"type": "String"
},
{
"name": "EntityName",
"type": "String"
},
{
"name": "Fields",
"type": "Dynamic"
},
{
"name": "Query",
"type": "String"
},
{
"name": "QueryResults",
"type": "Dynamic"
},
{
"name": "ServiceContextId",
"type": "String"
},
{
"name": "ServiceContextIdType",
"type": "String"
},
{
"name": "ServiceName",
"type": "String"
},
{
"name": "SystemUserId",
"type": "String"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"Name": "FinanceOperationsActivity_CL",
"Properties": [
{
"name": "TimeGenerated",
"type": "datetime"
},
{
"name": "InstanceName",
"type": "string"
},
{
"name": "LogCreatedDateTime",
"type": "datetime"
},
{
"name": "LogType",
"type": "string"
},
{
"name": "TableName",
"type": "string"
},
{
"name": "Username",
"type": "string"
},
{
"name": "Description",
"type": "string"
},
{
"name": "Data",
"type": "dynamic"
},
{
"name": "FormattedData",
"type": "dynamic"
},
{
"name": "LogCreatedBy",
"type": "string"
},
{
"name": "LogCreatedTransactionId",
"type": "string"
},
{
"name": "LogDataAreaId",
"type": "string"
},
{
"name": "LogPartition",
"type": "long"
},
{
"name": "LogRecId",
"type": "long"
},
{
"name": "SequenceNumber",
"type": "int"
},
{
"name": "TableIdNumber",
"type": "int"
},
{
"name": "TableRecId",
"type": "long"
},
{
"name": "TableRecVersion",
"type": "int"
}
]
}
Loading

0 comments on commit 0e8267b

Please sign in to comment.