Skip to content

feat(entities) Adds batch entity and batch sql schema#46

Merged
manjari25 merged 2 commits into
manjari/entitiesfrom
manjari/batch-entity
Feb 24, 2026
Merged

feat(entities) Adds batch entity and batch sql schema#46
manjari25 merged 2 commits into
manjari/entitiesfrom
manjari/batch-entity

Conversation

@manjari25
Copy link
Copy Markdown
Contributor

@manjari25 manjari25 commented Feb 23, 2026

Summary

feat(entities) Adds batch entity and batch sql schema

Why?

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. 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.go Outdated
// Request IDs will always be part of the same queue.
// For e.g. - [queueA/1, queueA/2, queueA/3].
Contains []string
// Dependencies is a list of batch IDs (and associated metdata) for this batch.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

typo

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated

Comment thread entity/batch.go
Contains []string
// Dependencies is a list of batch IDs (and associated metdata) for this batch.
// Dependencies will always be part of the same queue.
Dependencies []map[string]interface{}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

may be need a more thorough explanation what deps are

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated

Comment thread entity/batch.go Outdated
// Dependencies will always be part of the same queue.
Dependencies []map[string]interface{}
// The state of the batch lifecycle this batch is in.
State string
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

prefer to type it explicitly off string type

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated

dependencies JSON NOT NULL,
state VARCHAR(255) NOT NUll,
version INT NOT NULL,
PRIMARY KEY (id,queue)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

id is enough

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated

@manjari25 manjari25 force-pushed the manjari/batch-entity branch from b7d8ef7 to 48240ec 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 as code owners February 24, 2026 00:56
@manjari25 manjari25 merged commit 2732bb2 into manjari/entities Feb 24, 2026
1 check passed
manjari25 added a commit that referenced this pull request Feb 24, 2026
## Summary
feat(entities) Adds batch dependent entity and sql schema


## Why?
<!-- Why is this change necessary? What is the motivation or
justification? -->
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. #44
1. #46
1. @ #47
1. #48
1. #49
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