8000 Remove constraint making isStatic required by 0candy · Pull Request #2174 · strongloop/loopback · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Remove constraint making isStatic required #2174

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

Merged
merged 1 commit into from
Mar 31, 2016
Merged

Conversation

0candy
Copy link
Contributor
@0candy 0candy commented Mar 28, 2016

key = isStatic ? key : m[1];
meta.isStatic = isStatic;
} else {
if (meta.isStatic && m) {
Copy link
Member

Choose a reason for hiding this comment

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

Nitpick: the new block {...} starting on L268 is not necessary, it adds extraneous nesting. Here is a version that I consider cleaner:

if (typeof meta.isStatic !== 'boolean') {
  // ...
} else if (meta.isStatic && m) {
  // ...
} else {
  // ...
}

@bajtos
Copy link
Member
bajtos commented Mar 29, 2016

@0candy one more thing, please add an entry to 3.0-RELEASE-NOTES.

@bajtos bajtos assigned 0candy and unassigned bajtos Mar 29, 2016
@0candy 0candy assigned bajtos and unassigned 0candy Mar 30, 2016
http: { path: '/instance' }
}
```
Copy link
Member

Choose a reason for hiding this comment

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

Please add a link to this pull request, to make it easier for readers to look up discussions that led to this change. AFAICT, other entries include a link to the relevant pull request too.

@bajtos
Copy link
Member
bajtos commented Mar 30, 2016

@0candy one last comment to address. When you fix it, please squash the commits and land the patch, no need for more reviews.

Some of the CI builds are failing, please check that these failures are not caused by your change.

@bajtos bajtos assigned 0candy and unassigned bajtos Mar 30, 2016
@bajtos
Copy link
Member
bajtos commented Mar 30, 2016

The Travis build is failing because we haven't released a new juggler version with loopbackio/loopback-datasource-juggler@0d11186. We are withholding 2.x releases until @Amir-61 finishes his work on replaceOrCreate feature, to ensure we won't need to change the implementation that is already there in a backwards-incompatible way.

@0candy 0candy force-pushed the change_remote_method branch 2 times, most recently from 7bba791 to 6157a3d Compare March 30, 2016 15:14
@0candy 0candy force-pushed the change_remote_method branch from 6157a3d to b5b900e Compare March 30, 2016 15:17
@0candy 0candy merged commit 982b8ac into master Mar 31, 2016
@0candy 0candy deleted the change_remote_method branch March 31, 2016 13:59
@0candy 0candy removed the #review label Mar 31, 2016
@lehni
Copy link
Contributor
lehni commented Jul 29, 2017

@0candy, @bajtos please note that this change has cause a new issue, see #3529

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
0