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

OutOfScopeExceptions that list the scope and stricter enforcement so Blades cant depend on Blades in the Aspect scope #1318

Merged
merged 15 commits into from
Apr 10, 2015

Conversation

andy-berry-dev
Copy link
Member

Fixes #1232 and #565.

  • The out of scope exception now lists the valid scopes for dependencies
  • Scope enforcement is stricter - the location of the dependant file is checked to ensure it's within the scope of the source file in addition to being in the current bundlable scope

I've had to add a Asset.isLogicalAsset() so we can determine whether the enforcement above can be applied as things like Alias assets can depend on assets outside of the scope and the Alias Registry depends on AliasData which is outside of it's scope. @dchambers or @james-shaw-turner can you review this?

This is based on the API changes branch (#1277) and should be merged in after that PR.

@dchambers
Copy link
Contributor

@andyberry88, am I right in assuming that only the last four commits (#d8c9c60, #482f653, #0cb20d7 & #3646226) needed dev-reviewing?

That being the case, this has now been reviewed...

@andy-berry-dev
Copy link
Member Author

Yep, only the last few commits need reviewing since this branch was based on the API changes branch.

ccpetercc added a commit that referenced this pull request Apr 10, 2015
…32+565

OutOfScopeExceptions that list the scope and stricter enforcement so Blades cant depend on Blades in the Aspect scope
@ccpetercc ccpetercc merged commit c7e3cae into develop Apr 10, 2015
@andy-berry-dev andy-berry-dev deleted the out-of-scope-exception-1232+565 branch April 10, 2015 13:05
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.

3 participants