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: add slot_index property to signers #46

Merged
merged 1 commit into from
Nov 8, 2024
Merged

Conversation

zone117x
Copy link
Member

@zone117x zone117x commented Nov 8, 2024

Closes #40

The sql migration just drops the current table to trigger the existing runtime logic which will detect missing cycle signer sets, fetch them, and insert them (this time with the slot_index data). This is cleaner and less error-prone than an alter-table migration + missing slot_index detection + table updating logic.

Copy link

github-actions bot commented Nov 8, 2024

Vercel deployment URL: https://signer-metrics-o8d4jit2k-hirosystems.vercel.app 🚀

Copy link

codecov bot commented Nov 8, 2024

Codecov Report

Attention: Patch coverage is 92.53731% with 5 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...ons/1731067485167_reward_set_signers-slot-index.ts 92.45% 4 Missing ⚠️
src/pg/types.ts 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@zone117x zone117x merged commit 79e399a into main Nov 8, 2024
5 checks passed
@zone117x zone117x deleted the feat/slot-index branch November 8, 2024 13:16
blockstack-devops pushed a commit that referenced this pull request Nov 8, 2024
## [0.8.0](v0.7.0...v0.8.0) (2024-11-08)

### Features

* add slot_index property to signers ([#46](#46)) ([79e399a](79e399a))
@blockstack-devops
Copy link

🎉 This PR is included in version 0.8.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

pgm.dropIndex('reward_set_signers', ['block_height']);
pgm.dropIndex('reward_set_signers', ['cycle_number']);
pgm.dropConstraint('reward_set_signers', 'reward_set_signers_cycle_unique');
pgm.renameTable('reward_set_signers', 'reward_set_signers_old-no-slot-index');
Copy link
Contributor

Choose a reason for hiding this comment

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

Keeping the table for now?

Copy link
Contributor

@janniks janniks left a comment

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Add slot_index property to entries in the /signers endpoint
3 participants