Skip to content

Conversation

@pyramation
Copy link
Contributor

@pyramation pyramation commented Jan 24, 2026

Summary

Removes all references to the apiExtensions, database_extension, and api_extensions tables from the constructive repo. This is a follow-up to constructive-db PR #434 which removed these unused extension tables from the database schema.

Key changes:

  • Removed apiExtensions from the GraphQL API select and normalizeApiRecord function - schema names now come solely from schemasByApiSchemaApiIdAndSchemaId
  • Removed database_extension and api_extensions configs from the pgpm export utilities
  • Updated tests to reflect the removal of these tables

Review & Testing Checklist for Human

  • CRITICAL: Ensure constructive-db PR #434 is merged before this PR - otherwise the GraphQL server will try to query fields that don't exist
  • Verify no production APIs rely on apiExtensions for schema name resolution (the schemasByApiSchemaApiIdAndSchemaId relation should be the canonical source)
  • Run the full test suite locally to catch any additional dependencies on these tables
  • After merging, verify the GraphQL server starts correctly and API lookups work as expected

Updates since last revision

  • Rebased on main to incorporate latest fixes

Notes

This PR is part of a cleanup effort to remove extension-tracking tables that were designed but never implemented. The tables existed in the schema but no application logic ever populated or read from them.

Requested by: Dan Lynch (@pyramation)
Link to Devin run: https://app.devin.ai/sessions/89938c05148d4fd1953769e7af899382

@devin-ai-integration
Copy link
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Remove all references to the removed extension tables:
- Remove apiExtensions from apiSelect and normalizeApiRecord in gql.ts
- Remove database_extension and api_extensions configs from export-meta.ts
- Remove database_extension and api_extensions from tableOrder in export-migrations.ts
- Update tests to remove extension table references
@devin-ai-integration devin-ai-integration bot force-pushed the devin/1769235227-remove-api-extensions branch from 23dc3a2 to a70d605 Compare January 24, 2026 06:49
@pyramation pyramation merged commit ed24826 into main Jan 24, 2026
50 checks passed
@pyramation pyramation deleted the devin/1769235227-remove-api-extensions branch January 24, 2026 07:12
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