Skip to content

Conversation

@loay
Copy link
Contributor

@loay loay commented Jul 26, 2016

@loay
Copy link
Contributor Author

loay commented Jul 26, 2016

@superkhau @0candy PTAL


!intl/
intl/*
!intl/en/
Copy link
Member

Choose a reason for hiding this comment

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

It should be ordered like this: (Thats my two cents)

build/
reports/
!intl/
intl/*
!intl/en/

# Node.js
node_modules/
npm-debug.log

# Mac OS X
.DS_Store

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's not bikeshed here. It's going to work wherever you add it (and there is no convention for .gitignores across all LoopBack projects yet -- maybe we should come up with one and then fix them all at that time).

build/
reports/
!intl/
intl/*
!intl/en/

This part isn't alphabetized correctly in your example anyways.

Copy link
Member

@Amir-61 Amir-61 Jul 27, 2016

Choose a reason for hiding this comment

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

Let's not bikeshed here.

Sure!

But basically I did not mean alphabetical order; I mean order based on the categories

...
# Node.js
...
# Mac OS X
...

Copy link
Contributor

@superkhau superkhau Jul 27, 2016

Choose a reason for hiding this comment

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

IMO, if we actually went with it, it should be a combination of both. Categories and alphabetically inside each category. Anyways, enough 🚲 🏠 ;)

@jannyHou
Copy link

From CI it fails due to

 assert.js:86
  throw new assert.AssertionError({
        ^
AssertionError: *** setRootDir: Intl dir not found under: /mnt/jenkins/workspace/loopback-component-oauth2/6d9b883b/lib

It might be fixed by rerun
slt-globalize -e and alt-globalize -l each time before you commit your change.

var layer = stack[idx++];
if (!layer) { return cb(); }

Copy link
Member

@Amir-61 Amir-61 Jul 26, 2016

Choose a reason for hiding this comment

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

Nitpick: Please revert back unrelated changes everywhere.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Amir-61 : to save you time .. that’s not unrelated code .. that was pushed by the 2 lines of globalization on top, then by linting .. Not mine

Copy link
Member

Choose a reason for hiding this comment

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

@loay I see, probably we should have added eslint which could take care of all of these things before...

@Amir-61
Copy link
Member

Amir-61 commented Jul 26, 2016

@loay

I had a quick review; I see lots of unrelated changes in this PR; please revert back unrelated changes like adding extra blank lines or removing blank lines,...


var SG = require('strong-globalize');
var g = SG();
/**
Copy link
Contributor

Choose a reason for hiding this comment

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

These two lines have to be first in the file.

@rmg
Copy link
Member

rmg commented Jul 27, 2016

@slnode test please


req.oauth2.redirectURI = redirectURI;

Copy link
Contributor

Choose a reason for hiding this comment

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

unrelated

@loay
Copy link
Contributor Author

loay commented Jul 28, 2016

@superkhau concerning all the unrelated ones, when you add the globalization declaration on top of each file, it automatically deletes/adds a line. They actually cancel each other out, since it is -/+, but they are still there somehow.
Anyways there is a linting PR ready to go once this one is merged.

// restricted by GSA ADP Schedule Contract with IBM Corp.

var SG = require('strong-globalize');
var g = SG();
Copy link
Contributor

Choose a reason for hiding this comment

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

single line

@superkhau
Copy link
Contributor

@loay Bunch of nitpicks, but otherwise LGTM. As for the unrelated changes, maybe you should submit a PR running eslint, get that merged in, then rebase this PR so all those other edits will dissappear. Anyways, it's not a big deal since I looked at those changes during this review and they're all whitespace anyways. I'll leave it up to your discretion for what to do from here. 🚢

@loay
Copy link
Contributor Author

loay commented Jul 28, 2016

@superkhau Thanks. I know it was a long review :)

@loay loay merged commit 3928b8c into master Jul 28, 2016
@loay loay deleted the globalization branch July 28, 2016 19:47
@loay loay removed the #review label Jul 28, 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.

6 participants