Skip to content

Revert “Connect learner persistence to Supabase” and restore SQLite learner persistence defaults - #12

Merged
jiyan-0525 merged 2 commits into
mainfrom
copilot/revert-commit-6ae1f526bd5c79e851352eaf956e0b5eca74
Sep 29, 2026
Merged

jiyan-0525 merged 2 commits into
mainfrom
copilot/revert-commit-6ae1f526bd5c79e851352eaf956e0b5eca74

Conversation

Copilot AI commented Sep 28, 2026 •

Copy link
Copy Markdown

This PR adds a normal revert commit for 6ae1f526bd5c79e851352eaf956e0b5eca7450d7 to cancel the Supabase learner-persistence rollout while preserving subsequent history.
The resulting diff is the inverse of that commit’s scoped changes (config/docs/deps/migration/test).

  • Revert scope (exactly target commit changes)

    • Reverted backend wiring introduced for Supabase learner persistence.
    • Removed only files/edits introduced by the target commit in:
      • .env.example, README.md
      • apps/api/dependencies.py, apps/api/main.py
      • src/goalcoach/infrastructure/config.py
      • src/goalcoach/infrastructure/persistence/learner_models.py
      • pyproject.toml, uv.lock
      • tests/unit/test_config.py
    • Deleted migration added by that commit:
      • supabase/migrations/20260928000000_create_learner_persistence.sql
  • Behavior restored

    • Learner DB session creation now uses settings.database_url directly (no Supabase-derived resolved URL path).
    • SQLite JSON dialect import in learner persistence models is restored.
    • Supabase env/config/documentation entries are removed.
    • psycopg dependency and lockfile entries are removed.
    • Supabase-specific config test added by the target commit is removed.
  • Code example (restored DB URL path)

# apps/api/main.py
session_factory = create_session_factory(resolved_settings.database_url)

# apps/api/dependencies.py
factory = create_session_factory(settings.database_url)
  • Checks
    • Attempted to run targeted tests for touched backend/config areas, but test tooling (pytest/uv) was unavailable in the execution environment.

This reverts commit 6ae1f52.

Co-authored-by: jiyan-0525 <179933266+jiyan-0525@users.noreply.github.com>
Copilot AI changed the title [WIP] Revert 'Connect learner persistence to Supabase' change Revert “Connect learner persistence to Supabase” and restore SQLite learner persistence defaults Sep 28, 2026
Copilot AI requested a review from jiyan-0525 September 28, 2026 09:44

@jiyan-0525 jiyan-0525 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes here on this draft should already be on the main branch. Please check that and if yes then completely skip this one.

@jiyan-0525
jiyan-0525 marked this pull request as ready for review September 29, 2026 11:02
Copilot AI balanced review requested due to automatic review settings September 29, 2026 11:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@jiyan-0525
jiyan-0525 merged commit 4e9adcf into main Sep 29, 2026
1 check passed
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.

3 participants