Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additional "Commit Metadata" field to commit data structure #8125

Open
timsehn opened this issue Jul 15, 2024 · 1 comment
Open

Add additional "Commit Metadata" field to commit data structure #8125

timsehn opened this issue Jul 15, 2024 · 1 comment
Labels
enhancement New feature or request version control

Comments

@timsehn
Copy link
Sponsor Contributor

timsehn commented Jul 15, 2024

Customers often ask where to put structured data about a Dolt commit that is generated by their application. Right now, may choose to stick structured text like JSON in the commit message and parse it out later. This is not ideal.

Instead, we could offer a JSON formatted "commit metadata" option in Dolt commit that we could store with the commit. This field would be checked for JSON compatibility at commit time. It could be accessed as a JSON column in the dolt_log table.

Moreover, it should be hashed into the commit id.

@timsehn timsehn added enhancement New feature or request version control labels Jul 15, 2024
@christopherreay
Copy link

christopherreay commented Jul 15, 2024

maybe add a "hasMetadata" boolean into dolt_branches, and wherever else the commit is referenced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request version control
Projects
None yet
Development

No branches or pull requests

2 participants