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

Upgrades, Tests #46

Conversation

NullVoxPopuli
Copy link
Contributor

Initial work for: emberjs/rfcs#339

Thanks to @MartinMalinda and @knownasilya for doing some additional work :)

TODO:

  • add @MartinMalinda's acceptance tests / more fleshed-out dummy app
  • add <Link /> Component that has a default implementation similar to that of {{link-to}} (but with no positional params)
  • add acceptance tests using <Link /> component.

@rwjblue
Copy link
Member

rwjblue commented Aug 30, 2018

I'd like to land the upgrades and fixes for existing functionality separately from new features. In other words, lets add <Link /> in a separate PR...

@NullVoxPopuli
Copy link
Contributor Author

@rwjblue sounds good to me.

Any idea what's going on with the tests?

@NullVoxPopuli
Copy link
Contributor Author

Also, would you want the acceptance tests added before this PR should be considered 'done'?

@rwjblue
Copy link
Member

rwjblue commented Aug 30, 2018

personally I'd land the upgraded blueprint stuff first, then additional tests, then any other fixes/work, then new features

But I'm very grateful for the help any way you want to do it...

@rwjblue
Copy link
Member

rwjblue commented Aug 30, 2018

CI seems to be having fits due to npm issues, can you make sure that config/ember-try.js has useYarn: true set?

@NullVoxPopuli
Copy link
Contributor Author

@rwjblue there are blueprints? (or do you mean for MU stuff?)

@NullVoxPopuli
Copy link
Contributor Author

so, since this PR is mostly upgrades, I could do a separate PR for each of the open issues :)
though, I think #4 and #9 may be addressed by this PR

@NullVoxPopuli NullVoxPopuli changed the title WIP: Upgrades, Tests, work towards RFC Proposal 339 WIP: Upgrades, Tests Aug 30, 2018
@NullVoxPopuli
Copy link
Contributor Author

yay the tests passed!

@NullVoxPopuli
Copy link
Contributor Author

so, @rwjblue what more would you like to see in this PR?

MODULE_REPORT.md Outdated
@@ -0,0 +1,14 @@
## Module Report
Copy link
Member

Choose a reason for hiding this comment

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

Please remove this file (I'd prefer not to check it in)...

README.md Show resolved Hide resolved

compute(_params) {
let params = handleQueryParams(_params);
return this.get('router').isActive(...params);
},

init() {
Copy link
Member

Choose a reason for hiding this comment

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

Please move init above compute...


compute(params) {
return new RouteParams(this.get('router'), params);
},

init() {
Copy link
Member

Choose a reason for hiding this comment

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

init should be the first method, can you move it up?

package.json Outdated
"test": "yarn ember test",
"test:all": "ember try:each",
"ember": "./node_modules/.bin/ember",
"ember:update": "./node_modules/.bin/ember-cli-update"
Copy link
Member

Choose a reason for hiding this comment

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

Please remove

package.json Outdated
"start": "yarn ember serve",
"test": "yarn ember test",
"test:all": "ember try:each",
"ember": "./node_modules/.bin/ember",
Copy link
Member

Choose a reason for hiding this comment

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

This is superfluous with yarn (you can run yarn ember without any changes to scripts).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is mindblowing. thank you. lol

package.json Outdated
"ember-cli-sri": "^2.1.0",
"ember-cli-uglify": "^1.2.0",
"ember-cli-uglify": "^2.0.0",
"ember-cli-update": "^0.23.0",
Copy link
Member

Choose a reason for hiding this comment

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

please remove, ember-cli-update should only be installed globally IMO

Copy link
Contributor Author

Choose a reason for hiding this comment

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

aight. personally, because I have so many projects with different versions of things, I try to use local bins as much as possible

Copy link
Member

Choose a reason for hiding this comment

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

Generally I feel the same way, but with ember-cli-update you never want an older version

Whenever it is used it should be installed again (to get all the bug fixes, new codemods, etc)...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

does ember-cli-update check itself for updates?
(maybe that's something I could submit a PR for if it doesn't already exist)

Copy link
Member

Choose a reason for hiding this comment

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

I can't recall, but I think that was recently added....

@NullVoxPopuli
Copy link
Contributor Author

@rwjblue changes applied

@rwjblue rwjblue merged commit 450fe02 into adopted-ember-addons:master Aug 31, 2018
@NullVoxPopuli NullVoxPopuli deleted the upgrades-and-work-on-link-rfc branch August 31, 2018 16:11
@NullVoxPopuli NullVoxPopuli changed the title WIP: Upgrades, Tests Upgrades, Tests Aug 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants