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

Deduplicate contract names migration #5143

Merged
merged 7 commits into from
Jan 9, 2024

Conversation

janezpodhostnik
Copy link
Contributor

Add migration to deduplicate account contracts names.

extracted from: #4633

ref: #3825

Copy link
Member

@sideninja sideninja left a comment

Choose a reason for hiding this comment

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

Left some comments I think you should address

Copy link
Member

@fxamacker fxamacker left a comment

Choose a reason for hiding this comment

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

Nice! I left some suggestions that can reduce memory use, number of allocations, and also tried to speedup large account processing by avoiding snapshot.

@janezpodhostnik janezpodhostnik changed the base branch from master to janez/migration-infrastructure January 2, 2024 15:28
Copy link
Member

@fxamacker fxamacker left a comment

Choose a reason for hiding this comment

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

Nice! I left a couple suggestions.

Also maybe add more tests (some ideas):

  • without contract name payload
  • with one contract name
  • with two unique contract names
  • with two duplicate contact names
  • with a list of randomized contract names (with duplicates)

Copy link
Member

@fxamacker fxamacker left a comment

Choose a reason for hiding this comment

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

Nice! Thanks for adding more tests. 👍 Only new suggestion is to maybe remove empty contract name payload.

Base automatically changed from janez/migration-infrastructure to master January 8, 2024 20:40
@janezpodhostnik janezpodhostnik added this pull request to the merge queue Jan 9, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Jan 9, 2024
@janezpodhostnik janezpodhostnik added this pull request to the merge queue Jan 9, 2024
Merged via the queue into master with commit 60c0ece Jan 9, 2024
51 checks passed
@janezpodhostnik janezpodhostnik deleted the janez/deduplicate-contract-names branch January 9, 2024 14:50
This pull request was closed.
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