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

feat: split indexed fields in validation install events #128

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

adamegyed
Copy link
Contributor

Motivation

Wallets and SDKs may want to search for instances of installed validations by module address, without knowing which entity ID is used.

Additionally, we don't need to index by the callback success, because this is the output of the action, rather than a filtering criteria.

Solution

Update ValidationInstalled and ValidationUninstalled to have separate indexed fields for the module address and the entity id. It is still possible to filter by both.

Change onUninstallSucceeded in ValidationUninstalled to not be indexed.

@adamegyed adamegyed requested a review from a team August 2, 2024 15:27
Copy link
Collaborator

@fangting-alchemy fangting-alchemy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea. Looks good.

@adamegyed adamegyed merged commit 9271960 into develop Aug 2, 2024
3 checks passed
@adamegyed adamegyed deleted the adam/update-validation-events branch August 2, 2024 17:45
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