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

CPLAT-7393 Add logic to handle components with mixin(s) #52

Merged
merged 2 commits into from
Sep 17, 2019

Conversation

aaronlademann-wf
Copy link
Contributor

Motivation

UIComponents with mixins could potentially be mixing in a class that implement component lifecycle methods that are unsupported in Component2.

Changes

  1. When the --no-partial-upgrades flag is false, add a /// FIXME comment to the component that has one or more mixins.
  2. When the --no-partial-upgrades flag is true, skips the upgrade for the component that has one or more mixins.

Release Notes

Add logic to handle components with mixin(s) when upgrading to UiComponent2.

Review

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

Please review: @greglittlefield-wf @kealjones-wk @sydneyjodon-wk @joebingham-wk

QA Checklist

  • Tests were updated and provide good coverage of the changeset and other affected code
  • Manual testing was performed if needed

Merge Checklist

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

  • A Client Platform 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

@aviary2-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.

Copy link
Contributor

@joebingham-wk joebingham-wk left a comment

Choose a reason for hiding this comment

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

Looks great to me!

+1

+ Add FIXME comment to components that have mixins when the no-partial-upgrades flag is false
+ Skips the upgrade for components that have mixins when the no-partial-upgrades flag is true
+ CPLAT-7393

# Conflicts:
#	lib/src/component2_suggestors/class_name_and_annotation_migrator.dart
Copy link
Contributor

@joebingham-wk joebingham-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

Copy link
Contributor

@joebingham-wk joebingham-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

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.

+10

input: '''
/// This is my current documentation comment.
///
/// As you can see it has more than one line, which is pretty great!
Copy link
Contributor

Choose a reason for hiding this comment

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

+1

render() {}
}
''',
expectedOutput: '''
Copy link
Contributor

Choose a reason for hiding this comment

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

#nit

you don't need to include expectedOutput if it is the same as the input

@kealjones-wk
Copy link
Contributor

@Workiva/release-management-p

@rmconsole2-wf rmconsole2-wf merged commit f037f7d into master Sep 17, 2019
@rmconsole2-wf rmconsole2-wf deleted the CPLAT-7393_with-not-so-much branch September 17, 2019 17:05
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