Skip to content

Dev#44

Closed
nbars wants to merge 15 commits intomainfrom
dev
Closed

Dev#44
nbars wants to merge 15 commits intomainfrom
dev

Conversation

@nbars
Copy link
Copy Markdown
Member

@nbars nbars commented Apr 16, 2026

No description provided.

Nils Bars added 15 commits April 16, 2026 15:22
These keys are generated per-deployment by `prepare.py bootstrap`
and should not be shared across installations.
ctrl.sh now requires both settings.yaml and settings.env, but CI only
created settings.env. Replace the manual file creation with a
./prepare.py call that generates all required configuration files.

Also change the default TLS mode from "internal" to "off" so that
prepare.py produces valid config without requiring a domain.
uWSGI's wsgi.errors stream inherits the default ASCII encoding from
the base image, causing UnicodeEncodeError when logging messages
contain non-ASCII characters (e.g. the Unicode welcome banner).
Upgrade all packages across webapp, tests, ref-docker-base, and
ref-utils. Notable updates include Flask 3.1.3, SQLAlchemy 2.0.49,
pytest 9.0.3, Redis 7.4.0, and Ruff 0.15.10.
Add a "Scored Exercises" section covering TestResult, scoring policies,
check vs. submit behavior adaptation, and multi-task scored exercises.
Update existing examples to use current decorator names (environment_test,
submission_test) and task_name parameter instead of deprecated aliases.
Notable updates: cryptography 46.0.7 (fixes 3 Dependabot alerts),
cffi 2.0.0, Flask-Limiter 4.1.1, gunicorn 25.3.0, pytest 9.0.3,
SQLAlchemy 2.0.49, IPython 8.39.0, pylint 4.0.5, mypy 1.20.1.
Container SSH public keys are now bind-mounted into student containers
at /etc/ssh/master_keys/ so key rotations take effect immediately
without rebuilding images or restarting containers.

Also improve SSH proxy error handling: show a generic internal error
with a trackable UUID instead of leaking details, and close the
channel on failure.
- Backend: GET /api/v2/auth/me returns authenticated, is_admin,
  is_grading_assistant for the current session
- Frontend: auth API client, Pinia auth store, hydrated on app mount
- Admin submissions endpoint at /api/scoreboard/submissions/admin
- Public endpoint filters out admin users and pre-start submissions
- Toggle in scoreboard header switches between views (admin only)
- Disable dataZoom slider with fewer than 2 data points (ECharts bug)
- Use notMerge on ChallengePlot setOption to match PointsOverTimeChart
- Filter zero-score teams from rankings and challenge plots
- Move time-window filtering to backend, simplify frontend ranking
- Add assignment names to chart boundary markers
Wraps the app bar navigation to a second row on lgAndDown breakpoint
to prevent overflow on narrow viewports.
Builds and force-recreates containers in one step, avoiding stale
container issues when image contents change. Update CLAUDE.md with
new deployment workflow.
Wrap requests.post() calls in server_post() helper that catches
RequestException, logs the full traceback to a root-only rotating
log file (/var/log/ref-task.log), and shows a user-friendly message
instead of a raw Python traceback.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant