Skip to content

issue #1052 port MsgBlockParser from TypeScript to Kotlin#1079

Merged
tomholub merged 1 commit intomasterfrom
ip-1052-msg-block-parser
Mar 12, 2021
Merged

issue #1052 port MsgBlockParser from TypeScript to Kotlin#1079
tomholub merged 1 commit intomasterfrom
ip-1052-msg-block-parser

Conversation

@IvanPizhenko
Copy link
Contributor

@IvanPizhenko IvanPizhenko commented Mar 12, 2021

// edit tom

close #1052

@IvanPizhenko
Copy link
Contributor Author

@tomholub @DenBond7 Please review this

Copy link
Collaborator

@tomholub tomholub left a comment

Choose a reason for hiding this comment

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

Looks good to me. @DenBond7 you should be seeing GitHub UI to also provide a review, since you will better know about Android specific parts.

@tomholub
Copy link
Collaborator

image

@DenBond7
Copy link
Collaborator

@tomholub I'm already reviewing it


@Test
fun testDetectBlocksIgnoresFalsePositiveBlocks() {
checkForSinglePlaintextBlock(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe it'll be better to store such a long string as resources. Such code looks bloated and a little hard to read it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it's ok for unit tests, we do it similarly same in the other repos too.

Copy link
Collaborator

@DenBond7 DenBond7 left a comment

Choose a reason for hiding this comment

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

Looks good to me. The Android side was not affected. Maybe need to move long strings to resources. Anyway, I'm approving it.

@IvanPizhenko
Copy link
Contributor Author

@tomholub I can see that there are already 2 approvals and all checks have passed, but I can't merge this myself. Please merge this and possibly give me merge permission under condition of having two approvals.

@tomholub
Copy link
Collaborator

I've set the limit to 1 approval on android repo, and added merge for both Ivan and Den.

That means Den can approve and merge Ivan's work.

We are moving towards a feature per PR - we used to lump many changes in one PR on this repo because Den worked here alone with my oversight. Now that PRs will be smaller, Ivan can also approve/merge Den's work. The permissions are in place.

@tomholub
Copy link
Collaborator

Oh - please always squash merge. Let me add that restriction.

@tomholub tomholub merged commit e1c60f8 into master Mar 12, 2021
@IvanPizhenko
Copy link
Contributor Author

@tomholub Thanks!

@DenBond7 DenBond7 deleted the ip-1052-msg-block-parser branch March 15, 2021 06:38
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.

port MsgBlockParser from TypeScript to Kotlinpgp message block parser

3 participants

Comments