jdev - 2020-08-03


  1. flow

    lovetox, code that checks that assumptions are met, and otherwise takes care that they are met, appears to be always sensible

  2. jonas’

    lovetox, there are good reasons to not have persist items set to true by default, but you should get away with assertions during item publish

  3. jonas’

    (XEP-0060 assertions, not `assert node.config == correct`)

  4. flow

    jonas’, xep60 allows to publish with an item and given configuration options that need to be fulfilled? or what are xep60 assertions (there is one hit for 'assert' in xep60)?

  5. jonas’

    exactly that

  6. jonas’

    <publish-options/>

  7. jonas’

    the publish fails with <conflict/> if an option is set to a different value, and the options are applied otherwise

  8. flow

    ahh that, I stopped reading at 7.1.3

  9. lovetox

    jonas’, yes i know about publish options

  10. lovetox

    it about what to do if there is a conflict

  11. lovetox

    tell the user to contact the admin, or simply force all nodes to my likings

  12. lovetox

    tell the user to contact the admin, or simply force all nodes to my will

  13. lovetox

    the later is of course much more work and even more error cases to handle

  14. jonas’

    lovetox, if there’s a conflict, it may not be the admins fault at all

  15. jonas’

    might also be the user’s fault

  16. jonas’

    or another client’s fault

  17. lovetox

    how does that help me :)

  18. lovetox

    there is not many config options we can change at all, i think access model and persist, and then it ends

  19. lovetox

    so persist items is the most likely one to fail