question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dependencies between engines

See original GitHub issue

We have the following architecture:

  • A core ember-cli app
  • Multiple ember-engines, let’s name them A and B

Basically engine A has an dependency to engine B due the fact that A requires a model which is declared in B.

Unfortunately this doesn’t seem to work (model not found).

Is there any way how engine A can access a model of engine B? Maybe through declaring this dependency?

This is urgent, so we’re thankful for any advice.

Thanks for your time and work!

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:17 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
mydeacommented, Mar 8, 2017

You can use ember-cli-mirage in engines. I created an addon for my app, e.g. my-app-test-helpers, including the mirage definitions. You can then hook them up in each of your engines like this: https://github.com/samselikoff/ember-cli-mirage/issues/920

This way, I have acceptance tests in each engine for the application parts of this engine, but the mock server is the same for all the engines (as is the real API server)

0reactions
knownasilyacommented, Oct 19, 2017

The room model must be in the application because you are associating it with its model. Then all you need to do is pass the store to any engines that need to use house and room.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create dependencies between network objects automatically
Auto Dependency calculates node-to-node dependencies based on topology connections. First it determines the root node of each polling engine or cluster of ...
Read more >
Dependency Engine | Apache MXNet
A dependency engine is a library that takes a sequence of operations and schedules them according to the dependency pattern, potentially in parallel....
Read more >
An introduction to cross dependencies - IBM
A cross dependency is, from a logical point of view, a dependency for a local job on a job instance that is scheduled...
Read more >
The dependencies of engine parameters on average effective ...
Download scientific diagram | The dependencies of engine parameters on average effective pressure when three cylinders are switched off (n = 1800 rpm)....
Read more >
Engine Dependencies | CDP Private Cloud
Even though experiments and models are created within the scope of a project, the engines they use are completely isolated from those used...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found