The discussion revolves around accessing user notes via the Discourse API. codetricity wants to retrieve user notes for a specific user using the Discourse API, utilizing the existing discourse-user-notes plugin. pfaffman suggests using the Data Explorer plugin to create a custom API endpoint.
codetricity is unsure about the query needed to retrieve the user note content and asks if there’s a way to view the fields where the note is stored in the plugin’s source code. codetricity eventually discovers the solution with the help of Falco, using the admin/reports/user_notes.json endpoint with API key and username.
I want to get all the user notes for a user using the Discourse API. The notes are applied with discourse-user-notes.
Using Get a user by id, I can see the user_note_count filed. However, I can’t seem to find the contents of the user note.
I want to attach information to a user such as the body of an email or main points of a video conference that staff have had with the user. I’m hoping to use the Discourse PostgreSQL data instead of creating a duplicate database with fields for notes.
I’m hoping to use the existing discourse-user-notes as it’s already built.
I have a separate desktop application for staff that uses the Discourse API and is written in Dart/Flutter using http requests to talk to Discourse.
I have no experience with Ruby.
Is there a way I can get information from this file that might be exposed as a HTTP API?
Thank you for your help. What is the query I need to run to see the content of the user notes?
Is there some way I can see the fields that the note is stored in from the source code of the plug-in? Maybe I can show a custom_field for the user somehow?
I do not know how to ready Ruby, but maybe there is a field called user_notes in Discourse some place that I can search for with the user.id and then there is an object notes with a field of raw?
I’m just guessing. I may just pull the users and store the notes in a separate database, not Discourse. However, I would like to use the data in Discourse if possible as it will be easier to attach the note to a specific user and post.
I am pulling the list of users as admin to see which users have notes applied to them. After I identify the list of users with notes, I want to display the notes in a table so that staff can respond to questions more easily with the background information for the user.