-
Notifications
You must be signed in to change notification settings - Fork 58
MOTECH-1874 Ability to disable task activity audit #621
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
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
base: master
Are you sure you want to change the base?
Conversation
fixed warning in recent-task-activity
Can one of the admins verify this patch? |
3 similar comments
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
test this please |
<a class="activity-warn" href="#/tasks/settings">{{msg('task.info.successLogsDisabled')}}</a> | ||
</td> | ||
</tr> | ||
<tr ng-repeat="activity in activities" ng-hide="activities.length == 0"> |
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.
I think that activities could be in another "tbody". To clarify one tbody will handle all informations and another with activities.
test this please |
test this please |
@kmadej Looks good to me |
test this please |
@@ -65,6 +65,12 @@ | |||
|
|||
private static final String TASK_POSSIBLE_ERRORS_KEY = "task.possible.errors"; | |||
|
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.
remove spaces between variables
@@ -284,8 +293,9 @@ private void handleError(Map<String, Object> params, Task task, TaskHandlerExcep | |||
|
|||
private void handleSuccess(Map<String, Object> params, Task task) { | |||
LOGGER.debug("All actions from task: {} with ID: {} were successfully executed", task.getName(), task.getId()); | |||
|
|||
activityService.addSuccess(task); | |||
if (getTaskLogActivities().equals(LOG_ALL_ACTIVITIES)) { |
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.
the same
After merging https://applab.atlassian.net/browse/MOTECH-2296 ticket we can't disable all task activities. If we don't save them we'll get lost task retrying function and execution many actions in a task. We can miss only failure task activities. |
Added property and option in task settings.