XSF Discussion - 2024-08-29


  1. lissine

    lovetox, cal0pteryx: gajim.org is down; both the website and the xmpp server (and by extension your public channel)

  2. cal0pteryx

    Thanks lissine

    🙏 1
  3. edhelas

    Someone walked on the powerstrip while going to bed last night.

    🤣 1
  4. dwd

    I have witnessed a cleaner unplugging a rack to do plug in the vacuum, once. Still get shivers.

  5. Guus

    That's literally a Dilbert comic.

  6. Guus

    ah no, that was management unplugging the server.

  7. Guus

    http://www.chillicheese.plus.com/dbert131001.gif

  8. dwd

    Well, it wasn't a rack in our case, since we didn't have racks - they were too expensive, and most of the machines were tower-cased machines, except Toyota's vast monstrosity. And this was, I think, before Toyota had their machine there. Same office blew the power once and had to power these servers by daisy-chaining four-way adapters from the shop downstairs. Good times.

  9. MattJ

    For attendees of the upcoming UK sprint, I've created a dedicated MUC for before and during the event: xmpp:uksprint@rooms.modernxmpp.org?join

  10. Guus

    I'm noticing that in XEP XML files, some XEPs are being referenced by an XML entity (eg `&xep0030;`) while others use a HTML `cite` element (eg `<cite>XEP-0030</cite>`). The latter doesn't seem to do anything with regards to rendering (there's no link to the reference list, for example. Should _all_ references to XEPs be an XML entity?

  11. cal0pteryx

    I remember there was an open issue about referencing authors by entities, because it was mixed there as well. So I think entities are the way to go

  12. Guus

    jonas’ I think you did the last rewrite of the rendering. Any thoughts?

  13. jonas’

    Guus, yes, they should all be entities.

  14. Guus

    Thanks

  15. Guus

    I tried to brute-force my way through this: https://github.com/xsf/xeps/pull/1377

  16. Guus

    Which fails the validation step. I probably messed up.

  17. Guus

    Do our validation scripts work only when a PR changes exactly one XEP?

  18. Zash

    Guus, try splitting xep-README.xml xep-template.xml into a separate PR?

  19. Guus

    Zash, I did that, didn't help

  20. Guus

    I'm now experimenting with the invocation. I think something is off with multi-file processing

  21. Guus

    Yeah, it's now less broken (but still broken).

  22. Guus

    aaah, as I now changed many files, each file will be evaluated, causing failure if something else in that file isn't correct (like a missing approver).

  23. Guus

    https://github.com/xsf/xeps/pull/1378 fixes part of it.

  24. moparisthebest

    For mass editorial changes like that it's fine to ignore the tooling failures imho

  25. nicoco

    Are there restrictions to the string used for the "node" attribute of adhoc commands? Is it a good idea to provide something namespacey like node='https://slidge.im/commands/admin'? Is there a registrar for such nodes, so that clients can maybe provide a less generic UI, such as not using the command "name" (translation, adaptation to potential client-specific terminology)…?

  26. Zash

    nicoco, https://xmpp.org/registrar/nodes.html ?

  27. nicoco

    so this could have a new section "adhoc command"? I only see "Nodes for Service Discovery and Publish-Subscribe" right now :)

  28. Zash

    Heh, > Last Updated: 2004-10-11

  29. singpolyma

    nicoco: there are no restrictions

  30. singpolyma

    For something that will be standardized a namespacy thing is good

  31. singpolyma

    For something local to just one service is doesn't matter at all

  32. Zash

    Were there even a size limit?

  33. singpolyma

    No. Unless XML attributes have one

  34. singpolyma

    JMP uses nodes like "top up account" with the spaces even

  35. jonas’

    XML attributes don't as per the spec, but parsers might limit them nontheless.

  36. nicoco

    Thanks. I followed JMP design and actually used the nodes as some sort of "category": "step 1" of the adhoc command is a dataform with a list-single field and actual real commands are the "step 2". This is to avoid having a very long list of commands in most, I guess this was the rationale for JMP as well, right?

  37. edhelas

    Personally I'd propose to update AdHoc and add a category="Category Title" or something like that in the list

  38. singpolyma

    nicoco: we use nodes like that because we also have a chatbot and those are the chatbot commands

  39. edhelas

    And leave the freedom to the client implementer to adapt its UI

  40. nicoco

    > Personally I'd propose to update AdHoc and add a category="Category Title" or something like that in the list That sounds good to me.

  41. singpolyma

    > Personally I'd propose to update AdHoc and add a category="Category Title" or something like that in the list Yes this is something we've considered. We don't quite need it yet but our list of commands is pretty long and will probably get longer

  42. edhelas

    I'm not a big fan of XMPP dictating how I show present things, Forms are "ok", but this is imposing navigations in the clients

  43. nicoco

    The problem being retrocompat, the current hack using step1 as category works in every client supporting adhoc commands, but for your proposal edhelas we need specific support. It will work without support, but we get back to that ugly long list.

  44. edhelas

    Maybe I'd prefer to request all the commands and then do my UI/UX flow how I want based on what I have, actually Movim is already using the node= to find a proper icon based on an internal list

  45. singpolyma

    I think the number of supporting clients is small enough I wouldn't worry about that too much. But if course you're current strategy is also quite fine

  46. singpolyma

    Oh really? What nodes do you know about to use for icon?

  47. MattJ

    edhelas, it's not necessarily dictating, you could just treat the category as a hint, and ignore it if you have a better UI

  48. edhelas

    > Oh really? What nodes do you know about to use for icon? https://upload.movim.eu/files/9d94237298995552fa13436420195fbca436dce7/PZrW1yemD5or/image.png

  49. edhelas

    Here for example

  50. MattJ

    But in the absence of knowledge about what the commands are, I would assume that such categories can only help improve the UI

  51. edhelas

    singpolyma this way of doing also allows me to have nice icons in some forms, like with the toggles

  52. edhelas

    https://upload.movim.eu/files/9d94237298995552fa13436420195fbca436dce7/CSKKHUGzIIW0/image.png

  53. nicoco

    These are dataform fields though, it's a related but different thing, innit?

  54. edhelas

    Yes, that's why I said "way of doing" :)

  55. nicoco

    You've convinced me that ~standardized node names and this new "category" attribute is a better approach than. I was thinking it's good for translations too but I just realized XEP-0050 already covers that with the iq get xml:lang attribute in theory, I wonder if that's actually implemented by some clients.

  56. nicoco

    edhelas, do you use that xml:lang attribute when you request adhoc commands?

  57. edhelas

    Nope, but I could

    🆗 1
  58. nicoco

    (slidge is not going to use it tomorrow, I have nothing started regarding internationalisation right now, but in the distant future, it may be planned if the stars align)

  59. Guus

    > For mass editorial changes like that it's fine to ignore the tooling failures imho Not sure if I agree

  60. moparisthebest

    Guus: the tooling specifically ensures each MR only changes 1 XEP etc, which is normally correct, but in the case of a mass search+replace that doesn't change meaning it's harmful, no?

  61. moparisthebest

    There's no writing the tooling to decide what's a mass editorial search and replace vs not

  62. moparisthebest

    So human overriding it and merging anyway is the right way imho

  63. moparisthebest

    That change shouldn't add version numbers and such either imho

  64. Guus

    moparisthebest: I modified at least one script to be run once for each file changed. That properly validated the files. Validation found valid issues in files that were modified.

  65. Guus

    Those issues should simply be fixed, in my opinion.

  66. moparisthebest

    And you are gonna fix them all now?

  67. moparisthebest

    The validation I suggested ignoring was simply the "one XEP per Mr" one

  68. Guus

    Going to give it a try, yes

  69. moparisthebest

    good luck 😄 if it's gonna cause you to give up I'd argue some fixes are better than no fixes at all, last time I tried to mass fix things it took months to be merged 💀

  70. Guus

    Do we need revision blocks for editorial changes?

  71. Zash

    Yes! Very detailed, individually composed for each XEP! /s

  72. Zash

    Is this even editorial if you change some stuff into an entity representing the same stuff?

  73. Guus

    The rendered output changes.

  74. Guus

    But I'm now also pushing missing approver elements, etc

  75. moparisthebest

    imho no revision blocks since nothing is actually changing, things that should have been linked will be, you aren't changing approver, it was always that, but previous tooling didn't enforce however But I know before Kev had differing opinions :)

  76. moparisthebest

    Guus: oh for context it was merged without version bumps so now there is historical precedent for this exact thing: https://github.com/xsf/xeps/pull/1265

  77. Guus

    I think that the current PRs fix all remaining validation errors

  78. Guus

    There's some non-breaking error output when XEP-0384 gets validated that has to do with nesting of certain HTML elements, I think. I'm leaving that for others to address.