hgeorgsch / armchar-swish

ArM character server implementation using Haskell and Swish
GNU General Public License v3.0
0 stars 1 forks source link

Replace advancement upon PUT #34

Closed hgeorgsch closed 2 years ago

hgeorgsch commented 2 years ago

We need to extract the old subgraph, delete it, convert the JSON submission into a graph and add it, and finally rebuild all the character sheets.

hgeorgsch commented 2 years ago

This requires some refactoring of the STM module, I think. The raw graph should be replaced in the STM monad, but the augmented graphs should be defined only implicitly, by applying the reasoner in a function used to retrieve data from the monad. Currently only the Character Map is derived that way.

hgeorgsch commented 2 years ago

This needs to be reviewed, as we now need to put to the raw graph and not the derived one.

hgeorgsch commented 2 years ago

The problem at the moment is that the deletion of the old triples does not work as it should.

hgeorgsch commented 2 years ago

advancement contents is now correctly updated. the advancement traits are lost however.

hgeorgsch commented 2 years ago

This seems to work now.