Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@superkhau
Copy link
Contributor

@superkhau
Copy link
Contributor Author

@slnode test please


if(!phase.__isPhase__) {
throw new Error('Cannot add a non phase object to a PhaseList');
throw new Error(g.t('Cannot add a non phase object to a PhaseList'));
Copy link
Contributor

Choose a reason for hiding this comment

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

Add {{}} for {{PhaseList}}

@0candy 0candy removed their assignment Jul 22, 2016
package.json Outdated
"async": "^0.9.0",
"debug": "^2.1.0"
"debug": "^2.1.0",
"strong-globalize": "^2.5.5"
Copy link
Contributor

Choose a reason for hiding this comment

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

2.5.6 fixed the swagger-client bug you were seeing yesterday

@superkhau
Copy link
Contributor Author

superkhau commented Jul 23, 2016

@0candy Updated, review again pls.

@superkhau superkhau assigned 0candy and unassigned superkhau Jul 23, 2016

if(!phase.__isPhase__) {
throw new Error('Cannot add a non phase object to a PhaseList');
throw new Error(g.t('Cannot add a non phase object to a {{PhaseList}}'));
Copy link
Contributor

@0candy 0candy Jul 25, 2016

Choose a reason for hiding this comment

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

You have to run slt-globalize -e again for intl/en/messages.json to get updated with the brackets change.

@superkhau
Copy link
Contributor Author

@0candy Updated, PTAL again.

@0candy
Copy link
Contributor

0candy commented Jul 25, 2016

The change itself LGTM.
But there is a globalize error right now, all the CI tests fail.

  throw new assert.AssertionError({
        ^
AssertionError: Not supported: en
    at loadGlobalize (/mnt/jenkins/workspace/loopback-component-push/cdcdef7b/node_modules/strong-globalize/lib/globalize.js:354:3)
    at Object.setDefaultLanguage (/mnt/jenkins/workspace/loopback-component-push/cdcdef7b/node_modules/strong-globalize/lib/globalize.js:100:3)
    at new StrongGlobalize (/mnt/jenkins/workspace/loopback-component-push/cdcdef7b/node_modules/strong-globalize/index.js:27:41)
    at StrongGlobalize (/mnt/jenkins/workspace/loopback-component-push/cdcdef7b/node_modules/strong-globalize/index.js:25:12)
    at Object.<anonymous> (/mnt/jenkins/workspace/loopback-component-push/cdcdef7b/lib/providers/apns.js:11:9)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)

So please don't merge yet.

@0candy
Copy link
Contributor

0candy commented Jul 26, 2016

Please fix this too: strongloop/loopback-component-push#118 (comment)

@rmg
Copy link
Member

rmg commented Jul 27, 2016

@slnode test please

@rmg
Copy link
Member

rmg commented Jul 27, 2016

@0candy the strong-globalize problem has been resolved. This PR is now failing on one of the tests, which looks like it needs to be updated to accept the translated string:

  29 passing (54ms)
  1 failing

  1) PhaseList phaseList.addAfter throws when the "after" phase was not found:
     AssertionError: expected [Function] to throw error matching /unknown-phase/ but got 'Unknown phase: %'
      at Context.<anonymous> (test/phase-list.test.js:146:18)

@0candy
Copy link
Contributor

0candy commented Jul 27, 2016

@superkhau Please fix the line that @rmg pointed out. Thanks.

@0candy 0candy assigned superkhau and unassigned 0candy Jul 27, 2016
@superkhau superkhau force-pushed the globalization branch 2 times, most recently from 817b3fa to bcf77a4 Compare July 28, 2016 20:36
@superkhau
Copy link
Contributor Author

@gunjpan @richardpringle PTAL, updated with latest conventions.

@superkhau
Copy link
Contributor Author

@rmg Tons of unrelated failures in this PR. Can you provide some insight? It seems like some NPM registry doesn't contain loopback according to the errors.

@rmg
Copy link
Member

rmg commented Jul 29, 2016

@slnode test please

@rmg
Copy link
Member

rmg commented Jul 29, 2016

@superkhau they look like they are probably related to high load. Looking at the file dump from the ephemeral registry they were using, there were 6 partial copies of loopback mid-cache, so I think it just sort of choked on all the downstream jobs running at the same time.

On the upside, if you look at the cis-jenkins downstream jobs, those are the ones that are actually version aware, so only downstream modules that actually use this version of loopback-phase were triggered. And those all passed :-)

@superkhau
Copy link
Contributor Author

On the upside, if you look at the cis-jenkins downstream jobs, those are the ones that are actually version aware, so only downstream modules that actually use this version of loopback-phase were triggered. And those all passed :-)

👍 That's a definition plus as the ones actually failing are unrelated and the ones I care about are passing on cis-jenkins. Thanks for checking, I'm gonna merge as I feel this is safe enough. ;)

var ix = this.getPhaseNames().indexOf(after);
if (ix === -1) {
throw new Error('Unknown phase: "' + after + '"');
throw new Error(g.f('Unknown phase: %', after));
Copy link
Contributor

Choose a reason for hiding this comment

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

@superkhau : this should be:
throw new Error(g.f('Unknown phase: %s', after));

@gunjpan
Copy link
Contributor

gunjpan commented Jul 29, 2016

@superkhau: Reviewed. Few nit-picks, otherwise, LGTM.

@superkhau
Copy link
Contributor Author

@gunjpan @richardpringle Updated. PTAL again.

@richardpringle
Copy link

LGTM

@superkhau superkhau merged commit a306815 into master Aug 4, 2016
@superkhau superkhau deleted the globalization branch August 4, 2016 07:59
@superkhau superkhau removed the #review label Aug 4, 2016
@richardpringle richardpringle removed their assignment Aug 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants