Adding UI for Merge Users

AI-generated summary

The discussion revolves around adding a UI for the Merge Users plugin. mpemburn wants to call the plugin programmatically, but hasn’t found an API endpoint to do so. Falco mentioned that the feature will be available in core soon, with an API endpoint. Dannii suggested a POST request to /admin/plugins/merge-users/merge, but mpemburn encountered a “URL or resource not found” error. Falco later revealed that the feature is already live in the User Admin page as of Discourse 2.5.0.beta3.

Hi,

We would like to be able to call the Merge Users plugin (discourse-merge-users/plugin.rb at master · curiousdannii/discourse-merge-users · GitHub) programmatically in some manner. I’ve used the API quite a bit for the documented features, but I haven’t seen much that relates to the plugin (except a GET to /admin/plugins that doesn’t appear to work). If this can’t be done via the API, is there any other mechanism that you would suggest?

Thanks in advance,

Mark Pemburn
Blue Ocean Ideas

We are planning on making this available in core soon, so it will have an API endpoint.

The plugin is really simple, so a POST request to /admin/plugins/merge-users/merge should work.

It should be. See How to reverse engineer the Discourse API

Thanks. Tried this and got “The requested URL or resource could not be found.”

Thanks Rafael! Any idea of how soon?

Looks like it is already live in the User Admin page. Check Discourse 2.5.0.beta3 Release Notes