[FIX]Rewrite history logic

Merged Gastón Bertolani requested to merge 12.0-YPF-426-history-logic into 12.0-stage

Closes YPF-426

Merge request reports