Drupal Website for the Helsinki Päätökset project.
Env | Branch | Drush alias | URL | Notes |
---|---|---|---|---|
dev | * | - | http://helsinki-paatokset.docker.so/ | Local development environment |
test | * | - | https://drupal-paatokset.test.hel.ninja/ | Test environment |
stage | * | - | https://drupal-paatokset.stage.hel.ninja/fi/etusivu | Staging environment |
production | tag based | - | https://paatokset.hel.fi | Production environment |
You need to have these applications installed to operate on all environments:
- Docker
- Stonehenge
- For the new person: Your SSH public key needs to be added to servers
More in-depth instructions for setting up this project and dealing with API content: https://helsinkisolutionoffice.atlassian.net/wiki/spaces/PP/pages/6151897290/Lokaali+kehitysymp+rist
For the first time (new project):
$ make new
Stop project:
$ make stop
Stop project and remove app container:
$ make down
Start project, update all packages and sync db from test:
$ make fresh
To create a local SQL dump to save your site's state, run:
$ make drush-create-dump
After this, the make fresh
command should use it instead.
Export settings:
$ make drush-cex
Import settings:
$ make drush-cim
# Login to app container:
$ make shell
# Login with Drush
$ make drush-uli
# Check Drupal coding style
$ make lint-drupal
# Automatically fix Drupal coding style errors
$ make fix-drupal
Documented in more detail on the project's Confluence page: https://helsinkisolutionoffice.atlassian.net/wiki/spaces/PP/pages/2682126339/Kehitysk+yt+nn+t (in finnish, requires access.)
Most of the content comes through migration and aggregation scripts. The Päätökset project also has multiple JS applications used for displaying content.
Critical functionality, API content lifecycle and flow and debugging instructions can be found in Confluence: https://helsinkisolutionoffice.atlassian.net/wiki/spaces/PP/pages/8333819923/Kriittiset+toiminnallisuudet+ja+ongelmatilanteiden+selvitys
The majority of the site's content come from AHJO API: Meetings, motions decisions, policymakers, office holder profiles. Custom modules handle the authentication and aggregation of data.
Described in more detail here: https://helsinkisolutionoffice.atlassian.net/wiki/spaces/PP/pages/2688254056/AHJO+API
Helsinki City Council meeting recordings and livestreams come from HelsinkiKanava. Described in more detail here: https://helsinkisolutionoffice.atlassian.net/wiki/spaces/PP/pages/2689106104/Helsinki-kanavan+videot
Information for City Council member speaking turns is fetched from here and dislplayed on the council member's profile page. Described in more detail here: https://helsinkisolutionoffice.atlassian.net/wiki/spaces/PP/pages/2689073189/Datapumppu+API
Described in more detail here: https://helsinkisolutionoffice.atlassian.net/wiki/spaces/PP/pages/7592214536/Hakutoteutus
Includes APIs used by Javascript applications (open endpoints) and a proxy for querying AHJO API directly (requires authentication).
Described in more detail here: https://helsinkisolutionoffice.atlassian.net/wiki/spaces/PP/pages/7874904065/Sis+iset+rajapinnat+ja+proxy+Ahjon+suuntaan
Described in more detail here: https://helsinkisolutionoffice.atlassian.net/wiki/spaces/PP/pages/2688516251/Drupal+sis+lt+malli
Described in more detail here: https://helsinkisolutionoffice.atlassian.net/wiki/spaces/PP/pages/6189809682/K+ytt+j+roolit+oikeudet+ja+k+ytt+j+tilit