Skip to content
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

Move Person::Titles into their own class #524

Open
kgf opened this issue Oct 6, 2017 · 15 comments
Open

Move Person::Titles into their own class #524

kgf opened this issue Oct 6, 2017 · 15 comments

Comments

@kgf
Copy link
Member

kgf commented Oct 6, 2017

Currently, all the titles are defined in the Person model. This is much too restrictive. I would like to move them to a Title model. The correct PR will include the CRUD code changes to look for titles in Title, a migration to move them there for sites in production, and an addition to seeds.rb to create them for new sites.
The title should belong_to a department. It should also have a status of Active and Inactive It will also need an order field to allow click to sort.
The migration should duplicate what's in the code now.
The seeds should be
{ "Team Leader" => 10, "Team Member" => 20 }.

@ivanfrias
Copy link

I can take that one.

@kgf kgf added Claimed and removed help wanted labels Oct 8, 2017
@kgf
Copy link
Member Author

kgf commented Oct 8, 2017

That's great, thanks @ivanfrias

@kgf
Copy link
Member Author

kgf commented Oct 9, 2017

@ivanfrias I'm not sure how far along you are on this.

I am considering that it may be safer to implement this as a CRUD model ( Title ) that belongs_to a department. It would have a name, a shortname, a status with the choices of Active and Inactive. It would also have a position, as integer, that would define the sort order.

My fear with the Setting is that someone will mess up entering the hash in the Setting corrrectly, and the app will fall over.

@loldlm1
Copy link

loldlm1 commented Oct 11, 2017

This issue is still available? If so i think a i can take this one :)

@kgf
Copy link
Member Author

kgf commented Oct 11, 2017

@loldlm1 I would like to give @ivanfrias a little more time to respond.
Could I interest you in a different issue ? Is there an area of software development that interests you ? There are additional improvements to RR that are not yet documented. I am happy to create a issue tailored to your interests.
We appreciate your help.
Kevin

@loldlm1
Copy link

loldlm1 commented Oct 11, 2017

@kgf aaah got it! Sure, i'm interested in any issue, i'd prefer to work on something back-end :).

@kgf
Copy link
Member Author

kgf commented Oct 19, 2017

@ivanfrias I noticed that the above description would not work as things stand now, as there is already a title class. How far have you gotten on this ?

@kgf
Copy link
Member Author

kgf commented Oct 19, 2017

@loldlm1 Did you find anything interesting ? If you mention what would be interesting, I may be able to craft an issue for you.

@kgf kgf changed the title Move Person::Titles into settings Move Person::Titles into their own class Oct 24, 2017
@kgf kgf removed the Hacktoberfest label Nov 1, 2017
@kgf
Copy link
Member Author

kgf commented Nov 9, 2017

@loldlm1 The other contributor seems to be tied up with other things. Is this still of interest ? Your help would be appreciated.

@ivanfrias
Copy link

ivanfrias commented Nov 9, 2017 via email

@ivanfrias
Copy link

ivanfrias commented Nov 11, 2017

@kgf I didn't understood you weren't asking me. If still open & nobody have started working on that I can work on that , but I need some directions. Tried to get to slack but can't sign up there. Is there any IM app you work for this ?

@ivanfrias
Copy link

Instead of a one-to-one from department to title we could have a join table instead .. What is the goal here ?

@ivanfrias
Copy link

OK, so I made a PR w/ basic changes. Let me know what else you need.

@kgf
Copy link
Member Author

kgf commented Nov 12, 2017

I have sent you an invitation to Slack
Thanks for your help !

@ivanfrias
Copy link

Let me know what else I can do to contribute to the project.

@kgf kgf added On Hold and removed Claimed labels Nov 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants