Skip to content

fix(week11): clarify .env.example placeholder and add sslmode#8

Merged
lassebenni merged 1 commit into
mainfrom
fix/env-example-placeholder-sslmode
Jul 18, 2026
Merged

fix(week11): clarify .env.example placeholder and add sslmode#8
lassebenni merged 1 commit into
mainfrom
fix/env-example-placeholder-sslmode

Conversation

@lassebenni

Copy link
Copy Markdown
Collaborator

Situation

A Week 11 student (Streamlit dashboard) hit relation "dev_<name>.fct_trips" does not exist. Investigation confirmed her marts existed and were readable; the real cause was a wrong database/host in her own .env, not the starter template. The template's .env.example correctly points at /team1.

Problem

While the template did not cause that specific error, two small foot-guns in week11-streamlit/.env.example are worth removing:

  1. The placeholder username was pipeline_user, which clashes with the comment "your Week 9/10 login" (students' actual logins are their own names, e.g. halyna). A student who keeps pipeline_user verbatim gets an authentication failure.
  2. The example URL lacked ?sslmode=require, even though the README (line 69) explicitly tells students to set POSTGRES_URL with ?sslmode=require. The example and the instructions should match.

Solution

  • Rename pipeline_useryour-pg-user.
  • Append ?sslmode=require to the example URL.
  • Add a one-line comment telling students to keep team1 and the sslmode suffix and only swap in their own user/password/host.

No autograder dependency on the old string (checked .hyf/), so grading is unaffected.

🤖 Generated with Claude Code

Rename the misleading `pipeline_user` placeholder to `your-pg-user`:
students' actual Week 9/10 logins are their own names, and a student who
keeps `pipeline_user` verbatim hits an auth failure. Also append
`?sslmode=require` so the example matches what the README already
instructs (line 69) and how Azure Postgres is meant to be reached.

Neither change caused the reported "relation dev_<name>.fct_trips does
not exist" error (that was a wrong database in a student's own .env),
but both remove a foot-gun and keep the example self-consistent.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
halyna1995 pushed a commit to halyna1995/c55-data-week-11 that referenced this pull request Jul 15, 2026
Rename the misleading `pipeline_user` placeholder to `your-pg-user`:
students' actual Week 9/10 logins are their own names, and a student who
keeps `pipeline_user` verbatim hits an auth failure. Also append
`?sslmode=require` so the example matches what the README already
instructs and how Azure Postgres is meant to be reached.

Mirrors HackYourFuture/data-assignment-week-11#8.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@lassebenni
lassebenni merged commit 0e7098d into main Jul 18, 2026
1 check failed
@lassebenni
lassebenni deleted the fix/env-example-placeholder-sslmode branch July 18, 2026 07:49
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