Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • webapp webapp
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 713
    • Issues 713
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 26
    • Merge requests 26
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gittergitter
  • webappwebapp
  • Merge requests
  • !2042

Bridge messages between Matrix and Gitter

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Eric Eastwood requested to merge 1684-bridge-messages into develop Nov 10, 2020
  • Overview 38
  • Commits 2
  • Pipelines 21
  • Changes 14

Bridge messages between Matrix and Gitter

Part of https://gitlab.com/gitlab-org/gitter/webapp/-/issues/1684

Dev notes

Split out from https://gitlab.com/gitlab-org/gitter/webapp/-/merge_requests/2040

$ mongo gitter
> db.matricesbridgeduser.remove({ userId: db.users.findOne({ username: 'MadLittleMods' })._id })

Todo

  • Only allow certain rooms to bridge messages for this initial phase
    • Added isRoomAllowedToBridge
  • Add tests

Testing strategy

  1. Configure your webapp secrets again to get the latest matrix__ environment variables added, https://gitlab.com/gitlab-org/gitter/webapp#configure-oauth-and-service-secrets
  2. Send a message from one of your Gitter rooms
  3. Login to your local Riot instance which points at your local synapse: http://localhost:18010/
  4. In Riot in your rooms list -> Rooms -> + -> Explore public rooms -> Find the bridged room just created from sending the message above
  5. Send a message back from Riot.
  6. Notice the message go to Gitter
Edited Nov 16, 2020 by Eric Eastwood
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: 1684-bridge-messages