Skip to content

Commit a8cb47d

Browse files
committed
1023120 - Fixed the failure issue
1 parent 3d59513 commit a8cb47d

71 files changed

Lines changed: 121 additions & 1067 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/gitleaks.yaml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,24 @@ jobs:
2121
continue-on-error: true
2222
- name: Setup NuGet.exe
2323
if: steps.gitleaks.outcome != 'success'
24-
uses: nuget/setup-nuget@v1
24+
uses: nuget/setup-nuget@v2
2525
with:
2626
nuget-version: latest
27-
- name: Install the dotnet
27+
- name: Install Mono
2828
if: steps.gitleaks.outcome != 'success'
29-
uses: actions/setup-dotnet@v3
30-
with:
31-
dotnet-version: '3.1.x'
29+
run: |
30+
sudo apt update
31+
sudo apt install -y mono-complete
32+
- name: Install the dotnet SDK to a custom directory
33+
if: steps.gitleaks.outcome != 'success'
34+
run: |
35+
mkdir -p $GITHUB_WORKSPACE/dotnet
36+
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --install-dir $GITHUB_WORKSPACE/dotnet --channel 6.0
3237
- name: Install the report tool packages
3338
if: steps.gitleaks.outcome != 'success'
3439
run: |
40+
export PATH=$GITHUB_WORKSPACE/dotnet:$PATH
3541
nuget install "Syncfusion.Email" -source ${{ secrets.NexusFeedLink }} -ExcludeVersion
36-
dir $GITHUB_WORKSPACE/Syncfusion.Email/lib/netcoreapp3.1
37-
dotnet $GITHUB_WORKSPACE/Syncfusion.Email/lib/netcoreapp3.1/GitleaksReportMail.dll ${{ secrets.CITEAMCREDENTIALS }} "$GITHUB_REF_NAME" ${{ secrets.NETWORKCREDENTIALS }} ${{ secrets.NETWORKKEY }} "$GITHUB_WORKSPACE" ${{ secrets.ORGANIZATIONNAME }}
38-
exit 1
42+
dir $GITHUB_WORKSPACE/Syncfusion.Email/lib/net6.0
43+
dotnet $GITHUB_WORKSPACE/Syncfusion.Email/lib/net6.0/GitleaksReportMail.dll ${{ secrets.CITEAMCREDENTIALS }} "$GITHUB_REF_NAME" ${{ secrets.NETWORKCREDENTIALS }} ${{ secrets.NETWORKKEY }} "$GITHUB_WORKSPACE" ${{ secrets.ORGANIZATIONNAME }}
44+
exit 1

Cascading-dropdown-remote-data/filter_core/.vs/config/applicationhost.config

Lines changed: 0 additions & 990 deletions
This file was deleted.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Cascading-dropdown-remote-data/filter_core/filter_core/Controllers/HomeController.cs renamed to Cascading-dropdown-remote-data/filter_core/Controllers/HomeController.cs

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using Microsoft.AspNetCore.Mvc;
77
using filter_core.Models;
88
using Syncfusion.EJ2.Base;
9+
using System.Text.Json;
910

1011
namespace TestSample.Controllers
1112
{
@@ -21,27 +22,30 @@ public IActionResult Index()
2122
ViewBag.DataSource = Order;
2223

2324
return View();
24-
}
25+
}
2526

26-
27-
public IActionResult StateDataSource([FromBody]ExtendedDataManager dm)
28-
{
27+
public IActionResult StateDataSource([FromBody] ExtendedDataManager dm)
28+
{
29+
var states = States.getStates();
2930

30-
var state = States.getStates();
31-
32-
var Data = state.ToList();
33-
int count = state.Count();
31+
int countryId = 0;
3432

33+
if (dm.Where != null && dm.Where.Count > 0)
34+
{
35+
var jsonValue = (JsonElement)dm.Where[0].value;
3536

36-
List<States> iterateState= new List<States>();
37-
foreach (States st in state) {
38-
if (st.countryId == (Int64)dm.Where[0].value) {
39-
iterateState.Add(st);
40-
}
41-
}
42-
return dm.RequiresCounts ? Json(new { result = Data.Skip(dm.Skip).Take(dm.Take), count = count }) : Json(iterateState.ToList());
37+
if (jsonValue.ValueKind == JsonValueKind.Number)
38+
{
39+
countryId = jsonValue.GetInt32(); // or GetInt64()
4340
}
41+
}
4442

43+
var filteredStates = states
44+
.Where(st => st.countryId == countryId)
45+
.ToList();
46+
47+
return Json(filteredStates);
48+
}
4549
public IActionResult CountryDataSource([FromBody]ExtendedDataManager dm)
4650
{
4751

Cascading-dropdown-remote-data/filter_core/filter_core/Models/ErrorViewModel.cs renamed to Cascading-dropdown-remote-data/filter_core/Models/ErrorViewModel.cs

File renamed without changes.

Cascading-dropdown-remote-data/filter_core/filter_core/Program.cs renamed to Cascading-dropdown-remote-data/filter_core/Program.cs

File renamed without changes.

0 commit comments

Comments
 (0)