Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Anotace pro analýzu smluvních podmínek a skrytých reklam - 0x00
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
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
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ASWI
ASWI 2022
Anotace pro analýzu smluvních podmínek a skrytých reklam - 0x00
Merge requests
!47
Re
#9677
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Re
#9677
features/9677-sentiment-annotation
into
dev
Overview
0
Commits
5
Pipelines
0
Changes
19
Merged
Dominik Poch
requested to merge
features/9677-sentiment-annotation
into
dev
2 years ago
Overview
0
Commits
5
Pipelines
0
Changes
19
Expand
Removed visiblity, added sentiment, added notes
Edited
2 years ago
by
Dominik Poch
0
0
Merge request reports
Compare
dev
version 1
812ee966
2 years ago
dev (base)
and
latest version
latest version
89154cb1
5 commits,
2 years ago
version 1
812ee966
4 commits,
2 years ago
19 files
+
1439
−
158
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
19
Search (e.g. *.vue) (Ctrl+P)
Backend/Backend/Controllers/AnnotationController.cs
+
26
−
0
Options
@@ -196,5 +196,31 @@ namespace RestAPI.Controllers
}
[
HttpPut
(
"/annotation/{annotationId}/{instanceId}/sentiment"
)]
[
ProducesResponseType
((
int
)
HttpStatusCode
.
OK
)]
[
ProducesResponseType
((
int
)
HttpStatusCode
.
Forbidden
)]
public
ActionResult
SetTagInstanceSentiment
([
FromServices
]
ClientInfo
clientInfo
,
Guid
annotationId
,
Guid
instanceId
,
SetInstanceSentimentRequest
request
)
{
if
(
clientInfo
.
LoggedUser
==
null
)
{
logger
.
Warning
(
"ClientInfo has null LoggerUser in [Authorized] controller /annotations"
);
return
Problem
();
}
try
{
annotationService
.
SetTagInstanceSentiment
(
annotationId
,
instanceId
,
clientInfo
.
LoggedUser
.
Id
,
clientInfo
.
LoggedUser
.
Role
,
request
.
Sentiment
);
return
Ok
();
}
catch
(
InvalidOperationException
e
)
{
throw
new
BadRequestException
(
e
.
Message
);
}
catch
(
UnauthorizedAccessException
)
{
return
Forbid
();
}
}
}
}
Loading