Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
ember-cli-deprecation-workflow @robdel12 1
Slide 2
Slide 2 text
Who has seen this before? 2
Slide 3
Slide 3 text
3
Slide 4
Slide 4 text
The deprecation warnings can be overwhelming. 4
Slide 5
Slide 5 text
But that’s okay. 5
Slide 6
Slide 6 text
ember-cli-deprecation- workflow to the rescue! 6
Slide 7
Slide 7 text
Let’s get set up. 7
Slide 8
Slide 8 text
Run `ember install ember-cli- deprecation-workflow` in your ember cli project. 8
Slide 9
Slide 9 text
Create the config file: `config/deprecation-workflow.js` 9
Slide 10
Slide 10 text
Run your test suite with the server: `ember test - - server` 10
Slide 11
Slide 11 text
After the tests finish run `deprecationWorkflow.flushDeprecations() ` in the browser console. 11
Slide 12
Slide 12 text
Paste the output into your deprecation-workflow config file you created. 12
Slide 13
Slide 13 text
13
Slide 14
Slide 14 text
Why is this awesome? 14
Slide 15
Slide 15 text
Change one object from “silence” to “throw”. 15
Slide 16
Slide 16 text
16
Slide 17
Slide 17 text
This will raise an exception when a deprecation is thrown. 17
Slide 18
Slide 18 text
And give a stack trace. 18
Slide 19
Slide 19 text
Click that link to see the offending code. 19
Slide 20
Slide 20 text
20
Slide 21
Slide 21 text
You can break each deprecation into a commit. 21
Slide 22
Slide 22 text
It allows you to focus on one problem at a time. 22
Slide 23
Slide 23 text
Lather, rinse, repeat. 23
Slide 24
Slide 24 text
Limitations • Doesn’t work with deprecations in vendor.js1 • Only catches deprecations ran in the browser2 24
Slide 25
Slide 25 text
Go forth and upgrade! 25
Slide 26
Slide 26 text
Wifi name: spiceworksguest Password: R2d2C3p0