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

(Bids 2624) Add /slots query to URL #2804

Closed
wants to merge 7 commits into from

Conversation

gocoffeecup
Copy link
Contributor

copilot:summary

@gocoffeecup gocoffeecup changed the title Bids 2624 (Bids 2624 Jan 8, 2024
@gocoffeecup gocoffeecup changed the title (Bids 2624 ( Bids 2624 ) Add /slots query to URL Jan 8, 2024
@gocoffeecup gocoffeecup changed the title ( Bids 2624 ) Add /slots query to URL (Bids 2624) Add /slots query to URL Jan 8, 2024
Copy link
Collaborator

@Eisei24 Eisei24 left a comment

Choose a reason for hiding this comment

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

lgtm

@@ -77,7 +84,7 @@ func EpochsData(w http.ResponseWriter, r *http.Request) {
var epochs []*types.EpochsPageData

latestFinalizedEpoch := services.LatestFinalizedEpoch()
if search == -1 {
if emptySearch {
Copy link
Collaborator

Choose a reason for hiding this comment

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

minor: The else a few lines below this should be a
} else if search != -1 {
so that we don't do a pointless query for epoch -1.

if (q) {
votesTblOpts.search = { search: q }
//votesTblOpts.search = { search: q }
Copy link
Collaborator

Choose a reason for hiding this comment

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

nitpick: Can be deleted.

@Eisei24
Copy link
Collaborator

Eisei24 commented Jan 19, 2024

New PR #2822 was created to replace this one.

@Eisei24 Eisei24 closed this Jan 19, 2024
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.

2 participants