Pitfalls of 'together': A case study
@patrickberkeley wrote: Preface: The goal of the following is to create a discussion on – or at minimum get people thinking about – the potential downsides of something the Ember community typically...
View ArticleWhy does a newly created record has hasDirtyAttributes to true?
@Frank wrote: I’m creating a record using store.createRecord('record'); which is part of another record with a belongsTo relationship. When I create this record, it gets created with...
View ArticleEmber.js - The Ember Times - Issue No. 140
@ember-blog wrote: 👋 Emberistas! 🐹 Meet Ember 3.17 🆕, tell us about your EmberConf experience ❤️, read about testing best practices on the Ember Testing Guide 📗, comment on the co-located test RFC ⛓,...
View ArticleHow to get answer from a certain post?
@Yeevon wrote: This is my post model. `import DS from 'ember-data'; const { Model } = DS; export default Model.extend({ title: DS.attr('string'), description: DS.attr('string'), file: DS.attr(),...
View Article"ember-cli-update" updated app - but also created 5 new ones!
@larryh wrote: I have been using ember-cli-update for years and it has always worked fine. I just used it again, going from 3.15 to 3.17. It changed the following files in my current project:...
View ArticleSerialization of deeply nested object
@Karol wrote: Hi, I have a model class Item which looks like this: export default class ItemModel extends Model { @attr name; @attr description; @attr quantityInfo; } QuantityInfo has some nested...
View Articlehow do i stub/mock performance.now() using sinon.js?
@kumar_b wrote: I am writing unit tests in Ember-qunit. I want to set a custom value on performance.now. I tried sinon.stub(performance,'now', 60000); but this didn’t work. I get TypeError: stub(obj,...
View ArticleGetting "Could not find module `ember-resolver`" error
@larryh wrote: Hi, I just upgraded ember from 3.15 to 3.17, along with several other addons that had newer versions. (I’m also using node 13. 3.0, if that’s relevant.) It works fine in Dev Mode and...
View ArticleWay to fetch nested model
@tellsun2019 wrote: I have a couple of models. From the user model is to possible to fetch just the name model? Basically I want to generate this call in the router. /users/id/names i checked a few...
View ArticlePassing down actions to child components
@Benjy1979 wrote: Hi, In the previous versions of ember.js you could pass actions down from a current component like {{mycomponent myaction=(action "clickCategory) }} Then you could go into...
View ArticleIs there an equivelent of splattributes for the {{component}} helper?
@mattmcmanus wrote: Hey Folks, So I’d like to be able to take an object that I have, eg test = { foo: 'bar', hobbit: 'narnia' } and pass it, splattribute style, to the component helper: {{component...
View ArticleUpgrading Ember Project
@sanshou wrote: So I have been spending the day upgrading our project from version 2.16.2. I made it all the way to 3.3 and then jumped to 3.6. But when it would build and our sandbox would load, the...
View ArticleEmber.js - The Ember Times - Issue No. 141
@ember-blog wrote: 👋 Emberistas! 🐹 Yehuda's Octane Tutorial 🔥, a quick tip for refactoring your templates 📑, dive into angle and curly bracket invocations 🔍, easier porting of websites with Percy ✨,...
View ArticleCreating a running total from server data
@ninjatronic wrote: My server returns a list of daily updates and I would like to create a running total from those updates to display on my page. At the moment I have that logic in the model hook on...
View ArticleAssertion Error : App Version has already been registered
@Sridhar_Murali wrote: Im using ember to develop a project. Please help me with this error. Im unable to run my project on local. After hitting ember server the build is successful. But on hitting the...
View ArticleRender-modifiers
@Benjy1979 wrote: When I try to use {{did-insert this.initialiseCategory}}, in my initialiseCategory function (which does get called) there is no “this”… it’s undefined. Any ideas?...
View ArticleCSS Transition on conditional block
@Benjy1979 wrote: Hi, If I have something like: {{#if @category.categoryIsOpen}} <li class="section1_furniture"> <h3 class="instruction">{{this.instruction}}</h3> {{#if...
View ArticleTesting strategy advice?
@Gaelan wrote: (topic withdrawn by author, will be automatically deleted in 24 hours unless flagged) Posts: 1 Participants: 1 Read full topic
View ArticleTesting strategy for legacy app with tightly coupled backend
@Gaelan wrote: I’m working on cleaning up a legacy ember app from a few years ago, and I’m hoping to write some tests to ensure my cleanup doesn’t break anything (it currently has no tests at all)....
View ArticleEmber Octane generate component -gc errors 3.17.1
@StuartGuthrie wrote: Hi there, I’m trying to generate new octane components js and hbs. I do this: ember g component foo -gc It works in terms of adding them both to app/components/foo.js...
View Article