DamienHarper / auditor

auditor, the missing audit log library
MIT License
164 stars 53 forks source link

Write test for column of type `blob`. #99

Closed SanderVerkuil closed 2 years ago

SanderVerkuil commented 2 years ago

Written a test for #98.

@DamienHarper In the current case, the blob column type can be used for various elements, for instance, 'simple' fields like true/false, float values, or complete base64 encoded files. I think that it's not very useful to store the complete diff for cases like these. What do you think this project ought to do with these column types?

codecov-commenter commented 2 years ago

Codecov Report

Merging #99 (3579098) into master (0aebff7) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master      #99   +/-   ##
=======================================
  Coverage   94.75%   94.76%           
=======================================
  Files          40       40           
  Lines        1431     1432    +1     
=======================================
+ Hits         1356     1357    +1     
  Misses         75       75           
Impacted Files Coverage Δ
...vider/Doctrine/Auditing/Transaction/AuditTrait.php 92.92% <100.00%> (+0.07%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 0aebff7...3579098. Read the comment docs.

DamienHarper commented 2 years ago

@SanderVerkuil you can disable auditing for specific columns/properties. This can be achieved in dh_auditor.yaml configuration file or by using the @Ignore annotation or the #[Ignore] attribute (PHP >= 8 only)