Status map issue: Validated, Member?
Tikka v0.20.0, when I am looking at my profile moul in the account view, I click "Refresh", I get:
d":"genesis-identity_49","index":49,"name":"moul","accountId":"g1QEs1J7Z6wpXZUe3t3KxYmhbXUeUJx283YJpu9uZrWEcZzJP","status":"Member"}}]}}}
ERROR:root:'Member'
Traceback (most recent call last):
File "/home/moul/projects/ML/tikka/tikka/slots/pyqt/widgets/account.py", line 510, in fetch_certifications_from_network
self.application.certifications.network_fetch_certifications_for_identity(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
self.identity.index
^^^^^^^^^^^^^^^^^^^
)
^
File "/home/moul/projects/ML/tikka/tikka/domains/certifications.py", line 111, in network_fetch_certifications_for_identity
certifications = self.indexer_certifications.list(identity_index, 1000, 0)
File "/home/moul/projects/ML/tikka/tikka/adapters/network/indexer/certifications.py", line 158, in list
issuer_identity_status=self.identity_status_map[
~~~~~~~~~~~~~~~~~~~~~~~~^
certification["issuer"]["status"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
],
^
KeyError: 'Member'
DEBUG:root:Certifications model init data, identity #49, column=certification_receiver_identity_index, size=0
DEBUG:root:Certifications model init data, identity #49, column=certification_issuer_identity_index, size=0
DEBUG:root:Finished fetch identity certifications g1QEs1J7Z6wpXZUe3t3KxYmhbXUeUJx283YJpu9uZrWEcZzJP
^C^C
Traceback (most recent call last):
File "/home/moul/projects/ML/tikka/tikka/slots/pyqt/windows/main.py", line 317, in closeEvent
def closeEvent(self, event: QtGui.QCloseEvent) -> None:
Changing the map from Validated to Member fixes the issue in this case:
https://git.duniter.org/clients/python/tikka/-/blob/main/tikka/adapters/network/indexer/certifications.py?ref_type=heads#L37
But, I see 9d9d1c50 which did the opposite before. Is it somewhere Validated and in this case Member?
I let you fix it properly!