Move install-db-schema from afterReset to beforeAllMigrations

オープン
#178 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
postgresql
領域
backend, databases

調査の方向性

まず、afterReset と beforeAllMigrations の migration lifecycle 設定を見つけ、次に yarn workspace @app/worker install-db-schema がどこで呼び出されているか、また Procfile から削除された wipe-if-demo スクリプトが production にどのような影響を与えていたかを追跡します。worker schema が migrations の前に存在し、registration で PostgreSQL の ERR_3F000 が発生しなくなれば完了です。

索引モデルが issue の本文から書いたものです。

説明

enhancement good first issue

I believe this was handled by the wipe-if-demo script in the demo but I needed to manually run it in production since I removed that script from the Procfile. Not a huge deal but figured I would at least document it here to save someone else some time as it threw me for a little loop when I got the Postgres error.

Got the following error when I tried to register since the worker schema wasn't there

Registration failed (Error code: ERR_3F000)

Once I got the postgres logs running right on RDS it was fairly obvious, just had to run

yarn workspace @app/worker install-db-schema

and everything worked as intended

主要言語
TypeScript
スター
1.8k
フォーク
226
PR マージ指標
30日以内にマージされた PR はありません

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

graphile/starter のほかの issue

graphile/starter の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。