Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Coding style guide modifications #907

Closed
wants to merge 20 commits into from
Closed

Coding style guide modifications #907

wants to merge 20 commits into from

Conversation

hsorellana
Copy link
Contributor

Re-write, on this instance, of the models on the application.

cc @HospitalRun/core-maintainers

icd10Code: DS.attr('string')
icd10Code: DS.attr('string'),
// Associations
patient: DS.belongsTo('patient'),
Copy link
Contributor

Choose a reason for hiding this comment

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

Trailing comma caused the eslint test to fail

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes! i run the tests locally and missed that. my bad!

Copy link
Contributor

Choose a reason for hiding this comment

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

No problem, just saw that the test output was a little noisy since I need to clean up a few validators in the tests and wasn't sure if you could find it in there. 🍹

@jkleinsc
Copy link
Member

jkleinsc commented Jan 3, 2017

@hsorellana thanks for the PR! It looks like the tests are failing. Are you still working on this PR?

@hsorellana
Copy link
Contributor Author

sorry the inactivity, @jkleinsc , i'll keep working on this PR, i had some troubles with the tests, every tool i use to run them, gives me different results, let's see how it goes now ;)

@mkly
Copy link
Contributor

mkly commented Jan 3, 2017

@hsorellana I've been working on some other stuff this week, but I have been doing a fair amount of work with the tests. If there is anything I can do to help get things working let me know. My email is available on my github profile or ping me in the slack channel if you prefer that.

@mkly
Copy link
Contributor

mkly commented Jan 3, 2017

@hsorellana One additional note. I do not want to speak for @jkleinsc but you might want to think about breaking these up in the smaller PRs. It would keep the already passing ones from getting held up by the ones that may be having issues and would probably be easier for reviewers to notice anything they might have concerns about. Thanks for all the work you have put into to these already.

@hsorellana
Copy link
Contributor Author

@mkly hey Mike! Thanks for the feedback, and probably i'll messaging you through Slack when i'm in doubt with something! Probably tests will be the main topic of my questions, i'm in my senior year at college and i've readying about tests just now, lame, i know jeje
And about that second note, i thought about that but since there a lot of models, i tossed that idea away but i'll do it this way now. Cheers! :D

@jkleinsc
Copy link
Member

jkleinsc commented Jan 4, 2017

@hsorellana no worries about the delay. As @mkly noted, smaller PRs would be better and in the case of refactoring for formatting reasons I think maybe it would be better to do one file per PR. It makes it easier on your side to make sure tests pass and easier on my side to see what has been changed

@hsorellana
Copy link
Contributor Author

@jkleinsc Hey John! I took your advice, and @mkly 's too, and divided into smaller PRs. I have two open PRs, one for the patient model, and another one with several model modifications. I did this because they are just reordering of the model attributes, and i made sure that every test passed locally before committing it to my fork repo.
I still have some modified files, locally, and tomorrow will be uploading them to separate PRs since some of them have more than reordering modifications

@jkleinsc
Copy link
Member

jkleinsc commented Jan 9, 2017

@hsorellana thanks for breaking up items to smaller PRs. I am going to close this issue in favor of the smaller PRs.

@jkleinsc jkleinsc closed this Jan 9, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants