Lexpedite / blawx

A user-friendly web-based tool for Rules as Code.
MIT License
105 stars 9 forks source link

Scenario Editor Sending Duplicate Values to Reasoner #342

Closed Gauntlet173 closed 2 years ago

Gauntlet173 commented 2 years ago

The scenario editor is taking data from the /onto endpoint for a test, displaying it to the user, allowing the user to specify more facts, and then it is sending both the user facts and the ontology facts back to the server.

This seems to be, in some circumstances, creating additional explanations for answers. I don't understand the mechanism by which that is happening, but removing the ontology facts from the JSON payload eliminates the redundant explanations.

We need to have the scenario editor pre-process the data packet so that it doesn't send information that it received from the code.

Gauntlet173 commented 2 years ago

This is specifically visible if you use the Rock Paper Scissors example, and recreate the bobjane test, and then grab the JSON payload by using JSON.stringify(fact_data), and run it in the /run endpoint for the who_wins test, with and without the detail about signs in the payload.