Skip to content

Remove the deprecated RunTransaction function #544

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

Merged
merged 4 commits into from
Jul 19, 2021

Conversation

ehsannas
Copy link
Contributor

No description provided.

@google-cla google-cla bot added the cla: yes label Jul 15, 2021
@ehsannas ehsannas self-assigned this Jul 15, 2021
@ehsannas ehsannas added the tests-requested: quick Trigger a quick set of integration tests. label Jul 15, 2021
@github-actions github-actions bot added tests: in-progress This PR's integration tests are in progress. and removed tests-requested: quick Trigger a quick set of integration tests. labels Jul 15, 2021
@github-actions
Copy link

github-actions bot commented Jul 15, 2021

❌  Integration test FAILED

Requested by @ehsannas on commit 5c1a935
Last updated: Mon Jul 19 16:54 PDT 2021
View integration test log & download artifacts

Failures Configs
auth [TEST] [ERROR] [iOS] [macos] [ios_target]

@github-actions github-actions bot added the tests: succeeded This PR's integration tests succeeded. label Jul 15, 2021
@firebase-workflow-trigger firebase-workflow-trigger bot removed the tests: in-progress This PR's integration tests are in progress. label Jul 15, 2021
@ehsannas ehsannas requested a review from var-const July 15, 2021 20:37
@ehsannas ehsannas assigned var-const and unassigned ehsannas Jul 15, 2021
Copy link
Contributor

@var-const var-const left a comment

Choose a reason for hiding this comment

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

Please add an entry to the release notes.

} // namespace firestore
} // namespace firebase

#endif // FIREBASE_FIRESTORE_SRC_COMMON_TRANSACTION_FUNCTION_H_
Copy link
Contributor

Choose a reason for hiding this comment

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

Please fix.

@ehsannas
Copy link
Contributor Author

the file_format_check bot is failing with

  - Requires reformatting: "firestore/src/common/transaction_function.h"
------ BEGIN FORMATTING DIFF OF firestore/src/common/transaction_function.h
---
+++
@@ -35,4 +35,3 @@
 }  // namespace firebase

 #endif  // FIREBASE_FIRESTORE_SRC_COMMON_TRANSACTION_FUNCTION_H_
-
------ END FORMATTING DIFF OF firestore/src/common/transaction_function.h
  > Done. 1 file(s) need formatting.

* @return Either Error::kErrorOk if successful or the error code from Error
* that most closely matches the failure.
*/
virtual Error Apply(Transaction& transaction, std::string& error_message) = 0;

Choose a reason for hiding this comment

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

⚠️ Lint warning: Is this a non-const reference? If so, make const or use a pointer: Transaction& transaction

* @return Either Error::kErrorOk if successful or the error code from Error
* that most closely matches the failure.
*/
virtual Error Apply(Transaction& transaction, std::string& error_message) = 0;

Choose a reason for hiding this comment

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

⚠️ Lint warning: Is this a non-const reference? If so, make const or use a pointer: std::string& error_message

@ehsannas ehsannas requested a review from var-const July 16, 2021 15:46
@ehsannas ehsannas assigned var-const and unassigned ehsannas Jul 16, 2021
@var-const var-const assigned ehsannas and unassigned var-const Jul 19, 2021
@ehsannas ehsannas merged commit 5c1a935 into main Jul 19, 2021
@ehsannas ehsannas deleted the ehsann-remove-run-transaction branch July 19, 2021 21:41
@github-actions github-actions bot added the tests: in-progress This PR's integration tests are in progress. label Jul 19, 2021
@github-actions github-actions bot added tests: failed This PR's integration tests failed. and removed tests: succeeded This PR's integration tests succeeded. labels Jul 19, 2021
@firebase-workflow-trigger firebase-workflow-trigger bot removed the tests: in-progress This PR's integration tests are in progress. label Jul 19, 2021
@firebase firebase locked and limited conversation to collaborators Aug 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: firestore cla: yes tests: failed This PR's integration tests failed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants