Skip to content

Conversation

@bajtos
Copy link
Member

@bajtos bajtos commented Aug 31, 2016

The first two commits fix issues discovered by strong-remoting's duplicate checker.

The last commit reworks model registration to use the new strong-remoting API.

Requires strongloop/strong-remoting#343

to: @gunjpan @richardpringle @deepakrkris Please review.
cc: @ritch @STRML @0candy @davidcheung

Connect to strongloop-internal/scrum-loopback#885

TODO before merging

@bajtos
Copy link
Member Author

bajtos commented Aug 31, 2016

@slnode test please

@bajtos
Copy link
Member Author

bajtos commented Aug 31, 2016

@0candy actually I think you were right, the CI is failing because it installs strong-remoting version that does not contain strongloop/strong-remoting#343

>> TypeError: this.remotes(...).defineObjectType is not a function
>>   at EventEmitter.app.model (D:\workspace\loopback\68dfec3a\lib\application.js:155:20)

this.models().push(Model);

if (isPublic && Model.sharedClass) {
this.remotes().defineObjectType(Model.modelName, function(data) {
Copy link
Member

Choose a reason for hiding this comment

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

Ah this is what I was missing

@Amir-61
Copy link
Member

Amir-61 commented Sep 9, 2016

Hey Miroslav,

Once merge conflicts are solved I would also run tests locally to make sure with npm link with your branch in strongloop/strong-remoting#343 they all pass.

  • Did you leave the changes with three commits on purpose? Shouldn't we squash them as one single commit?

Fix a typo in "app.enableAuth" that caused the method to not detect
the situation when e.g. the built-in User model is already attached
to a datasource.
@bajtos bajtos force-pushed the feature/coercion-overhaul branch from 8262059 to 6e1defc Compare September 9, 2016 08:01
@bajtos
Copy link
Member Author

bajtos commented Sep 9, 2016

Did you leave the changes with three commits on purpose? Shouldn't we squash them as one single commit?

Yes, I left multiple commits purposefully. each of the commit fixes a problem that's not related to the new type registry, even though it was discovered while making the upgrade.

@bajtos
Copy link
Member Author

bajtos commented Sep 9, 2016

test please

@bajtos
Copy link
Member Author

bajtos commented Sep 9, 2016

Windows CI is failing because PhantomJS cannot start, everything else is green now. I am going ahead and will land the patch.

@bajtos bajtos merged commit 252b6f4 into master Sep 9, 2016
@bajtos bajtos deleted the feature/coercion-overhaul branch September 9, 2016 08:34
@bajtos bajtos removed the #review label Sep 9, 2016
@richardpringle richardpringle removed their assignment Sep 12, 2016
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.

10 participants