Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ClientServer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
YAPEX
ClientServer
Commits
a6fe66c1
Commit
a6fe66c1
authored
2 years ago
by
Janis Daniel Dähne
Browse files
Options
Downloads
Patches
Plain Diff
- fixed do editor compile single file (hidden files)
parent
8022fe4d
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/ClientServer/Config/Constants.cs
+1
-1
1 addition, 1 deletion
src/ClientServer/Config/Constants.cs
src/ClientServer/Controllers/Core/Testing/TestingController.cs
+17
-1
17 additions, 1 deletion
...lientServer/Controllers/Core/Testing/TestingController.cs
with
18 additions
and
2 deletions
src/ClientServer/Config/Constants.cs
+
1
−
1
View file @
a6fe66c1
...
...
@@ -13,7 +13,7 @@ namespace ClientServer.Helpers
/// </summary>
public
static
class
Constants
{
public
static
string
VersionString
=
"2.20.
4
"
;
public
static
string
VersionString
=
"2.20.
5
"
;
/// <summary>
/// this is only set once at program.cs!!
...
...
This diff is collapsed.
Click to expand it.
src/ClientServer/Controllers/Core/Testing/TestingController.cs
+
17
−
1
View file @
a6fe66c1
...
...
@@ -120,6 +120,7 @@ namespace ClientServer.Controllers.Core.Testing
var
participation
=
await
_context
.
ExerciseReleaseWithUserAsParticipations
.
Include
(
p
=>
p
.
ExerciseRelease
)
.
Include
(
p
=>
p
.
ExerciseRelease
.
Exercise
.
CodeTemplates
)
.
FirstOrDefaultAsync
(
p
=>
p
.
UserId
==
userId
//&& p.ExerciseRelease.IsReleased //compiling is ok
&&
p
.
ExerciseRelease
.
GeneratedCode
==
runCompileSingleFileCommand
.
GeneratedCode
);
...
...
@@ -180,6 +181,21 @@ namespace ClientServer.Controllers.Core.Testing
MainFile
=
mainFile
,
MainFileId
=
mainFile
.
Id
,
};
var
codeTemplate
=
participation
.
ExerciseRelease
.
Exercise
.
CodeTemplates
.
FirstOrDefault
(
p
=>
p
.
PLangId
==
solution
.
PLangId
)
;
if
(
codeTemplate
==
null
)
{
await
Response
.
WriteAsync
(
Jc
.
Serialize
(
new
BasicResponse
(
ResponseCode
.
NotFound
,
"codeTemplate not found"
)));
return
;
}
//make readonly files up-to-date
var
errorMsg
=
UserSolutionHelper
.
ReplaceReadonlyFiles
(
solution
,
codeTemplate
,
false
,
true
);
var
test
=
new
AllTest
{
...
...
@@ -457,7 +473,7 @@ namespace ClientServer.Controllers.Core.Testing
return
;
}
if
(
runCompileSingleFileCommand
.
Files
==
null
||
runCompileSingleFileCommand
.
Files
.
Count
==
0
)
if
(
runCompileSingleFileCommand
.
Files
==
null
||
runCompileSingleFileCommand
.
Files
.
Count
==
0
)
{
await
Response
.
WriteAsync
(
...
...
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