-
Notifications
You must be signed in to change notification settings - Fork 2
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 #67 from SimCorp/fix-develop-main-merge
Release 0.4.0
- Loading branch information
Showing
42 changed files
with
21,701 additions
and
3,923 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Generate Codecov PR report | ||
|
||
on: | ||
issue_comment: | ||
types: [created, edited] | ||
|
||
jobs: | ||
codecov-comment: | ||
if: contains(github.event.comment.html_url, '/pull/') && contains(github.event.comment.body, 'run codecov') | ||
name: CodeCov comment | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
dotnet: ['5.0'] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Test code | ||
run: dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover | ||
- name: Upload code | ||
run: | ||
bash <(curl -s https://codecov.io/bash) -t ${{ secrets.CODECOV_TOKEN }} |
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,5 @@ | ||
{ | ||
"CORS": { | ||
"AllowedHosts": [ "http://localhost:8080" ] | ||
} | ||
} |
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,50 @@ | ||
using backend.models; | ||
using backend.drawables; | ||
using System.Collections.Concurrent; | ||
using System.Collections.Generic; | ||
|
||
namespace backend | ||
{ | ||
public class DataStorage | ||
{ | ||
|
||
public ConcurrentDictionary<string, Server> idToServer; | ||
public List<Server> servers; | ||
public ConcurrentBag<backend.models.Connection> connections; | ||
public ConcurrentBag<Route> routes; | ||
public ConcurrentBag<Gateway> gateways; | ||
public ConcurrentBag<Leaf> leafs; | ||
public List<Link> links; | ||
public ConcurrentBag<ServerNode> processedServers; | ||
public ConcurrentBag<ClusterNode> processedClusters; | ||
public Dictionary<string, List<string>> serverToMissingServer; | ||
|
||
public HashSet<string> missingServerIds = new HashSet<string>(); | ||
public HashSet<string> foundServers = new HashSet<string>(); | ||
public Dictionary<string, string> serverToCluster = new Dictionary<string, string>(); | ||
public Dictionary<string, List<string>> clusterConnectionErrors = new Dictionary<string, List<string>>(); | ||
public List<ClusterNode> errorClusters = new List<ClusterNode>(); | ||
|
||
|
||
public DataStorage() { | ||
|
||
idToServer = new ConcurrentDictionary<string, Server>(); | ||
servers = new List<Server>(); | ||
connections = new ConcurrentBag<backend.models.Connection>(); | ||
routes = new ConcurrentBag<Route>(); | ||
gateways = new ConcurrentBag<Gateway>(); | ||
leafs = new ConcurrentBag<Leaf>(); | ||
|
||
links = new List<Link>(); | ||
processedServers = new ConcurrentBag<ServerNode>(); | ||
processedClusters = new ConcurrentBag<ClusterNode>(); | ||
serverToMissingServer = new Dictionary<string, List<string>>(); | ||
|
||
missingServerIds = new HashSet<string>(); | ||
foundServers = new HashSet<string>(); | ||
serverToCluster = new Dictionary<string, string>(); | ||
clusterConnectionErrors = new Dictionary<string, List<string>>(); | ||
errorClusters = new List<ClusterNode>(); | ||
} | ||
} | ||
} |
Oops, something went wrong.