You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
1.2 KiB

9 years ago
  1. Random TODOs as I think of them:
  2. - Whilst the `Expansions` bit on `plugins` is a lovely surprise, I find myself
  3. having to run the regexp twice because the callback does not give me any
  4. captured groups (just the matched string). I run it once so the callback
  5. fires, then run it again to actually extract the useful bits. This could
  6. be done better.
  7. - I'm not sure about the `Plugin(roomId string)` interface function. Python
  8. NEB could be configured to allow certain actions in certain rooms (e.g. only
  9. expand issues in this room, not that room). You can for sure do that using
  10. the given interface function, but you'd need to store those mappings
  11. yourself. Python NEB did it by giving you a key-value store which you could
  12. chuck config info for a room into: I wonder how useful that would be for
  13. Go-NEB?
  14. - The service ID as it stands feels mingy. There are times I want to execute
  15. Service code without knowing a service ID (e.g. processing webhooks, executing
  16. auth code, etc) so I have to use "" just to create a Service :( Also, it feels
  17. wrong to defer responsibility for knowing what a valid service ID is to the
  18. caller of the /configureService API. How the hell do they know which IDs have
  19. been taken?!