Skip to content

AF-1387 Remove dart:mirrors & SerializableModule #113

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
merged 4 commits into from
Sep 13, 2018

Conversation

robbecker-wf
Copy link
Member

@robbecker-wf robbecker-wf commented Jun 8, 2018

Overview

Dart 2 removes dart:mirrors support when compiled to JS. So we're removing usage of dart:mirrors
This is a breaking change since it is a removal of multiple publicly exposed classes.

The only affected consumers are updated. (w_viewer and w_viewer_mobile.)
PRs are https://github.com/Workiva/w_viewer/pull/528 and https://github.com/Workiva/w_viewer_mobile/pull/32

Release plan (remove breaking change risk)

  • Review, merge, and tag w_viewer major version 9.0.0
  • Consume w_viewer 9 in w_viewer_mobile
  • Release w_viewer_mobile
  • Release mobile apps

Remove dart:mirrors from product lines + unified (unblock dart 2)

  • Review, merge this PR
  • Tag w_module 2.0
  • Consume w_module 2.0 in all tier 1 projects

@robbecker-wf robbecker-wf requested a review from a team as a code owner June 8, 2018 15:37
@robbecker-wf robbecker-wf requested a review from a team June 8, 2018 15:37
@aviary-wf
Copy link

aviary-wf commented Jun 8, 2018

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 HipChat: InfoSec Forum.

@todbachman-wf
Copy link
Member

todbachman-wf commented Jun 8, 2018

Why is serializable module being removed? Well, I mean that I see it uses mirrors, but are there no consumers for it at this point? Or do they have an alternative?

@robbecker-wf
Copy link
Member Author

SerializableModule is only used for the mobile viewer https://github.com/search?q=org%3AWorkiva+SerializableModule&type=Code .. I'm spiking out reimplementing that native/dart bridging without reflection in https://github.com/Workiva/w_viewer_mobile/pull/32 and https://github.com/Workiva/w_viewer/pull/528

@robbecker-wf robbecker-wf changed the title WIP remove dart:mirrors & SerializableModule Remove dart:mirrors & SerializableModule Jun 19, 2018
@rmconsole2-wf rmconsole2-wf changed the title Remove dart:mirrors & SerializableModule AF-1387 Remove dart:mirrors & SerializableModule Jun 19, 2018
@codecov-io
Copy link

codecov-io commented Jun 22, 2018

Codecov Report

Merging #113 into master will increase coverage by 2.67%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #113      +/-   ##
==========================================
+ Coverage   93.49%   96.16%   +2.67%     
==========================================
  Files           4        3       -1     
  Lines         369      287      -82     
==========================================
- Hits          345      276      -69     
+ Misses         24       11      -13

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e2976ab...17a5586. Read the comment docs.

@evanweible-wf evanweible-wf changed the base branch from master to 2.0.0-wip August 6, 2018 15:29
@evanweible-wf evanweible-wf reopened this Aug 6, 2018
@jayudey-wf
Copy link
Contributor

+1

@jayudey-wf
Copy link
Contributor

+10

  • code intended to be removed (which constitutes a breaking change, which this has been marked as) was

@maxwellpeterson-wf
Copy link
Member

QA +1

@Workiva/release-management-pp

@robbecker-wf
Copy link
Member Author

+1 on Max's commits

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.

9 participants