Skip to content

De-duplicate the logic for counting attachments - #42596

Closed
jakub-trzebiatowski wants to merge 1 commit into
react:mainfrom
jakub-trzebiatowski:deduplicate-countAttachments
Closed

De-duplicate the logic for counting attachments#42596
jakub-trzebiatowski wants to merge 1 commit into
react:mainfrom
jakub-trzebiatowski:deduplicate-countAttachments

Conversation

@jakub-trzebiatowski

Copy link
Copy Markdown
Contributor

Summary:

De-duplicate the logic for counting attachments.

This is a minor improvement in the context of my multi-PR work on react-native-community/discussions-and-proposals#695.

Changelog:

[INTERNAL] [CHANGE] - De-duplicate the logic for counting attachments

Test Plan:

@facebook-github-botfacebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Jan 22, 2024
@jakub-trzebiatowski

Copy link
Copy Markdown
ContributorAuthor

@rozele Any chance you could review this?

@analysis-bot

analysis-bot commented Jan 22, 2024

Copy link
Copy Markdown
PlatformEngineArchSize (bytes)Diff
androidhermesarm64-v8a17,066,833+1
androidhermesarmeabi-v7an/a--
androidhermesx86n/a--
androidhermesx86_64n/a--
androidjscarm64-v8a20,450,443+11
androidjscarmeabi-v7an/a--
androidjscx86n/a--
androidjscx86_64n/a--

Base commit: cfc0ba0
Branch: main

@jakub-trzebiatowski

Copy link
Copy Markdown
ContributorAuthor

@rozele I took a look at the "build_npm_package" check and it seems unrelated to my changes 🙂

@cipolleschicipolleschi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hi @cubuspl42, thanks for the PR. I left a couple of comments.
One is just a nit, but the other is related to function visibility and public API and I think it would be better to address it.

What are your thoughts on this suggestion?

@jakub-trzebiatowski
jakub-trzebiatowskiforce-pushed the deduplicate-countAttachments branch from 822e5aa to c7281d7CompareJanuary 24, 2024 12:49

@cipolleschicipolleschi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I added some concrete suggestions on how to move forward.

@jakub-trzebiatowski
jakub-trzebiatowskiforce-pushed the deduplicate-countAttachments branch from c7281d7 to 16479a3CompareJanuary 29, 2024 10:40

@cipolleschicipolleschi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for your understanding and for applying the fixes.
CI is red but it is not due this PR: this morning Cocoapods released a new version (1.1.5.0) which is breaking. See more here.

@jakub-trzebiatowski

Copy link
Copy Markdown
ContributorAuthor

@cipolleschi Thank you for reviewing and approving this PR! What is the next action point here? 🙂

@cipolleschi

Copy link
Copy Markdown
Contributor

/rebase - this comment automatically rebase the PR on top of main

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@cipolleschi

Copy link
Copy Markdown
Contributor

I'm soooo sorry! I was sure we already merged this PR in main. 🤦
I'll proceed importing and have it landed.

@facebook-github-botfacebook-github-bot added the Merged This PR has been merged. label Feb 20, 2024
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@cipolleschi merged this pull request in 69977d0.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.MergedThis PR has been merged.Shared with MetaApplied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@jakub-trzebiatowski@analysis-bot@cipolleschi@facebook-github-bot