Skip to content

fix(firebase_ui_database): Perform list operations in correct order #213

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

Conversation

Rexios80
Copy link
Contributor

Description

Fix for bug introduced by #193

The elements should be reversed before removing the extra element or else the wrong element is removed

Related Issues

N/A

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]).
This will ensure a smooth and quick review process. Updating the pubspec.yaml and changelogs is not required.

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
  • All existing and new tests are passing.
  • I updated/added relevant documentation (doc comments with ///).
  • The analyzer (melos run analyze) does not report any problems on my PR.
  • All unit tests pass (melos run test:unit:all doesn't fail).
  • I read and followed the Flutter Style Guide.
  • I signed the CLA.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?

  • Yes, this is a breaking change.
  • No, this is not a breaking change.

@Rexios80
Copy link
Contributor Author

@rrousselGit @lesnitsky Can we get this merged? This is a pretty important issue that affects the currently released package.

…der-reverse"

This reverts commit 60b78aa, reversing
changes made to 1525a3c.
@russellwheatley
Copy link
Member

Hey @Rexios80 - sorry for the late response, I had this on my radar but I wanted to write firebase_ui_database tests. They have just been merged, is it possible that you could write a test that validates the change? At the moment, our CI is broken on apple CI due to an external dependency that we're in the process of fixing. It will work locally. Here are the tests: https://github.com/firebase/FirebaseUI-Flutter/blob/main/tests/integration_test/firebase_ui_database/database_list_view_test.dart

You will need to run firebase emulators:start in root of project and run flutter test integration_test/firebase_ui_test.dart. Also worth commeting out tests you don't need to run for speed here: https://github.com/firebase/FirebaseUI-Flutter/blob/main/tests/integration_test/firebase_ui_test.dart#L26-L36

Thanks 👍

@Rexios80
Copy link
Contributor Author

@russellwheatley I wrote the test

@russellwheatley
Copy link
Member

@Rexios80 - thanks, I will look to get this merged/released this week 👍

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