From 46df5874582b76b0971933b95bf0f39a501c7328 Mon Sep 17 00:00:00 2001 From: Suseela S Date: Wed, 14 Aug 2024 10:47:58 +0000 Subject: [PATCH] GITBOOK-1001: Dibik's Aug 9 changes --- SUMMARY.md | 4 +- ...-by-restarting-deployment-statefulsets.md} | 2 +- .../development/odoo-modules/README.md | 2 + .../odoo-modules/odk-app-user-mapping.md | 66 +++++++++++++++++++ 4 files changed, 72 insertions(+), 2 deletions(-) rename deployment/deployment-guide/{restart-deployment-or-statefulsets-to-redistribute-pods-across-nodes.md => redistribute-pods-across-nodes-by-restarting-deployment-statefulsets.md} (96%) create mode 100644 social-registry/development/odoo-modules/README.md create mode 100644 social-registry/development/odoo-modules/odk-app-user-mapping.md diff --git a/SUMMARY.md b/SUMMARY.md index 2d923eda..b3028728 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -253,6 +253,8 @@ * [Monitoring and Reporting](social-registry/functionality/monitoring-and-reporting/README.md) * [System Logs](social-registry/functionality/monitoring-and-reporting/system-logs.md) * [Development](social-registry/development/README.md) + * [Odoo Modules](social-registry/development/odoo-modules/README.md) + * [ODK App User Mapping](social-registry/development/odoo-modules/odk-app-user-mapping.md) * [Upcoming Features](social-registry/development/upcoming-features/README.md) * [Fayda ID Integration](social-registry/development/upcoming-features/fayda-id-integration.md) * [Verifiable Credentials Issuance](social-registry/development/upcoming-features/verifiable-credentials-issuance.md) @@ -427,7 +429,7 @@ * [Troubleshooting](deployment/deployment-guide/troubleshooting/README.md) * [PostgreSQL Database not Starting due to Replication Checkpoint Error](deployment/deployment-guide/troubleshooting/postgresql-database-not-starting-due-to-replication-checkpoint-error..md) * [No Space Left on the Device Warning](deployment/deployment-guide/troubleshooting/no-space-left-on-the-device-warning.md) - * [Restart Deployment or StatefulSets to Redistribute Pods across Nodes](deployment/deployment-guide/restart-deployment-or-statefulsets-to-redistribute-pods-across-nodes.md) + * [Restart Deployment or StatefulSets to Redistribute Pods across Nodes](deployment/deployment-guide/redistribute-pods-across-nodes-by-restarting-deployment-statefulsets.md) * [Rerun Jobs in Kubernetes Cluster](deployment/deployment-guide/rerun-jobs-in-kubernetes-cluster.md) * [Use Cases](use-cases/README.md) * [Technology for Inclusion](use-cases/technology-for-inclusion/README.md) diff --git a/deployment/deployment-guide/restart-deployment-or-statefulsets-to-redistribute-pods-across-nodes.md b/deployment/deployment-guide/redistribute-pods-across-nodes-by-restarting-deployment-statefulsets.md similarity index 96% rename from deployment/deployment-guide/restart-deployment-or-statefulsets-to-redistribute-pods-across-nodes.md rename to deployment/deployment-guide/redistribute-pods-across-nodes-by-restarting-deployment-statefulsets.md index 545334a1..e5055de8 100644 --- a/deployment/deployment-guide/restart-deployment-or-statefulsets-to-redistribute-pods-across-nodes.md +++ b/deployment/deployment-guide/redistribute-pods-across-nodes-by-restarting-deployment-statefulsets.md @@ -12,7 +12,7 @@ layout: visible: true --- -# Redistribute Pods across Nodes by Restarting Deployment/StatefulSets +# Restart Deployment or StatefulSets to Redistribute Pods across Nodes The document explains how to redistribute pods across nodes by restarting deployment or StatefulSets. diff --git a/social-registry/development/odoo-modules/README.md b/social-registry/development/odoo-modules/README.md new file mode 100644 index 00000000..71c681a2 --- /dev/null +++ b/social-registry/development/odoo-modules/README.md @@ -0,0 +1,2 @@ +# Odoo Modules + diff --git a/social-registry/development/odoo-modules/odk-app-user-mapping.md b/social-registry/development/odoo-modules/odk-app-user-mapping.md new file mode 100644 index 00000000..192ec9de --- /dev/null +++ b/social-registry/development/odoo-modules/odk-app-user-mapping.md @@ -0,0 +1,66 @@ +--- +description: WORK IN PROGRESS +--- + +# ODK App User Mapping + +### **Module name** + +`g2p_odk_user_mapping` + +### **Module title** + +ODK App User Mapping + +### **Technology base** + +Odoo + +### **Functionality** + +#### **Add drop-downs for ODK Config and App User** + +* **Select ODK Config** + * In the _**Registration Portal**_, implement a drop-down menu to allow the users select from the available ODK Configurations. + * Dynamically fetches and displays ODK Configuration options based on the user's selection. +* **Select App User** + * Implement a drop-down menu to list ODK App users. + * Use the ODK API to fetch the list of App users based on the selected ODK Configuration. + * Display the fetched App users in the drop-down menu. +* **Fetch ODK App Users via ODK API** + * Integrate with the ODK API to retrieve the list of available App users for the selected ODK Configuration. + * Use the fetched data to dynamically populate the _**Select App User**_ drop-down menu. + +### **Design notes** + +N/A + +### **Relationships with other entities** + +* **Dependencies** + * `base` + * `account` + * `g2p_odk_importer` + +### **User interface** + +N/A + +### **Configuration** + +1. **ODK Config** + * Navigate to the ODK menu in the _**Social Registry**_ module. + * Add your ODK user credentials and project details. +2. **Map the ODK User in the Registration Portal** + * Navigate to the Registration Portal user menu. + * Add user details such as email, name, etc. + * Select the ODK Configuration and then choose a dynamic user based on the selected ODK Configuration. + +### **Source code** + +[GitHub Repository for `g2p_odk_user_mapping`](https://github.com/OpenG2P/openg2p-registration-portal/blob/17.0-develop/g2p\_odk\_user\_mapping) + +### **Installation** + +1. Ensure that the module dependencies such as `base`, `account`, `g2p_odk_importer`are installed. +2. Install the _**ODK App User Mapping**_ module from the Odoo Apps interface.