Skip to content

Remove post_import from the docs (it never actually runs)#884

Merged
phinze merged 1 commit into
mainfrom
phinze/mir-1289-post_import-in-apptoml-is-parsed-and-documented-but-never
Jul 6, 2026
Merged

Remove post_import from the docs (it never actually runs)#884
phinze merged 1 commit into
mainfrom
phinze/mir-1289-post_import-in-apptoml-is-parsed-and-documented-but-never

Conversation

@phinze

@phinze phinze commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

post_import looks like a real feature from the docs: it's a documented app.toml key with precise semantics ("runs after a new version is imported but before it receives traffic, commonly used for database migrations"), and it's parsed and validated on the way in. The catch is that nothing in the runtime ever reads it. The Go field is referenced exactly once in the whole repo, at its own declaration. So a deploy with post_import = "…/rake db:migrate" reports success while the migration never runs, and you find out later when a worker crash-loops on a missing table.

That's the worst kind of trap because the docs actively lead you into it. This pulls post_import out of the app.toml reference and the terminology glossary so it stops advertising a step that doesn't happen. Purely docs here, no behavior change.

The bigger "wire it or retire it" decision has landed on retire, but the code-level piece (warning on the key instead of silently accepting it) and folding the escape-hatch capability into MIR-853's one-shot service work comes in a follow-up. This is just the urgent de-trapping.

Part of MIR-1289.

post_import is a documented, parsed, and validated app.toml key that
the runtime never actually executes, so the docs were pointing users
at a step that silently no-ops. Its headline use case is database
migrations, which makes the trap especially sharp: the deploy reports
success while the schema never changes, and the app breaks at runtime.

Pull it from the app.toml reference and the terminology glossary so it
stops trapping people. The larger wire-vs-retire call (and the
code-level handling of the key) follows separately under MIR-1289.
@phinze phinze requested a review from a team as a code owner July 6, 2026 16:32
@coderabbitai

coderabbitai Bot commented Jul 6, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: a52f5a98-ac77-4487-bbf6-a326400ea193

📥 Commits

Reviewing files that changed from the base of the PR and between 985964a and 1c16f2c.

📒 Files selected for processing (2)
  • docs/docs/app-toml.md
  • docs/docs/terminology.md
💤 Files with no reviewable changes (2)
  • docs/docs/app-toml.md
  • docs/docs/terminology.md

📝 Walkthrough

Walkthrough

This pull request removes documentation references to the post_import field. In docs/docs/app-toml.md, the example configuration no longer includes post_import, and its entry is removed from the Top-Level Fields reference table. In docs/docs/terminology.md, the "Post-Import" glossary definition is deleted, with the document flowing directly from "Onbuild" to "Procfile".

Changes

File Change Summary
docs/docs/app-toml.md Removed post_import from example config and Top-Level Fields table
docs/docs/terminology.md Removed "Post-Import" glossary definition

Related PRs: None identified.

Suggested labels: documentation

Suggested reviewers: None identified.

Poem:
A rabbit hopped through docs today,
And snipped a field that's gone away,
No more post_import in the guide,
Onbuild to Procfile now abide,
A tidy trail where words once stray. 🐇📄


Comment @coderabbitai help to get the list of available commands.

@phinze phinze merged commit bfe32be into main Jul 6, 2026
19 checks passed
@phinze phinze deleted the phinze/mir-1289-post_import-in-apptoml-is-parsed-and-documented-but-never branch July 6, 2026 16:47
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.

2 participants