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

[resume-portal] Expire old resumes or after a person's graduation date #152

Open
kevinschoonover opened this issue Oct 3, 2019 · 1 comment
Assignees
Labels
api All issues related to the 'api' application back-end bug 🐛 Something isn't working resume-portal All issues related to the 'resume-portal' application

Comments

@kevinschoonover
Copy link
Contributor

Do not show resumes that are 'old' (tbd what constitutes as 'old') or when the current time is past their graduation date

@ClayMav ClayMav added api All issues related to the 'api' application back-end bug 🐛 Something isn't working resume-portal All issues related to the 'resume-portal' application labels Feb 3, 2020
@cjwagn1 cjwagn1 assigned cjwagn1 and unassigned garlic-os Feb 4, 2021
@cjwagn1
Copy link
Contributor

cjwagn1 commented Sep 15, 2021

Just to add a bit of clarification on this, the resumes should be hidden such that if the graduation semester + 1 <= current semester. For example, if someone is graduating in Fall 2023, the resume should only be hidden in Spring 2024.

This could temporarily be done using the Array filter method

To give an example of this type of filtering in production:

const todaysDate = new Date();
const todaysISO = todaysDate.toISOString();

const previousEventFilter = events.filter(
  (c: any) =>
      new Date(c.dateHosted).getTime() -
        new Date(todaysISO.split("T")[0]).getTime() < // Filters out dates that have passed
      0
  );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api All issues related to the 'api' application back-end bug 🐛 Something isn't working resume-portal All issues related to the 'resume-portal' application
Projects
None yet
Development

No branches or pull requests

6 participants