-
Notifications
You must be signed in to change notification settings - Fork 9
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 files indexers #977
base: main
Are you sure you want to change the base?
Add files indexers #977
Conversation
🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎ To accept the risk, merge this PR and you will not be notified again.
Next stepsWhat is a critical CVE?Contains a Critical Common Vulnerability and Exposure (CVE). Remove or replace dependencies that include known critical CVEs. Consumers can use dependency overrides or npm audit fix --force to remove vulnerable dependencies. What is protestware?This package is a joke, parody, or includes undocumented or hidden behavior unrelated to its primary function. Consider that consuming this package may come along with functionality unrelated to its primary purpose. Take a deeper look at the dependencyTake a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev. Remove the packageIf you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency. Mark a package as acceptable riskTo ignore an alert, reply with a comment starting with
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨No code suggestions found for the PR. |
✅ Deploy Preview for dev-astral canceled.
|
I think we should avoid indexing chunks in the long-term. Besides that, looks so nice! |
User description
Add files indexers
Add an indexer that indexes cids, files, folders, metadata and their relations
This does not rebuild the file, store the data in plain text in the chunk table
PR Type
enhancement, documentation
Description
Changes walkthrough 📝
12 files
project.ts
Add project configuration for Mainnet files indexer
indexers/mainnet/files/project.ts
index.ts
Export handler functions and import API augmentations
indexers/mainnet/files/src/index.ts
db.ts
Implement database functions for entity creation and saving
indexers/mainnet/files/src/mappings/db.ts
and File.
mappingHandlers.ts
Add handler for processing blockchain extrinsics
indexers/mainnet/files/src/mappings/mappingHandlers.ts
types.ts
Define types for extrinsic data structures
indexers/mainnet/files/src/mappings/types.ts
project.ts
Add project configuration for Taurus Testnet files indexer
indexers/taurus/files/project.ts
indexer.
index.ts
Export handler functions and import API augmentations
indexers/taurus/files/src/index.ts
db.ts
Implement database functions for entity creation and saving
indexers/taurus/files/src/mappings/db.ts
and File.
mappingHandlers.ts
Add handler for processing blockchain extrinsics
indexers/taurus/files/src/mappings/mappingHandlers.ts
types.ts
Define types for extrinsic data structures
indexers/taurus/files/src/mappings/types.ts
schema.graphql
Define GraphQL schema for file-related entities
indexers/mainnet/files/schema.graphql
entities.
schema.graphql
Define GraphQL schema for file-related entities
indexers/taurus/files/schema.graphql
entities.
8 files
docker-compose.yml
Add Docker service configuration for files indexer
docker-compose.yml
files_chunks.yaml
Define schema and permissions for chunks table
indexers/db/metadata/databases/default/tables/files_chunks.yaml
files_cids.yaml
Define schema and permissions for cids table
indexers/db/metadata/databases/default/tables/files_cids.yaml
tables.yaml
Update metadata configuration to include files tables
indexers/db/metadata/databases/default/tables/tables.yaml
package.json
Add package.json with project metadata
indexers/mainnet/files/package.json
tsconfig.json
Add TypeScript configuration file
indexers/mainnet/files/tsconfig.json
package.json
Add package.json with project metadata
indexers/taurus/files/package.json
tsconfig.json
Add TypeScript configuration file
indexers/taurus/files/tsconfig.json
4 files
LICENSE
Add MIT License file
indexers/mainnet/files/LICENSE
README.md
Add README with project overview and instructions
indexers/mainnet/files/README.md
LICENSE
Add MIT License file
indexers/taurus/files/LICENSE
README.md
Add README with project overview and instructions
indexers/taurus/files/README.md