Skip to content
This repository has been archived by the owner on Jun 20, 2018. It is now read-only.

filter by city, country, gender, intern, junior_developer etc.... #8

Open
berlintam opened this issue Dec 5, 2015 · 7 comments
Open

Comments

@berlintam
Copy link
Contributor

It would be great to have filters on the junior_storyies#index page so that users can filter the stories by attributes that mean the most to them. (think similar to our filter here http://rorganize.it/groups) I think we can start with:

  • gender
  • country/city
  • intern/junior developer
  • freelancer/not freelancer
  • technology

thoughts @sareg0?

@sareg0
Copy link

sareg0 commented Dec 6, 2015

I think that sounds great. It would be a great way for jrs to find the data they're looking for, since it could be a little while between now and when we get any real visualisations/data analysis going on. I think the first focus should be on being able to filter by location.... Seems like the most logical thing people will go to first.

@TPei
Copy link
Contributor

TPei commented Dec 7, 2015

We could abuse rails admin for that. By disabling all editing actions (new, edit) and things like history etc...

RailsAdmin.config do |config|
  config.actions do
    # root actions
    dashboard
    # only index collection action
    index
    # new, edit etc is NOT allowed
    export
    # member actions: only show
    show
  end
end

I'm not sure I like it, since it breaks railsadmin for actual use by administrators, but it would be an instant fix (see #15)
screen shot 2015-12-07 at 10 18 17

@berlintam
Copy link
Contributor Author

hmmmm but the idea is that everyone can filter by gender/city etc.... on the index page, so this wouldn't just be used by admins. I don't think that we would need an admin area yet (if ever)....

Implementing basic filtering on the front end is definitely possible, plus then we have more styling options (which is near impossible with rails admin).

wdyt?

@TPei
Copy link
Contributor

TPei commented Dec 7, 2015

Agreed, don't think this is the best idea, would be a lazy quick fix, but cause pain later on. Was just a quick thought this morning. I'll close the PR.

@TPei
Copy link
Contributor

TPei commented Dec 8, 2015

Ok, I'll work on this. Can you assign me @berlintam? Is that even possible when I'm not part of the rubycorns group?

@berlintam
Copy link
Contributor Author

I just looked and it doesn't seem possible. But you are officially assigned in my books :) Thanks so much!

@TPei
Copy link
Contributor

TPei commented Mar 7, 2016

Finally managed to find some time to work on this...
Progress can be tracked in PR #16

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants