File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2231,7 +2231,9 @@ def hash_code_fields(self):
22312231 else :
22322232 deduplicationLogger .debug ("Section HASHCODE_FIELDS_PER_SCANNER not found in settings.dist.py" )
22332233
2234- deduplicationLogger .debug (f"HASHCODE_FIELDS_PER_SCANNER is: { hashCodeFields } " )
2234+ hash_code_fields_always = getattr (settings , "HASH_CODE_FIELDS_ALWAYS" , [])
2235+ deduplicationLogger .debug (f"HASHCODE_FIELDS_PER_SCANNER is: { hashCodeFields } + HASH_CODE_FIELDS_ALWAYS: { hash_code_fields_always } " )
2236+
22352237 return hashCodeFields
22362238
22372239 @property
@@ -2935,6 +2937,13 @@ def compute_hash_code(self):
29352937 # Generically use the finding attribute having the same name, converts to str in case it's integer
29362938 fields_to_hash += str (getattr (self , hashcodeField ))
29372939 deduplicationLogger .debug (hashcodeField + " : " + str (getattr (self , hashcodeField )))
2940+
2941+ # Log the hash_code fields that are always included (but are not part of the hash_code_fields list as they are inserted downtstream in self.hash_fields)
2942+ hash_code_fields_always = getattr (settings , "HASH_CODE_FIELDS_ALWAYS" , [])
2943+ for hashcodeField in hash_code_fields_always :
2944+ if getattr (self , hashcodeField ):
2945+ deduplicationLogger .debug (hashcodeField + " : " + str (getattr (self , hashcodeField )))
2946+
29382947 deduplicationLogger .debug ("compute_hash_code - fields_to_hash = " + fields_to_hash )
29392948 return self .hash_fields (fields_to_hash )
29402949
You can’t perform that action at this time.
0 commit comments