Skip to content

feat(entities) Adds batch dependent entity and sql schema#47

Merged
manjari25 merged 1 commit into
manjari/batch-entityfrom
manjari/batch-dependent-entity
Feb 24, 2026
Merged

feat(entities) Adds batch dependent entity and sql schema#47
manjari25 merged 1 commit into
manjari/batch-entityfrom
manjari/batch-dependent-entity

Conversation

@manjari25
Copy link
Copy Markdown
Contributor

@manjari25 manjari25 commented Feb 24, 2026

Summary

feat(entities) Adds batch dependent entity and sql schema

Why?

This sets up batch dependent entity and its corresponding sql schema. This helps make reverse look ups for batch dependencies easier throughout the system.

What?

  • Add a BatchDependent entity
  • Add batch_dependent mysql schema
  • Note: BatchDependentStore in upcoming PR

Test Plan

Issues

Stack

  1. feat(entities) Adds change provider entity and mysql backed store for it #44
  2. feat(entities) Adds batch entity and batch sql schema #46
  3. @ feat(entities) Adds batch dependent entity and sql schema #47
  4. feat(entities) Adds build entity and sql schema #48
  5. feat(entities) Adds speculation tree entity and sql schema #49

Comment thread entity/batch_dependent.go
type BatchDependent struct {
// BatchID is the globally unique identifier representing a batch.
BatchID string
// Dependents is a list of batch IDs that are dependents for this
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
// Dependents is a list of batch IDs that are dependents for this
// Dependents is a list of batch IDs that are dependents on this

@manjari25 manjari25 force-pushed the manjari/batch-entity branch from b7d8ef7 to 48240ec Compare February 24, 2026 00:43
@manjari25 manjari25 force-pushed the manjari/batch-dependent-entity branch from e85e6d4 to 1543bfd Compare February 24, 2026 00:43
behinddwalls added a commit that referenced this pull request Feb 24, 2026
… it (#44)

## Summary
feat(entities) Adds change provider entity and mysql backed store for it

## Why?
<!-- Why is this change necessary? What is the motivation or
justification? -->
This sets up change provider entity and its corresponding sql store.
This will be used by various workflows in the orchestrator to get
information about changes going through the system.

## What?
* Add a `ChangeProvider` entity
* Add a `ChangeProviderStore` - the mysql store that backs this entity

## Test Plan


## Issues


## Stack
1. @ #44
1. #46
1. #47
1. #48
1. #49

---------

Co-authored-by: Preetam Dwivedi <behinddwalls@gmail.com>
@manjari25 manjari25 marked this pull request as ready for review February 24, 2026 00:56
@manjari25 manjari25 requested review from a team and sbalabanov as code owners February 24, 2026 00:56
manjari25 added a commit that referenced this pull request Feb 24, 2026
## Summary
feat(entities) Adds batch entity and batch sql schema

## Why?
<!-- Why is this change necessary? What is the motivation or
justification? -->
This sets up batch entity and its corresponding sql schema. This
establishes the core concept of a batch that will be used through the
system.

## What?
* Add a `Batch` entity
* Add `batch` mysql schema
* Note: `BatchStore` in upcoming PR

## Test Plan


## Issues


## Stack
1. #44
1. @ #46
1. #47
1. #48
1. #49
@manjari25 manjari25 merged commit 03fe7a0 into manjari/batch-entity Feb 24, 2026
2 checks passed
@sbalabanov
Copy link
Copy Markdown
Contributor

If BatchDependent is immutable, why don't we put it in the same Batch table?

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