Skip to content
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

Null safety migration #155

Merged
merged 23 commits into from
Jan 23, 2024
Merged

Null safety migration #155

merged 23 commits into from
Jan 23, 2024

Conversation

sydneyjodon-wk
Copy link
Contributor

@sydneyjodon-wk sydneyjodon-wk commented Dec 28, 2023

Motivation

Migrate over_react_test to null safety.

Changes

  • Migrate to null safety
  • Fix failing tests

Release Notes

Review

See CONTRIBUTING.md for more details on review types (+1 / QA +1 / +10) and code review process.

Please review:

QA Checklist

Merge Checklist

While we perform many automated checks before auto-merging, some manual checks are needed:

  • A Frontend Frameworks Design member has reviewed these changes
  • There are no unaddressed comments - this check can be automated if reviewers use the "Request Changes" feature
  • For release PRs - Version metadata in Rosie comment is correct

@aviary-wf
Copy link

Security Insights

No security relevant content was detected by automated scans.

Action Items

  • Review PR for security impact; comment "security review required" if needed or unsure
  • Verify aviary.yaml coverage of security relevant code

Questions or Comments? Reach out on Slack: #support-infosec.

@sydneyjodon-wk sydneyjodon-wk marked this pull request as ready for review January 4, 2024 16:25
Copy link
Contributor

@greglittlefield-wf greglittlefield-wf left a comment

Choose a reason for hiding this comment

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

Just some small comments!

lib/src/over_react_test/common_component_util.dart Outdated Show resolved Hide resolved
lib/src/over_react_test/common_component_util.dart Outdated Show resolved Hide resolved
lib/src/over_react_test/common_component_util.dart Outdated Show resolved Hide resolved
lib/src/over_react_test/jacket.dart Outdated Show resolved Hide resolved
lib/src/over_react_test/jacket.dart Outdated Show resolved Hide resolved
lib/src/over_react_test/react_util.dart Outdated Show resolved Hide resolved
lib/src/over_react_test/react_util.dart Outdated Show resolved Hide resolved

/// Clears the list of [ValidationUtil.warn]ings that have been recorded since
/// [startRecordingValidationWarnings] was first called.
///
/// > Related: [getValidationWarnings]
void clearValidationWarnings() {
_validationWarnings.clear();
if (_validationWarnings == null) {
throw StateError('Need to call startRecordingValidationWarnings() first.');
Copy link
Contributor

Choose a reason for hiding this comment

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

We love a helpful error message 😍

test/over_react_test/jacket_test.dart Show resolved Hide resolved
test/over_react_test/utils/shadow_nested_component.dart Outdated Show resolved Hide resolved
Copy link
Contributor

@greglittlefield-wf greglittlefield-wf left a comment

Choose a reason for hiding this comment

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

  • Changes look good
  • CI passes
  • We'll do more consumer testing before we merge the WIP branch

+10


setUpAll(() {
nodesBefore = document.body.children.toSet();
nodesBefore = document.body!.children.toSet();
Copy link
Contributor

Choose a reason for hiding this comment

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

i understand that sure a document might not have a body but given how often that is a case this feels ridiculous lol

Copy link
Contributor Author

Choose a reason for hiding this comment

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

lol true

Copy link
Contributor

@kealjones-wk kealjones-wk left a comment

Choose a reason for hiding this comment

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

+1
Looks like null safe dart to me!

@greglittlefield-wf greglittlefield-wf merged commit 9026c1c into v3_wip Jan 23, 2024
10 checks passed
@sydneyjodon-wk sydneyjodon-wk deleted the null-safety branch January 23, 2024 18:51
@sydneyjodon-wk sydneyjodon-wk restored the null-safety branch January 23, 2024 19:44
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.

6 participants