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-4451 Reorder suggestors and improve the UI factory ignore remover #26

Merged
merged 2 commits into from
Feb 26, 2019

Conversation

evanweible-wf
Copy link
Contributor

Description

@maxwellpeterson-wf reported a bug with the codemod where it is possible for certain suggestors to suggest overlapping patches, which is disallowed by the codemod runner. To avoid this, we can simply break up the suggestor list into a few more "phases" that run sequentially. In particular, the cleanup suggestors that remove the backwards-compat-only stuff can be run in their own aggregate suggestor after the other suggestors.

Also included an improvement to the UI factory ignore comment remover that rewrites less (meaning that if you have a factory with a really large doc comment on it, the suggestor won't include that in the diff).

Testing

  • CI passes
  • Smoke test the dart2_upgrade codemod with and without --backwards-compat on a few large over_react consumers

@rmconsole6-wk rmconsole6-wk changed the title Reorder suggestors and improve the UI factory ignore remover CPLAT-4451 Reorder suggestors and improve the UI factory ignore remover Feb 26, 2019
@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.

@georgelesica-wf
Copy link
Contributor

+1

@evanweible-wf
Copy link
Contributor Author

QA +1

  • CI passes
  • Tested against WSD and a few other internal projects

@evanweible-wf
Copy link
Contributor Author

@Workiva/release-management-p

@rmconsole7-wk rmconsole7-wk merged commit 9969860 into master Feb 26, 2019
@rmconsole7-wk rmconsole7-wk deleted the reorder_suggestors branch February 26, 2019 21:52
evanweible-wf added a commit that referenced this pull request Feb 26, 2019
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