Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FIT-Connect-SDK - .NET
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FIT-Connect
FIT-Connect-SDK - .NET
Commits
a75781ff
Commit
a75781ff
authored
1 year ago
by
Klaus Fischer
Browse files
Options
Downloads
Patches
Plain Diff
Cherry picked SET order fix
parent
f5a7c8b4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
FitConnect/FitConnectClient.cs
+16
-2
16 additions, 2 deletions
FitConnect/FitConnectClient.cs
with
16 additions
and
2 deletions
FitConnect/FitConnectClient.cs
+
16
−
2
View file @
a75781ff
...
...
@@ -189,7 +189,20 @@ public abstract class FitConnectClient {
SentSubmission
submission
)
{
var
eventLog
=
await
GetEventLogAsync
(
submission
.
CaseId
,
submission
.
DestinationId
);
var
status
=
eventLog
.
Last
(
e
=>
e
.
SubmissionId
==
submission
.
SubmissionId
);
// TODO Change sorting to __logic__
var
status
=
eventLog
.
Where
(
e
=>
e
.
SubmissionId
==
submission
.
SubmissionId
)
.
Select
(
e
=>
CreateSubmissionStatusFromSet
(
submission
,
e
))
.
OrderBy
(
e
=>
(
int
)
e
.
SubmissionState
)
.
Last
();
return
status
;
}
private
static
SubmissionStatus
CreateSubmissionStatusFromSet
(
SentSubmission
submission
,
SecurityEventToken
status
)
{
List
<
Problems
>?
problems
=
null
;
if
(
status
.
Events
?.
AcceptSubmissionEvent
!=
null
)
{
...
...
@@ -204,7 +217,8 @@ public abstract class FitConnectClient {
else
if
(
status
.
Events
?.
RejectSubmissionEvent
!=
null
)
problems
=
status
.
Events
.
RejectSubmissionEvent
.
Problems
;
return
new
SubmissionStatus
(
status
.
EventType
,
problems
);
var
result
=
new
SubmissionStatus
(
status
.
EventType
,
problems
);
return
result
;
}
/// <summary>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment