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

Add filters #3

Open
3 of 6 tasks
jasonaowen opened this issue Feb 18, 2017 · 1 comment
Open
3 of 6 tasks

Add filters #3

jasonaowen opened this issue Feb 18, 2017 · 1 comment
Labels
back-end Relating to the server-side Python code enhancement front-end Relating to the client-side JavaScript help wanted

Comments

@jasonaowen
Copy link
Owner

jasonaowen commented Feb 18, 2017

Right now it's selecting from everyone who has ever been to RC. Probably only the staff have a chance! Add some filters to narrow the pool.

Possible filters could be:

  • Everyone
  • At RC with me
  • Your batch
  • Currently at RC
  • Staff
  • Select batch
jasonaowen added a commit that referenced this issue Feb 21, 2017
Includes residents, staff, the previous batch, and the subsequent batch.

I count several cases:

1. They were at RC before you, and did not overlap:
   You:           <----->
   Them: <----->
2. You were at RC before them, and did not overlap:
   You:  <----->
   Them:          <----->
3. They started before you, and overlapped:
   You:     <----->
   Them: <----->
4. You started before them, and overlapped:
   You:  <----->
   Them:    <----->
5. You are in a long batch, and they are in a short batch:
   You:  <----->
   Them:   <->
6. You are in a short batch, and they are in a long batch:
   You:    <->
   Them: <----->

We may consider Staff members still working here to have an end date of
infinity.

In all cases, the logic boils down to:
   your start < their end
             and
  their start < your end

Implement this as a view to select from.

Issue #3 Add filters
jasonaowen added a commit that referenced this issue Feb 21, 2017
Issue #3 add filters
@botwhytho
Copy link
Collaborator

Should we add all the batches to the filter selection below the current options, or should we add this as another UI element/control? If adding to the current drop down the UI would stay clean, but the drop down will have a LOT of options. Guess there's no way around that. Some re-factoring of the flask code will be needed

Another UI option is to have a 'slider' that one can drag on both sides to filter on a subset of batches by date (i.e. "Give me all the batches in 2015")

@jasonaowen jasonaowen added back-end Relating to the server-side Python code front-end Relating to the client-side JavaScript labels Apr 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back-end Relating to the server-side Python code enhancement front-end Relating to the client-side JavaScript help wanted
Projects
None yet
Development

No branches or pull requests

2 participants