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

Index proposals to support search and filtering #682

Closed
2 tasks done
Tguntenaar opened this issue Mar 4, 2024 · 4 comments
Closed
2 tasks done

Index proposals to support search and filtering #682

Tguntenaar opened this issue Mar 4, 2024 · 4 comments
Assignees

Comments

@Tguntenaar
Copy link
Collaborator

Tguntenaar commented Mar 4, 2024

In order to support search functionality and filters like sort, category, stage and author on the proposal feed we need to index the proposals.

Image

Updating proposals works with snapshots. To simplify the process of indexing instead of updating the database we will work with snapshots as well.

As a starting point use bo's indexer used to indexing devgovgigs posts.

Acceptance Criteria:

  • The indexer needs to track the creation of proposals
  • The indexer needs to track the creation of proposals
@Tguntenaar Tguntenaar self-assigned this Mar 4, 2024
@Tguntenaar
Copy link
Collaborator Author

Created this issue to simplify deserializing the contract state with borsh-js near/queryapi#593

@Tguntenaar
Copy link
Collaborator Author

Today I created this PR near/near-lake-framework-js#53

@Tguntenaar
Copy link
Collaborator Author

Update: I had a call with @ailisp and deployed the latest version of the indexer.

This version succesfully indexed my two proposals but missed the first with index 0 which I'm investigating.

GraphiQL query used
query MyQuery {
  thomasguntenaar_near_devhub_proposals_delta_proposals {
    id
    author_id
  }
  thomasguntenaar_near_devhub_proposals_delta_dumps(
    where: {method_name: {_eq: "set_block_height_callback"}}
  ) {
    author
    method_name
    block_height
    proposal_id
  }
}

@Tguntenaar
Copy link
Collaborator Author

Tguntenaar commented Mar 14, 2024

The latest version is called: devhub_proposals_mining. I integrated it with front end with issue #690

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

No branches or pull requests

1 participant