Changeset dfce52b in flexoentity


Ignore:
Timestamp:
10/19/25 18:04:11 (3 months ago)
Author:
Enrico Schwass <ennoausberlin@…>
Branches:
master
Children:
ab1cc87
Parents:
8aea9a0
Message:

remove obsolte ensure_unique at all

File:
1 edited

Legend:

Unmodified
Added
Removed
  • flexoentity/id_factory.py

    r8aea9a0 rdfce52b  
    108108        hash_seed = canonical_seed(f"{domain}:{etype}:{text}")
    109109        base_hash = FlexOID._blake_hash(hash_seed)
    110         # unique_hash = (
    111         #    FlexOID._ensure_unique(base_hash) if enforce_unique else base_hash
    112         # )
    113         unique_hash = (
    114             FlexOID._ensure_unique(base_hash) if enforce_unique and version == 1 else base_hash
    115         )
     110
    116111        ver_part = f"{version:03d}{estate}"
    117         flexo_id_str = f"{domain}-{etype}{date_part}-{unique_hash}@{ver_part}"
     112        flexo_id_str = f"{domain}-{etype}{date_part}-{base_hash}@{ver_part}"
    118113
    119114        # state-dependent signature → per-state integrity
Note: See TracChangeset for help on using the changeset viewer.