Skip to content

Integration of Discourse messaging

Susheel Varma requested to merge IG-536 into dev

Created by: RobinKavPA

PR

Add functionality to allow creation, update, deletion of comments in Discourse through the Gateway

Solution

After starting the implementation it became clear that handling the integration from the server was much more logical than splitting it across the client React app as well.

  • Introduced base64 encoder module and Crypto-JS to enable the creation of the SSO payload required to send to Discourse to register a new user.
  • Reconfigured Discourse routes in router module to be more generic and extensible plus fixed spelling mistake
  • Datasets, projects, tools and papers GET responses no longer by default include Discourse "topic" data as this data is now heavily connected to an individual user if they are logged in - extracted into own endpoint.
  • Added endpoints to connect to Discourse to allow the creation of topics and posts, update of posts, deletion of posts, creation of users and creation of user API keys
  • Extended user model to contain Discourse username and api key
  • Extended registration route to auto register new Gateway users on Discourse

Merge request reports