Skip to content

Conversation

@MarceloRGonc
Copy link
Contributor

Part of OPS-3345.

Copilot AI review requested due to automatic review settings January 6, 2026 12:31
@linear
Copy link

linear bot commented Jan 6, 2026

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces a helper function applyToEachTablesDatabase that iterates through all Tables databases and applies a given function to each database context. The implementation retrieves database contexts from projects and executes an operation sequentially for each context.

Key changes:

  • Added applyToEachTablesDatabase helper function to simplify batch operations across Tables databases
  • Implemented listTablesDatabases to extract database contexts from projects
  • Added comprehensive unit tests covering the iterator functionality

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
packages/server/api/src/app/database/seeds/tables-database-iterator.ts Implements the iterator helper function and database context listing logic
packages/server/api/test/unit/openops-tables/tables-database-iterator.test.ts Adds unit tests verifying the iterator applies functions to each database context

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…rator.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 6, 2026

@MarceloRGonc MarceloRGonc merged commit 0eca01c into main Jan 6, 2026
23 checks passed
@MarceloRGonc MarceloRGonc deleted the mg/OPS-3345 branch January 6, 2026 14:19
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