Skip to content

Conversation

amnn
Copy link
Contributor

@amnn amnn commented Oct 11, 2024

Description

Stop indexing these tables in favour of tx_affected_objects. This change cannot land without GraphQL first being updated to avoid reading these tables (otherwise its tests will fail as these fields are no longer indexed), but the PR is being put out early for experimentation.

Test plan

sui$ cargo nextest run -p sui-indexer

Stack


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):
  • Indexer:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:
  • REST API:

@amnn amnn self-assigned this Oct 11, 2024
Copy link

vercel bot commented Oct 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 11, 2024 10:51pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Oct 11, 2024 10:51pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Oct 11, 2024 10:51pm
sui-typescript-docs ⬜️ Ignored (Inspect) Visit Preview Oct 11, 2024 10:51pm

amnn added 5 commits October 11, 2024 23:45
…tionBlockRelation.RECV

## Description

These fields were flagged for deprecation in 1.34 and have been replaced in 1.35 by

- `TransactionBlockFilter.affectedAddress` and
- `AddressTransactionBlockRelation.AFFECTED`

Which offer a similar (but not exactly the same) semantics, but without
confusion around the sender address which was often also an implicit
recipient of a transaction.

## Test plan

```
sui$ cargo nextest run -p sui-graphql-rpc
sui$ cargo nextest run -p sui-graphql-rpc --features staging
sui$ cargo nextest run -p sui-graphql-e2e-tests
```
## Description

All references to these fields have been removed from readers, so we can
stop keeping it up-to-date. Once this change lands, we can also clean
these tables from the schema.

## Test plan

```
sui$ cargo nextest run -p sui-indexer
```
## Description

Stop indexing these tables in favour of `tx_affected_objects`. This
change cannot land without GraphQL first being updated to avoid reading
these tables (otherwise its tests will fail as these fields are no
longer indexed), but the PR is being put out early for experimentation.

## Test plan

```
sui$ cargo nextest run -p sui-indexer
```
@amnn amnn force-pushed the amnn/idx-write-rm-send-recv branch from 64d39ef to c35ff47 Compare October 11, 2024 22:46
@amnn amnn requested a review from a team as a code owner October 11, 2024 22:46
@amnn amnn force-pushed the amnn/idx-write-rm-input-changed branch from a8adfc7 to 08b5a6b Compare October 11, 2024 22:46
Base automatically changed from amnn/idx-write-rm-send-recv to main October 14, 2024 14:36
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.

4 participants