a3e12f62fa7e6a0ac09bc4b7ee6a5472345d111e
- Registration: add role field (academic_student/self_learner/teacher), return user_id, fix auth='public' for Odoo 19, add company_id - Onboarding: add learning_style as JSON array with validation, placement_decision field, JSON-RPC routes for OWL wizard - Student profile: add placement_decision selection, get/set_learning_styles helpers for JSON array storage - Portal templates: fix course.description, mod.description, profile.study_preference, profile.entity_id.entity_type field references Made-with: Cursor
EnCoach Backend — v2
Branching Workflow
This repo is connected to the staging server via a Git post-receive hook. All deployment is automatic — but only after code review approval.
How to contribute
- Never push directly to
main— branch protection will block it. - Create a feature or fix branch:
git checkout -b feature/your-feature-name - Develop, commit, and push your branch:
git push origin feature/your-feature-name - Open a Pull Request on Gitea targeting
main. - Request review from devops (Talal).
- Once approved and merged, the staging server rebuilds and redeploys automatically.
Environment
The .env file is not committed. It lives only on the staging server at /opt/encoach/backend-v2/.env.
Contact the team lead if you need a local copy of the environment variables.
Required files (push with your code)
Dockerfile— used by the staging server to build the container imagedocker-compose.yml— defines the backend service (port mapping, env vars, etc.)
Pipeline test Mon Mar 30 19:42:50 +04 2026
Description
Languages
Python
34.8%
C
31.4%
JavaScript
27.9%
TypeScript
1.6%
SCSS
1.4%
Other
2.8%