-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: make card events compatible with webhook listener #6523
base: main
Are you sure you want to change the base?
feat: make card events compatible with webhook listener #6523
Conversation
Signed-off-by: nicolashimmelmann <nhimmelmann@mailbox.org>
thank you for working on this. it seems logical and looks like a pretty clean and simple solution. i only have one question regarding it, and maybe it's something also for @luka-nextcloud and @grnd-alt to chime in on:
i'm also trying to think of the best way we can write tests for this. i'll see if some other apps have any reference material there for some ideas |
Iirc @blizzz worked on that in tables. Do you remember how we did it there? |
Thanks for the fast reply!
You are right, from my experience building a flow using my current solution, it would have been handy to have the old information as well. However, then we should document it properly that the event payload differs in this case. |
Please correct me if I mix up something. The related PR in tables is nextcloud/tables#1101 and the specific commit is nextcloud/tables@2a6a338 I created the final, jsonserializable class |
This comment was marked as off-topic.
This comment was marked as off-topic.
@nicolashimmelmann just checking to make sure everything is all good, did you need any help getting this finished up? no pressure, just wanted to check! :) |
Sorry, I think it was a misunderstanding. I assumed you would first discuss internally about the best way to implement this to match the rest of the Nextcloud architecture. But if it is fine for you, I can pursue the implementation further based on the comment from blizzz above to match it to the tables implementation. However, in that PR there was a check if the interface exists, to be able to support NC versions < 30. Should we adopt this approach for the Deck app as well? EDIT: Nevermind, I see it is already at 31 |
Sounds good, sorry for the confusion there! Maybe it's possible I also did not understand. :) The check would probably be useful if we want this backported to previous versions, but odds are this will be released with 31 and therefore it won't need the check. Might change in the near future, but it would be easy to add the check in that case. |
Signed-off-by: nicolashimmelmann <nhimmelmann@mailbox.org>
3caa656
to
ac6a301
Compare
Hi @elzody , I have now continued the implementation. Before I move on, it would be great if you could give me some quick feedback :)
Thank you! |
Summary
This PR modifies the base class of the card events to make them compatible with the webhook_listeners (docs) app, that ships with the Nextcloud server. This is needed, to be able to build flows in Nextcloud Flow / Windmill that should get triggered when a card gets created/updated/deleted in a board.
Please let me know if tests or documentation are required.
Checklist