Skip to content

#588 Reading of "Getting Started" and "Services" - #590

Merged
rwjblue merged 16 commits into
ember-learn:octanefrom
muziejus:octane
Mar 15, 2019
Merged

rwjblue merged 16 commits into
ember-learn:octanefrom
muziejus:octane

Conversation

@muziejus

Copy link
Copy Markdown
Contributor

I've made what I hope are corrections to the code in these two sections. However, there are a few questions:

  1. Are components referred to as all-rentals or as <AllRentals /> when just mentioning them in the text? In these sections, the former is used.

  2. The image in "Core Concepts" uses classic curlies when invoking the rental-title component. IMO this is precisely where (in something aimed at newcomers) angle brackets should be used.

  3. Services looked untouched for octane? I corrected as much of the code as I could, but I don't know how to do this:

cart: computed(function() {
  return getOwner(this).lookup('service:shopping-cart');
})

@muziejus

Copy link
Copy Markdown
Contributor Author

This is in regards to #588

@muziejus

Copy link
Copy Markdown
Contributor Author

Additionally, in "Core Concepts," the section on "Hooks" includes a section on the Component life cycle that includes code extending @ember/component and making use of the didRender() hook (as well as referring to willRender()). If in Octane, components are all Glimmer components, then these two hooks no longer apply to components extended from @glimmer/component.

@jenweber

Copy link
Copy Markdown
Contributor

Thank you @muziejus!

@pzuraq any idea on #3?

@jenweber

Copy link
Copy Markdown
Contributor

Also, regarding how we refer to components, we have left some-name to refer to the file name in some (most?) cases unless the prose specifically refers to some line within an hbs code block.

@muziejus

Copy link
Copy Markdown
Contributor Author

Thanks. Another thing is that in the "Installing Ember" page, we see, in the description of ember-cli:

Support for ES2015/ES6 JavaScript via the Babel project. This includes support for JavaScript modules, which are used throughout this guide.

I think this is outdated, as async/await are available by default in new ember-cli apps and are used in the testing section.

Similarly, the guide links, in the quick start, to the Ponyfoo ES6 bullet points, which do not (of course) include async or await.

Since, afaict, this stuff only shows up in the testing section, maybe it's not a big deal that it's not mentioned in the getting started section.

@ghost

ghost commented Mar 13, 2019

Copy link
Copy Markdown

@muziejus indeed for point 3, I found #449 that tracks some of the work for that section.

@knownasilya

knownasilya commented Mar 13, 2019 •

Copy link
Copy Markdown
Contributor

I think it should be

import { computed } from '@ember/object';
// ..
@computed
get cart() {
  return getOwner(this).lookup('service:shopping-cart');
}

but maybe it doesn't need to be a computed property at all.

Comment thread guides/release/services/services.md Resolved
Comment thread guides/release/services/services.md Resolved
Comment thread guides/release/services/services.md Resolved
Comment thread guides/release/services/services.md Resolved
Comment thread guides/release/services/services.md Resolved
Comment thread guides/release/services/services.md Resolved
Comment thread guides/release/services/services.md Resolved
Comment thread guides/release/services/services.md Resolved
`@action` inside of a glimmer component does not allow usage of "string based action names".

@rwjblue rwjblue left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Fixup issue around lazy computed in services section.

Addresses point 3 above.

Comment thread guides/release/services/services.md Resolved
Comment thread guides/release/services/services.md Resolved
@rwjblue

rwjblue commented Mar 14, 2019

Copy link
Copy Markdown
Contributor

Once my suggestions are applied, I think this is good to go...

@muziejus

Copy link
Copy Markdown
Contributor Author

Thanks, @rwjblue

@rwjblue rwjblue left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Awesome work, thank you very much!

@rwjblue
rwjblue merged commit 48ef62c into ember-learn:octane Mar 15, 2019
@lisaychuang

Copy link
Copy Markdown

Found additional bugs in the Quickstart guide, tracked in #633

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants