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

feat(database): Add Epoch and Snapshot tables #548

Merged
merged 4 commits into from
Aug 13, 2024

Conversation

fmoura
Copy link
Contributor

@fmoura fmoura commented Aug 1, 2024

closes #544

@fmoura fmoura added the #feat:db Feature: database label Aug 1, 2024
@fmoura fmoura added this to the 2.0.0 milestone Aug 1, 2024
@fmoura fmoura self-assigned this Aug 1, 2024
@fmoura fmoura force-pushed the feature/repository-add-epoch branch from 42f5266 to 968c971 Compare August 1, 2024 15:17
@fmoura fmoura linked an issue Aug 1, 2024 that may be closed by this pull request
@fmoura fmoura force-pushed the feature/repository-add-epoch branch 6 times, most recently from bc74f44 to 1225eaa Compare August 5, 2024 18:04
@fmoura fmoura marked this pull request as ready for review August 5, 2024 18:09
@fmoura fmoura force-pushed the feature/repository-add-epoch branch from 1225eaa to 5e9f73c Compare August 6, 2024 05:03
Copy link
Contributor

@renan061 renan061 left a comment

Choose a reason for hiding this comment

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

First review (haven't reviewed the tests.)

internal/evmreader/evmreader.go Outdated Show resolved Hide resolved
internal/evmreader/evmreader.go Outdated Show resolved Hide resolved
internal/node/model/models.go Show resolved Hide resolved
internal/node/model/models.go Show resolved Hide resolved
internal/repository/base.go Outdated Show resolved Hide resolved
internal/repository/base.go Outdated Show resolved Hide resolved
internal/repository/evmreader.go Outdated Show resolved Hide resolved
internal/repository/validator.go Show resolved Hide resolved
Copy link
Contributor

@GMKrieger GMKrieger left a comment

Choose a reason for hiding this comment

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

I was going to comment that the snapshot table doesn't test fail cases, but reading the models, it doesn't have one.

We need to make some changes. We accept same app address and input? If yes, we need to change how we get snapshots. If no, we need to add an unique constraint to this columns.

internal/node/model/models.go Outdated Show resolved Hide resolved
internal/node/model/models.go Outdated Show resolved Hide resolved
internal/repository/base.go Outdated Show resolved Hide resolved
internal/repository/validator.go Show resolved Hide resolved
@fmoura fmoura force-pushed the feature/repository-add-epoch branch from 13cbb90 to abc3376 Compare August 7, 2024 20:20
@fmoura
Copy link
Contributor Author

fmoura commented Aug 7, 2024

I was going to comment that the snapshot table doesn't test fail cases, but reading the models, it doesn't have one.

We need to make some changes. We accept same app address and input? If yes, we need to change how we get snapshots. If no, we need to add an unique constraint to this columns.

Index uniqueness per application will be checked on issue #556

@fmoura fmoura requested review from GMKrieger and renan061 August 7, 2024 22:57
@fmoura fmoura marked this pull request as draft August 8, 2024 17:21
@fmoura fmoura force-pushed the feature/repository-add-epoch branch from e215ce0 to c118266 Compare August 8, 2024 18:09
@fmoura fmoura marked this pull request as ready for review August 8, 2024 19:38
@fmoura fmoura force-pushed the feature/repository-add-epoch branch from 22a7810 to 8a39aee Compare August 9, 2024 18:40
@fmoura fmoura force-pushed the feature/repository-add-epoch branch from 8a39aee to 94d13b8 Compare August 13, 2024 18:02
@fmoura fmoura merged commit 94d13b8 into next/2.0 Aug 13, 2024
6 checks passed
@fmoura fmoura deleted the feature/repository-add-epoch branch August 13, 2024 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
#feat:db Feature: database
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[DB] Add Epoch and Snapshot tables
5 participants