Page MenuHomePhabricator

Set up a development platform for 2024 Tech Wishes survey
Open, Needs TriagePublic

Description

We're hoping to build a simple dashboard which ports logic from https://gitlab.com/wmde/technical-wishes/survey-tools/survey-tool-2022 and makes it more convenient to use for our CommComm staff during this year's survey.

  • Choose technology: bare Python scripts again? Phoenix?
  • Create a WMCS project and instance.
  • Set up webserver on WMCS and give a public proxy.
  • Service script
    • systemctl edit --force --full survey-dashboard.service
  • Password-protect -> Split out to follow-up T379817: Password-protect survey audit site

Internal testing site: https://wmde-techwishes-survey.wmcloud.org/
Code: https://gitlab.com/wmde/technical-wishes/survey-tools/survey-dashboard

Admin steps to install:

ssh beta.wmde-techwishes-survey.eqiad1.wikimedia.cloud
apt install build-essential cmake libncurses-dev libssl-dev postgresql postgresql-client
git clone https://github.com/erlang/otp.git erlang-otp
cd erlang-otp
git checkout maint-27
./configure
make && make install

git clone https://github.com/elixir-lang/elixir
cd elixir
git checkout v1.17
make && make install

adduser survey-service

su - postgres
createuser --pwprompt survey-user
# record password in ~survey-service/.env
createdb -O survey-user survey

su - survey-service
git clone https://gitlab.com/wmde/technical-wishes/survey-tools/survey-dashboard.git
cd survey-dashboard
mix deps.get
mix phx.gen.secret
# record password in ~survey-service/.env
MIX_ENV=prod mix assets.deploy

Command to start the service:

PHX_HOST=beta.wmde-techwishes-survey.eqiad1.wmcloud.org MIX_ENV=prod mix phx.server

Event Timeline

I'm having some trouble setting up the web proxy (T379594). Until it's fixed, developers can access using an SSH tunnel:

Update: it's fixed.

awight moved this task from Tech Review to Demo on the WMDE-TechWish-Sprint-2024-11-13 board.
awight removed a project: Unplanned-Sprint-Work.