Coder Social home page Coder Social logo

Comments (9)

vsoch avatar vsoch commented on July 25, 2024

@cosden I took a look and it's working as we expect - the goal of the script wasn't to immediately delete an expired job based on our date, but to delete an expired job with a link that is expired, because if you remember our CI was often failing because of broken links. So what the script does is loop through the current jobs, and regardless of expire or not, if the link is okay the file is kept. This is a more conservative approach to not immediately remove expired jobs because the creator might want to come back and change the date.

from usrse.github.io.

vsoch avatar vsoch commented on July 25, 2024

You can look at the commit history and look for "Automated push to update jobs.yml" to see the times when it's found an expired link and removed it https://github.com/USRSE/usrse.github.io/commits/master. And you can look at the Actions tab to see that it is running.

from usrse.github.io.

cosden avatar cosden commented on July 25, 2024

Ah ok. Thanks @v! I was sure you'd know. I didn't look into it at all, I was just surprised to see so many old jobs still there. I agree that the way it's set up makes sense!

from usrse.github.io.

cosden avatar cosden commented on July 25, 2024

What do you think about keeping all jobs (regardless of supplied expiration date) if the link is active? Did we have the clean jobs script when we set up the expiration date?

Keeping with the more conservative approach, I think I'd rather err on the side of keeping up any possible open position even if the user supplied expiration date has passed.

from usrse.github.io.

vsoch avatar vsoch commented on July 25, 2024

We can't keep jobs that have broken links because the url checker will fail, and we have to check the urls for the file so we can be sure we aren't serving broken links. So to be clear, currently we are conservative and try to keep all jobs, unless the url is 404, which isn't super useful to keep anyway (as the job has been removed).

from usrse.github.io.

vsoch avatar vsoch commented on July 25, 2024

So you want to remove the expiration date check entirely? Just display whatever jobs are there?

from usrse.github.io.

cosden avatar cosden commented on July 25, 2024

So you want to remove the expiration date check entirely? Just display whatever jobs are there?

That's what I'm wondering. Removing broken links is important, but I'm trying to decide what purpose having a user supplied expiration date serves. If I just removed 4 jobs that "expired" in July but are still active postings, they could have been on the site for 3 months getting eyes on them. I'm trying to think of the downside. Jobs are filled but links never break? Does that happen? If so, maybe suggest a very distant expiration date, e.g. 9-12 months.

The jobs page is the most frequently viewed page (after the home page) on the site, so I think it's worth trying to get and keep as many jobs as possible there.

from usrse.github.io.

vsoch avatar vsoch commented on July 25, 2024

Let’s try it! I’ll open a PR tomorrow.

from usrse.github.io.

cosden avatar cosden commented on July 25, 2024

Moving forward we'll set expiration dates far in advance. For now done in #308.

from usrse.github.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.