aleph-im / aleph-message

Aleph.im message specification
MIT License
0 stars 5 forks source link

Add `dump_content` function to avoid unclear `item_content` transformation process #90

Open MHHukiewitz opened 8 months ago

MHHukiewitz commented 8 months ago

In order to avoid mistakes when creating the item_content of a message, the extended_json_encoder has been added from the aleph-sdk-python package to this central piece of the aleph architecture.

Based on #89

hoh commented 8 months ago

Can you explain the issue in more details ? I do not understand what the problem is from this short description.

MHHukiewitz commented 7 months ago

Well, I figured that some functions in connection with messages are too important, to have them spread out around the different repos. IMHO we want:

This way we can also write tests for the validators, to make sure that what transformations we implemented here, are working fine with the current message spec.

hoh commented 7 months ago

This branch is mixing unrelated stuff, can you move black and forbid to other branches ?

hoh commented 7 months ago

Is the code coverage increasing or at least identical after these changes ? I don't see changes in the tests.

MHHukiewitz commented 7 months ago

Is the code coverage increasing or at least identical after these changes ? I don't see changes in the tests.

93% -> 92%, due to the decreasing coverage on the utils.py file from 100% -> 72%. Will increase coverage