Skip to content
RijksICTGildePublic

About

Wies geeft overzicht van wie er binnen ODI waar, waaraan en wanneer werkt.

Resources

Code of conduct

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

940 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wies

Internal tool for managing colleague placements within the Dutch government. Wies provides an overview of who is working where, on what, and when.

Tech Stack

  • Backend: Django 6 with PostgreSQL
  • Templates: Jinja2
  • Styling: @nldd/design-system (NLDD web components, Dutch government design system)
  • Interactivity: HTMX
  • Authentication: OIDC via Keycloak
  • Package management: uv

Prerequisites

Quick Start

Setup

Installs dependencies, sets up database with base dummy data, creates .env:

just setup

Optionally, generate and load full dummy data for performance testing (requires network):

just load-full-data

Then update .env:

  • Fill in OIDC credentials
  • Set INITIAL_USER_FIRSTNAME, INITIAL_USER_LASTNAME, INITIAL_USER_EMAIL (yourself)
  • Set STAFF_EMAILS

Start

just up

Development

Project Structure

  • wies/core/ — main Django app (models, views, forms, templates, tests)
  • wies/rijksauth/ — OIDC auth integration
  • config/settings/ — Django settings per environment
  • docs/ — beheerplan, privacy declaration and other docs
  • features/ — feature-specific design docs (e.g. inline editing)

Commands

just setup          # Set up fresh environment (base dummy data)
just load-full-data # Generate and load full dummy data
just up             # Start application
just down           # Stop containers
just test           # Run all tests (Django + JS)
just test django    # Run Django tests only
just test js        # Run JavaScript tests only
just manage [...]   # Django manage.py commands
just lint           # Run ruff check + format check
just format         # Auto-fix lint issues and format code
just pre-commit     # Run all pre-commit hooks
just vendor         # Install front-end packages into wies/core/static/vendor

Vendor Assets

This project serves its external JavaScript and CSS itself instead of using a CDN. This ensures the application works without external network dependencies and improves security (no CDN in CSP).

Packages (package.json, locked in package-lock.json):

  • htmx - JavaScript library for AJAX/HTML
  • @nldd/design-system - NLDD web components + styles (single nldd.min.js bundle + css/ + fonts/)

scripts/vendor.sh runs npm ci and copies the files Wies loads from node_modules into wies/core/static/vendor/. That directory is not in git: the image build runs the script in its vendor stage, and locally just vendor runs the same stage and writes the result to your checkout (Docker only, no Node on the host needed). just setup, just up and just test django do this for you, because docker compose mounts the checkout over the image.

Update vendor dependencies

Dependabot opens a PR that updates package.json and package-lock.json. By hand (needs Node):

npm install --package-lock-only --ignore-scripts --save-exact @nldd/design-system@<version>
just vendor

Then test the application and commit package.json and package-lock.json.

Testing

Run all tests:

just test

Run Django or JavaScript tests separately:

just test django
just test js

Run specific Django tests:

just manage test wies.core.tests.test_roles

Architecture

User Roles

Role Description Permissions
Gebruikersbeheerder User administration Users, labels, onderdelen and contract hours
Business Manager Business management Any wies-sourced opdracht, and reading contract hours and role hours
Consultant Employee View-only, plus the text fields of an opdracht they are placed on

The Applicatiebeheerder (database, errors) is the STAFF_EMAILS setting, not a role, and carries no functional rights. The names above are labels; a role is stored under a key. See docs/roles.md.

Core Concepts

Term Description
Plaatsing Placement of a colleague on a service
Opdracht Assignment/project for a ministry
Dienst Service/work needed for an assignment
Collega Colleague with skills who can be placed
Ministerie Government organization that issues assignments

Release Process

  1. Everything in main branch
  2. Make release branch
  3. Change "unreleased" in CHANGES to date, create new unreleased header with a placeholder list
  4. Merge release branch into main
  5. Tag with date: git tag -a 2026-01-19 -m "2026-01-19"
  6. Push tag: git push --tags
  7. CI produces image and deploys
  8. (optional) execute post-release actions, check the PR bodies for the post-release actions

Claude Code

This project has configuration for Claude Code in .claude/ (project instructions, rules, skills, and agents). Start a Claude Code session in the project root for AI-assisted development with project context.

About

Wies geeft overzicht van wie er binnen ODI waar, waaraan en wanneer werkt.

Resources

Code of conduct

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages