Skip to content

Configure online meetings embedded services with ENV vars#9219

Merged
ahukkanen merged 4 commits intodevelopfrom
fix/online_meetings_iframes
May 13, 2022
Merged

Configure online meetings embedded services with ENV vars#9219
ahukkanen merged 4 commits intodevelopfrom
fix/online_meetings_iframes

Conversation

@microstudi
Copy link
Copy Markdown
Contributor

🎩 What? Why?

  • add configuration var for embeddable services in meetings
  • add ENV var for embeddable meetings

Since the introduccion of the online meetings it is possible to embed an iframe with a link for an external video service (Jit.si, etc). However the list of allowed services was hardcoded to only www.youtube.com www.twitch.tv meet.jit.si.

This adds a configurable accessor into the Meetings module and a generic ENV var (MEETING_EMBEDDABLE_SERVICES) to allow system maintainers to configure this.

Note that a nice follow up for this could be to allow system admins to configure this in /system.

Testing

Use the ENV var MEETING_EMBEDDABLE_SERVICES to add alternatives to the default allowed services.

📋 Checklist

🚨 Please review the guidelines for contributing to this repository.

  • CONSIDER adding a unit test if your PR resolves an issue.
  • ✔️ DO check open PR's to avoid duplicates.
  • ✔️ DO keep pull requests small so they can be easily reviewed.
  • ✔️ DO build locally before pushing.
  • ✔️ DO make sure tests pass.
  • ✔️ DO make sure any new changes are documented in docs/.
  • ✔️ DO add and modify seeds if necessary.
  • ✔️ DO add CHANGELOG upgrade notes if required.
  • ✔️ DO add to GraphQL API if there are new public fields.
  • ✔️ DO add link to MetaDecidim if it's a new feature.
  • AVOID breaking the continuous integration build.
  • AVOID making significant changes to the overall architecture.

📷 Screenshots

Please add screenshots of the changes you're proposing
Description

♥️ Thank you!

Copy link
Copy Markdown
Contributor

@agustibr agustibr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great @microstudi 😍

Thanks!

@andreslucena andreslucena changed the title configure online meetings embedded services with ENV vars Configure online meetings embedded services with ENV vars May 3, 2022
@andreslucena
Copy link
Copy Markdown
Member

I didn't have the chance to try this out yet, but it looks really nice 😄

Just a thing, there's now a help text that need to take into account this:

show_embedded_iframe_help: Only a few services allow embedding in meeting or live event (YouTube, Twitch and Jitsi)

show_embedded_iframe_help: Only a few services allow embedding in meeting or live event (YouTube, Twitch and Jitsi)

I think two solutions for this:

  1. To change the embeddable_services to a hash and use the keys (something like {YouTube: "www.youtube.com", Twitch: "www.twitch.tv", Jitsi: "meet.jit.si", "8x8": "8x8.vc" })
  2. To just use the domains: show_embedded_iframe_help: Only a few services allow embedding in meeting or live event from the following domains: www.youtube.com www.twitch.tv meet.jit.si

Any of those would be good for me, so choose whatever you prefer.

@microstudi
Copy link
Copy Markdown
Contributor Author

microstudi commented May 3, 2022

I think we can use only the domains. This way we can fill the allowed services automatically from the configuration.
I'll make the amendment
Screenshot from 2022-05-03 12-53-18

Copy link
Copy Markdown
Member

@andreslucena andreslucena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just tried it out locally and it works great. I've also read the code and it LGTM. Thanks for the PR, I think it's really useful!

@andreslucena andreslucena requested a review from ahukkanen May 5, 2022 07:50
@ahukkanen ahukkanen merged commit 78a71b3 into develop May 13, 2022
@ahukkanen ahukkanen deleted the fix/online_meetings_iframes branch May 13, 2022 15:04
andreslucena pushed a commit that referenced this pull request May 19, 2022
* add configuration var for embedabble services in meetings

* add ENV var for embeddable meetings

* fix separator

* dynamic allowed services in help
andreslucena pushed a commit that referenced this pull request May 19, 2022
* add configuration var for embedabble services in meetings

* add ENV var for embeddable meetings

* fix separator

* dynamic allowed services in help
eliegaboriau pushed a commit to eliegaboriau/decidim that referenced this pull request Oct 25, 2022
* add configuration var for embedabble services in meetings

* add ENV var for embeddable meetings

* fix separator

* dynamic allowed services in help
@alecslupu alecslupu added this to the 0.27.0 milestone Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants