Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

feat(chat): Modify chat module to implement johnpapa styleguide. #1122

Merged
merged 1 commit into from
Dec 31, 2015

Conversation

rhutchison
Copy link
Contributor

I know this will further stir the pot about which guidelines the project should follow, but the intention is not to delay progress, and instead push forward.

This is not up for debate - but I will take constructive feedback.

@rhutchison rhutchison changed the title [WIP] - Chat Module (styleguide) Chat Module (styleguide) Dec 30, 2015
});

// Remove the event listener when the controller instance is destroyed
$scope.$on('$destroy', function () {
Copy link
Member

Choose a reason for hiding this comment

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

can we abstract this out into a service?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That can be a separate PR?

Copy link
Member

Choose a reason for hiding this comment

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

Agreed. That should be a separate PR.

Copy link
Member

Choose a reason for hiding this comment

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

Since this is a styling refactor, I thought it would be good to address this as well; if we're strictly adhering to John Papa's style-guide. Might be worthwhile to start the precedent now, with regards to SOC & moving things out into services that shouldn't be in controllers.

It's ok if you want to leave this here though. I don't feel super strong about it :)

@ilanbiala ilanbiala added this to the 0.5.0 milestone Dec 30, 2015
@ilanbiala
Copy link
Member

LGTM mostly, @lirantal @codydaig 👀?

@codydaig
Copy link
Member

I would like to see scope changed to $scope in the tests. But otherwise, LGTM.

@codydaig codydaig self-assigned this Dec 30, 2015
@mleanos
Copy link
Member

mleanos commented Dec 30, 2015

@codydaig What's the reasoning behind changing scope to $scope? Just to follow suit with the other services? If that's the case, then I'd say we should remove the "$" from the others.

@trainerbill
Copy link
Contributor

LGTM, if it helps. excited to see progress on standards

@codydaig
Copy link
Member

@mleanos It's to match how they are actually used. And in the code, it's referred too as $scope, so I don't think we should be changing how we reference it in the tests.

@ilanbiala
Copy link
Member

Yeah definitely change to $scope

@ilanbiala
Copy link
Member

I think this PR is fine, and we can immediately add another PR for the service @mleanos referred to. @codydaig once the $scope change is made and the commit message is reworded, LGTM and you can merge.

@codydaig
Copy link
Member

@mleanos @ilanbiala @trainerbill I think that's the last piece holding up #874 as well is the $ in front of variables and maybe one of the controller/service names.

@mleanos
Copy link
Member

mleanos commented Dec 30, 2015

@codydaig This PR is related to #874? Or you mean the changes we want here are similar to what we have left on #874? I'm eager to get that merged.

Thanks for clarifying about the $. That seems right to me too.

@ilanbiala
Copy link
Member

Similarity of the $.

@rhutchison
Copy link
Contributor Author

@ilanbiala @codydaig good to merge?

@ilanbiala
Copy link
Member

@rhutchison @codydaig LGTM, just fix the commit message so it follows these guidelines https://github.com/meanjs/mean/blob/master/CONTRIBUTING.md#commit-message-guidelines

@rhutchison rhutchison changed the title Chat Module (styleguide) feat(chat): Modify chat module to implement johnpapa styleguide. Dec 31, 2015
@mleanos
Copy link
Member

mleanos commented Dec 31, 2015

LGTM. I took it for a test drive, and everything looks good, and is working as expected.

Thanks @rhutchison

@codydaig
Copy link
Member

LGTM.

Thanks @rhutchison!!!

codydaig added a commit that referenced this pull request Dec 31, 2015
feat(chat): Modify chat module to implement johnpapa styleguide.
@codydaig codydaig merged commit a89d82f into meanjs:master Dec 31, 2015
@rhutchison rhutchison deleted the chat-styleguide branch December 31, 2015 20:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants