researchstudio-sat / webofneeds

Finding people to cooperate with. Protocol, not platform. Decentralized. Linked Data. Open Source.
http://researchstudio-sat.github.io/webofneeds/
Apache License 2.0
63 stars 20 forks source link

Associate atoms optimistically #3305

Closed fkleedorfer closed 4 years ago

fkleedorfer commented 4 years ago

Pull request checklist

Please check if your PR fulfills the following requirements:

Pull request type

Please check the type of change your PR introduces:

What is the current behavior?

when creating an atom via the owner webapp, the atom would be associated with the user only upon receipt of the success response. That sometimes led to atoms being created but the owner webapp would not associate them with the user (if, for some reason, the response was lost, e.g. bc the webapp went down)

What is the new behavior?

optimistically associate the atom with the user when sending the create message to the node, remove it when it fails. The webapp can handle non-existing atoms being associated with the user, so this new behaviour is probably more fail-safe

Does this introduce a breaking change?

Other information

Also changed the fake-names file (remove some adjectives, sorted and removed duplicates)