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

[indexer] primary key of tx_calls should include module and func #17602

Merged
merged 2 commits into from
May 13, 2024

Conversation

emmazzz
Copy link
Contributor

@emmazzz emmazzz commented May 9, 2024

Description

One transaction can call multiple functions in a package so the primary key should include all parts of a function - package, module, func.

Test plan

Existing tests.


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:

Copy link

vercel bot commented May 9, 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 May 12, 2024 6:23am
3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview May 12, 2024 6:23am
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview May 12, 2024 6:23am
sui-typescript-docs ⬜️ Ignored (Inspect) Visit Preview May 12, 2024 6:23am

@emmazzz emmazzz changed the base branch from main to idx-breaking-change-may-2024 May 9, 2024 06:35
@emmazzz
Copy link
Contributor Author

emmazzz commented May 9, 2024

I suppose this one needs a backfill so I've created a new breaking change branch as the base branch of this PR.

@emmazzz emmazzz requested a review from gegaowp May 9, 2024 06:37
@gegaowp
Copy link
Contributor

gegaowp commented May 9, 2024

the primary key info is also in the schema/pg.rs, so we will want to make a corresponding change there too.

@gegaowp
Copy link
Contributor

gegaowp commented May 9, 2024

no strong opinion, but I also updated the branch https://github.com/MystenLabs/sui/commits/idx-breaking-change-park and we can continue using that for the next batch of backfill & deployment.

@emmazzz emmazzz changed the base branch from idx-breaking-change-may-2024 to idx-breaking-change-park May 9, 2024 18:40
@emmazzz emmazzz merged commit c636e03 into idx-breaking-change-park May 13, 2024
43 of 44 checks passed
@emmazzz emmazzz deleted the emma/fix-tx-calls-pkey branch May 13, 2024 17:17
amnn pushed a commit that referenced this pull request May 14, 2024
)

## Description 

One transaction can call multiple functions in a package so the primary
key should include all parts of a function - package, module, func.

## Test plan 

Existing tests.

---

## 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): 
- [x] Indexer: 
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
emmazzz added a commit that referenced this pull request Jun 20, 2024
)

## Description 

One transaction can call multiple functions in a package so the primary
key should include all parts of a function - package, module, func.

## Test plan 

Existing tests.

---

## 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): 
- [x] Indexer: 
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
emmazzz added a commit that referenced this pull request Aug 3, 2024
)

## Description 

One transaction can call multiple functions in a package so the primary
key should include all parts of a function - package, module, func.

## Test plan 

Existing tests.

---

## 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): 
- [x] Indexer: 
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
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.

3 participants