Skip to content

fix(indexer): improve ingestion client arg validation#25434

Merged
amnn merged 1 commit intomainfrom
amnn/idx-fix-ingest-args
Feb 13, 2026
Merged

fix(indexer): improve ingestion client arg validation#25434
amnn merged 1 commit intomainfrom
amnn/idx-fix-ingest-args

Conversation

@amnn
Copy link
Copy Markdown
Contributor

@amnn amnn commented Feb 12, 2026

Description

Previously we allowed multiple "source" arguments to be passed when configuring the ingestion client, but we had an implicit precedence order which meant that only one gets picked.

This was based on a misunderstanding of how clap's derive macro works.

The set-up now makes sure that exactly one source is provided, and RPC credentials can only be supplied if --rpc-api-url is provided.

Test plan

New unit tests:

$ cargo nextest run -p sui-indexer-alt-framework

Release notes

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.

For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

  • Protocol:
  • Nodes (Validators and Full nodes):
  • gRPC:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:
  • Indexing Framework: Fixes an issue where the ingestion client allowed configuring multiple sources but all but one source was ignored, based on an implicit precedence order. Now exactly one source must be supplied.

## Description

Previously we allowed multiple "source" arguments to be passed when
configuring the ingestion client, but we had an implicit precedence
order which meant that only one gets picked.

This was based on a misunderstanding of how `clap`'s derive macro works.

The set-up now makes sure that exactly one source is provided, and RPC
credentials can only be supplied if `--rpc-api-url` is provided.

## Test plan

New unit tests:

```
$ cargo nextest run -p sui-indexer-alt-framework
```
@amnn amnn self-assigned this Feb 12, 2026
@amnn amnn requested a review from a team as a code owner February 12, 2026 17:12
@vercel
Copy link
Copy Markdown

vercel bot commented Feb 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sui-docs Ready Ready Preview, Comment Feb 12, 2026 5:14pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
multisig-toolkit Ignored Ignored Feb 12, 2026 5:14pm
sui-kiosk Ignored Ignored Feb 12, 2026 5:14pm

Request Review

@amnn amnn merged commit e9c5d59 into main Feb 13, 2026
58 of 59 checks passed
@amnn amnn deleted the amnn/idx-fix-ingest-args branch February 13, 2026 18:11
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