Skip to content

fix(dx): resolve issues #736, #737, #738, #739 — templates, script, SQL tracking#754

Open
psamist001 wants to merge 1 commit into
solutions-plug:mainfrom
psamist001:fix/dx-issues-736-737-738-739
Open

fix(dx): resolve issues #736, #737, #738, #739 — templates, script, SQL tracking#754
psamist001 wants to merge 1 commit into
solutions-plug:mainfrom
psamist001:fix/dx-issues-736-737-738-739

Conversation

@psamist001
Copy link
Copy Markdown

Description

Resolves four DX/reliability issues in a single PR.


#738push_and_create_pr.sh: dynamic repo detection

  • Repository name is now derived from git remote get-url origin — no more hardcoded org/repo string that breaks on forks or renames.
  • Script validates that gh CLI is installed and authenticated before doing any work; exits with a clear, actionable error if either check fails.
  • --help flag added; prints usage and exits cleanly.

#736 — PR template

  • Added .github/pull_request_template.md.
  • Covers: description, type-of-change checklist, testing done, review checklist (tests pass, docs updated, breaking changes noted), and a Closes # issue-reference field.

#737 — Issue templates

  • Added .github/ISSUE_TEMPLATE/bug_report.md: steps to reproduce, expected vs actual behaviour, environment.
  • Added .github/ISSUE_TEMPLATE/feature_request.md: problem statement, proposed solution, alternatives considered.

#739 — Raw SQL files tracked by migration system

  • sql/performance_indexes.sql promoted into database/migrations/012_add_performance_indexes.sql (composite indexes on markets and content).
  • DATABASE.md updated with a new sql/ Directory section that documents both files, marks newsletter_schema.sql as superseded by migration 002, and states the rule: no schema-altering SQL may be applied from sql/ directly.

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • CI / tooling change

Testing Done

  • push_and_create_pr.sh --help verified locally.
  • gh auth status and missing-gh error paths verified manually.
  • Migration file reviewed against existing 011 schema for compatibility.

Checklist

  • Tests pass locally
  • Documentation updated
  • No breaking changes

Related Issues

Closes #736
Closes #737
Closes #738
Closes #739

…ions-plug#738, solutions-plug#739

solutions-plug#738 — push_and_create_pr.sh: dynamic repo detection
- Derive repository name from `git remote get-url origin` instead of
  hardcoding it, so the script works after forks or renames.
- Validate that `gh` CLI is installed and authenticated before running;
  exit with a clear error message if either check fails.
- Add `--help` flag that prints usage and exits cleanly.

solutions-plug#736 — Add .github/pull_request_template.md
- Template includes: description, type-of-change checklist, testing done,
  review checklist (tests pass, docs updated, breaking changes noted), and
  an issue-reference field (Closes #).

solutions-plug#737 — Add .github/ISSUE_TEMPLATE/ with two templates
- bug_report.md: steps to reproduce, expected vs actual behaviour,
  environment details.
- feature_request.md: problem statement, proposed solution, alternatives
  considered.

solutions-plug#739 — Track sql/ files in the migration system and document them
- Promote performance_indexes.sql into a proper migration:
  012_add_performance_indexes.sql (composite indexes on markets and content).
- Update DATABASE.md: add sql/ directory section clarifying that the files
  are query templates / historical drafts, not to be applied manually, and
  that all schema changes must go through numbered migrations.

Closes solutions-plug#736
Closes solutions-plug#737
Closes solutions-plug#738
Closes solutions-plug#739
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 27, 2026

@psamist001 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant