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

use Vector of old task id hash for new task id #412

Merged
merged 2 commits into from
Aug 9, 2023

Conversation

v9n
Copy link
Member

@v9n v9n commented Aug 8, 2023

instead of converting the hash to its hex format and use the ascii string of the hex as Vec for new task id, we use the original [u8, 32] of the Hash and convert it to a Vec

This will keep our task id show up in the same way before and after update.

@v9n
Copy link
Member Author

v9n commented Aug 8, 2023

Hi @chrisli30 @imstar15 This is to fix the task id so after and before the task id will show up as the same task.

Before update

Screenshot 2023-08-08 at 2 32 31 PM

After update and migration run

Screenshot 2023-08-08 at 2 34 05 PM

@v9n v9n requested review from chrisli30 and imstar15 August 8, 2023 22:41
instead of converting the hash to its hex format and use the ascii
string of the hex as Vec<u8> for new task id, we use the original [u8,
32] of the Hash and convert it to a Vec<u8>

This will keep our task id show up in the same way before and after
update.
@v9n v9n force-pushed the fix-task-id-double-encoding-on-polkadot-ui branch from 962b351 to f07c1d5 Compare August 8, 2023 22:44
Copy link
Member

@chrisli30 chrisli30 left a comment

Choose a reason for hiding this comment

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

Cool, looks simpler

@chrisli30 chrisli30 merged commit a3ffd03 into master Aug 9, 2023
3 checks passed
@chrisli30 chrisli30 deleted the fix-task-id-double-encoding-on-polkadot-ui branch August 9, 2023 00:54
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