Releases: mercadolibre/fury-little_monster-gem
Raw error attribute in job model
Summary
This pr adds raw_error
new attribute in job model.
This allows any gem implementation to manipulate error as it was created, giving the possibility to access error's inner fields without serialization.
Support Job extension
Jobs can now inherit from another job, this will inherit a copy of the parent job's task list, retries and callback retries. The task list can be modified by new methods task_list_prepend(new_tasks...)
, task_list_prepend_at(task, new_tasks...)
, task_list_append(new_tasks...)
and task_list_append_at(task, new_tasks...)
.
When searching for Task implementations, we will first look for implementations in the Job's namespace, then in the parent's namespace and last of all without any namespace.
example:
class JobB < JobA
task_list_prepend :task_a, :task_b # these tasks will be run before all parent tasks
task_list_append :task_c, task_d # these tasks will be run after all parent tasks
task_list_prepend_at :task_x, :task_u, :task_v # tasks :task_u and :task_v will be run before :task_x (:task_x can be a parent task)
task_list_append_at :task_y, :task_u, :task_v # tasks :task_u and :task_v will be run after :task_x (:task_x can be a parent task)
retries 5 # if we don't specify anything, this job inherits the parent's retries
end
Insert datasec pre-commit
This PR adds the pre-commit configurations to use DataSec hook (Aegis), following on from what was previously
communicated in workplace.
It is generated automatically and therefore its revision is requested.
The following behavior is expected:
- If you do not have built-in
.pre-commit-config.yaml
.
WebSec hook (SAST)
and DataSec hook (Aegis) hooks are added. - If you have built-in
.pre-commit-config.yaml
only DataSec hook is added. - Previous hooks should not be modified, changes may arise in the comments of the hooks.
Important
Both SAST and Aegis hooks are required.
Contact
If you have any questions contact [email protected]
or slack.