Skip to content

Conversation

@werainkhatri
Copy link
Member

@werainkhatri werainkhatri commented Apr 23, 2022

part fix for flutter/flutter#85431

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the relevant style guides and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/packages repo does use dart format.)
  • I signed the CLA.
  • The title of the PR starts with the name of the package surrounded by square brackets, e.g. [shared_preferences]
  • I listed at least one issue that this PR fixes in the description above.
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.
  • I updated CHANGELOG.md to add a description of the change, following repository CHANGELOG style.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

Copy link
Contributor

@dnfield dnfield left a comment

Choose a reason for hiding this comment

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

Lgtm with nits about =>

@stuartmorgan-g stuartmorgan-g changed the title [flutter_image][flutter_markdown][multicast_dns][palette_generator][rfw] migrate from ui.hash* to Object.hash* [various] migrate from ui.hash* to Object.hash* Apr 24, 2022
@Hixie
Copy link
Contributor

Hixie commented Apr 24, 2022

test-exempt: code refactor with no semantic change

@stuartmorgan-g
Copy link
Collaborator

@werainkhatri Are you planning on updating this to fix the failing unit test?

@werainkhatri
Copy link
Member Author

I can't seem to understand what's causing the issue, can you help (or point to someone who can help) me with this? thanks!

@stuartmorgan-g
Copy link
Collaborator

Can you elaborate what specific help you are looking for here? You changed the hash and equality implementations of some objects, and now unit tests that rely on equality-testing those objects are failing; have you compared the new and old implementations on those specific cases to see what changed?

@werainkhatri werainkhatri force-pushed the migrate-hash branch 2 times, most recently from 40ed9ed to fffba2e Compare May 15, 2022 10:49
@werainkhatri
Copy link
Member Author

werainkhatri commented May 15, 2022

found the issue.

few of ResourceRecord's subclasses call super._equals in their _equals (like PtrResourceRecord) but others don't (like IPAddressResourceRecord or TxtResourceRecord). this seems unexpected, but maybe i'm wrong. with my migration, == compares all fields.

i see @dnfield working on this from git history, could you confirm?

@github-actions github-actions bot added the p: rfw Remote Flutter Widgets label May 24, 2022
@fluttergithubbot
Copy link

This pull request is not suitable for automatic merging in its current state.

  • This pull request has changes requested by @stuartmorgan. Please resolve those before re-applying the label.
  • The status or check suite publishable has failed. Please fix the issues identified (or deflake) before re-applying this label.

@fluttergithubbot
Copy link

This pull request is not suitable for automatic merging in its current state.

  • This pull request has changes requested by @stuartmorgan. Please resolve those before re-applying the label.

Copy link
Collaborator

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

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

LGTM

@werainkhatri werainkhatri merged commit 0f1af1d into flutter:main May 31, 2022
@werainkhatri werainkhatri deleted the migrate-hash branch May 31, 2022 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants