-
Notifications
You must be signed in to change notification settings - Fork 6
Capture group capture linkage endpoint refactor #174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Capture group capture linkage endpoint refactor #174
Conversation
| <cfe_18.capture_def_group id="4" capture_def_group_name="capturegroup4" capture_type="cfe"/> | ||
| <cfe_18.capture_def_group id="5" capture_def_group_name="capturegroup5" capture_type="cfe"/> | ||
| <cfe_18.capture_def_group id="6" capture_def_group_name="capturegroup6" capture_type="cfe"/> | ||
| <cfe_18.capture_def_group id="22" capture_def_group_name="group1" capture_type="cfe"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New feature does not create capture group anymore alongside linking so test will not work with this testdata. For linking purposes, existing group needs to be used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does have exception signature still. Was not in the scope of this PR so will be removed when linkage feature gets reworked.
|
|
||
| @Mapper | ||
| public interface CaptureGroupMapper { | ||
| public interface CaptureGroup_Mapper { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
underscore should be removed
| @RestController | ||
| @RequestMapping(path = "group/captures") | ||
| @SecurityRequirement(name = "api") | ||
| public class CaptureGroup_Controller { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
underscore
| if (cause instanceof SQLException) { | ||
| LOGGER.error((cause).getMessage()); | ||
| int error = ((SQLException) cause).getErrorCode(); | ||
| String state = error + "-" + ((SQLException) cause).getSQLState(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use error.equals(...) && state.equals(...) instead of string concatenation
|
This should be checked after PR #169 |
b6659ba to
52f432c
Compare
More info on PR #155