Skip to content

plugins: include more data within padUpdate hook - #4425

Merged
JohnMcLear merged 2 commits into
ether:developfrom
alangecker:pad-update-more-data
Oct 21, 2020
Merged

JohnMcLear merged 2 commits into
ether:developfrom
alangecker:pad-update-more-data

Conversation

@alangecker

@alangecker alangecker commented Oct 21, 2020 •

Copy link
Copy Markdown
Contributor

what it does

This PR gives additional access to revs and changeset within a padUpdate hook.

where it comes from

It is actually a commit which is since 2019 already part (bigbluebutton@5bc37fc) of the BigBlueButton Etherpad fork and is used there, along with ep_redis_publisher, to create a nice live subtitles / closed captions feature.

why to merge

I think it would be nice to merge this for following reasons:

  1. Allows more possibilities for other use cases.
  2. Gives BigBlueButton the opportunity to switch back to the official etherpad branch again instead of maintaining a, currently quite outdated, fork.

@JohnMcLear

JohnMcLear commented Oct 21, 2020 •

Copy link
Copy Markdown
Member

This looks fine to me, it basically just exposes more data to a plugin hook. I will merge and beg for forgiveness if it breaks something :) Thanks!

Oh, please update docs before I merge...

@JohnMcLear JohnMcLear changed the title feat(db): include more data within padUpdate hook plugins: include more data within padUpdate hook Oct 21, 2020
@JohnMcLear

Copy link
Copy Markdown
Member

https://github.com/ether/etherpad-lite/blob/develop/doc/api/hooks_server-side.md#padupdate needs updating. See

jose@ryzin:~/etherpad-lite/doc$ grep -rni padUpdate
api/hooks_server-side.md:165:## padUpdate

@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@JohnMcLear
JohnMcLear merged commit 94cb000 into ether:develop Oct 21, 2020
@alangecker

Copy link
Copy Markdown
Contributor Author

that was really quick!
thanks a lot :)

@rhansen

rhansen commented Oct 23, 2020

Copy link
Copy Markdown
Member

@alangecker I noticed that the documentation says newRev but the property name is revs. Would you be willing to fix that? My preference would be to call the property rev (singular).

@alangecker
alangecker deleted the pad-update-more-data branch October 23, 2020 21:35
@alangecker

Copy link
Copy Markdown
Contributor Author

@rhansen
I finally managed to do it ;) -> #4441

JohnMcLear pushed a commit that referenced this pull request Dec 23, 2020
* Including more data at pad update event

* docs: new context fields in padUpdate

Co-authored-by: Pedro Beschorner Marin <[email protected]>
alangecker added a commit to alangecker/bigbluebutton-docker that referenced this pull request Dec 23, 2020
wich includes our patch so we can finally avoid hooking into the padUpdate call :)
ether/etherpad#4425
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants