[gnome-software] odrs: Document how to develop and test the odrs-web server
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] odrs: Document how to develop and test the odrs-web server
- Date: Wed, 9 Sep 2020 15:36:44 +0000 (UTC)
commit 39c262a75a453e34674d83b8c2de881675ab0870
Author: Philip Withnall <withnall endlessm com>
Date: Wed Aug 19 13:23:00 2020 +0100
odrs: Document how to develop and test the odrs-web server
Signed-off-by: Philip Withnall <withnall endlessm com>
plugins/odrs/gs-plugin-odrs.c | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/plugins/odrs/gs-plugin-odrs.c b/plugins/odrs/gs-plugin-odrs.c
index 8c3e9a49..ca834990 100644
--- a/plugins/odrs/gs-plugin-odrs.c
+++ b/plugins/odrs/gs-plugin-odrs.c
@@ -17,7 +17,21 @@
/*
* SECTION:
- * Provides review data from the Open Desktop Ratings Serice.
+ * Provides review data from the Open Desktop Ratings Service.
+ *
+ * To test this plugin locally you will probably want to build and run the
+ * `odrs-web` container, following the instructions in the
+ * [`odrs-web` repository](https://gitlab.gnome.org/Infrastructure/odrs-web/-/blob/master/README.md),
+ * and then get gnome-software to use your local review server by running:
+ * ```
+ * gsettings set org.gnome.software review-server 'http://127.0.0.1:5000/1.0/reviews/api'
+ * ```
+ *
+ * When you are done with development, run the following command to use the real
+ * ODRS server again:
+ * ```
+ * gsettings reset org.gnome.software review-server
+ * ```
*/
#if !GLIB_CHECK_VERSION(2, 62, 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]