Skip to content

feat: scaffold Week 12 assignment (Metabase + Streamlit)#1

Open
lassebenni wants to merge 9 commits into
mainfrom
feat/scaffold-week12-assignment
Open

feat: scaffold Week 12 assignment (Metabase + Streamlit)#1
lassebenni wants to merge 9 commits into
mainfrom
feat/scaffold-week12-assignment

Conversation

@lassebenni

Copy link
Copy Markdown
Collaborator

Summary

  • Rewrites README.md with Week 12 instructions (Metabase dashboard + Streamlit engineering dashboard)
  • Adds task-1/README.md (Metabase dashboard submission template) and task-1/metric_definitions.md (five-field template for 3 metrics)
  • Adds task-2/app.py (Streamlit skeleton with TODO panels), requirements.txt, .env.example
  • Rewrites .hyf/test.sh autograder: 6 checks (metric file exists, ≥3 filled metrics, app.py exists, cache_data used, no hardcoded password); passing score = 4/6

Test plan

  • Clone repo, run bash .hyf/test.sh on scaffold — expect pass: false
  • Fill in task-1/metric_definitions.md (3 metrics) and implement get_dag_runs in task-2/app.py — re-run test, expect pass: true
  • Verify .env is gitignored, .env.example is not

🤖 Generated with Claude Code

lassebenni and others added 9 commits June 9, 2026 17:27
…scaffold

The untouched scaffold previously scored 6/6 and PASSED — every check was a
file-presence check the scaffold satisfied. Rebuilt test.sh with work-verifying
checks so the scaffold fails (4/7) and a completed Minimum solution passes (7/7):
  - metric Name fields filled with real (non-placeholder) values
  - Panel 1 implemented (no `raise NotImplementedError` / `TODO: implement`)
  - AI_ASSIST.md filled with 3+ real entries
  - pass is now score >= passingScore (6), not "every check passed"

Also:
  - task-2/app.py: /api/v1 -> /api/v2 (Airflow 3), remove em dashes, note the
    shared-Airflow <yourname>_ DAG-id prefix
  - add AI_ASSIST.md template (Minimum deliverable, matches the chapter)

Verified locally: scaffold 4/7 fail, reference solution 7/7 pass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The shared Airflow 3.2 VM rejects Basic Auth (401 on /api/v2, verified live).
Updated the get_dag_runs TODO to the token flow: POST /auth/token for a JWT,
then Authorization: Bearer. Stub stays NotImplementedError (autograder ladder
unchanged: scaffold still fails).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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