research-software-directory / RSD-as-a-service

This repo contains the new RSD-as-a-service implementation
https://research.software
23 stars 14 forks source link

Expire maintainer invites and scheduled tasks for the database #1221

Closed ewan-escience closed 3 months ago

ewan-escience commented 3 months ago

Expire maintainer invites and scheduled tasks for the database

Changes proposed in this pull request:

How to test:

Closes #260

PR Checklist:

sonarcloud[bot] commented 3 months ago

Quality Gate Passed Quality Gate passed for 'rsd-database'

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

sonarcloud[bot] commented 3 months ago

Quality Gate Passed Quality Gate passed for 'rsd-frontend'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

ewan-escience commented 3 months ago

Would it be possible to install cron in the Postgres container so that we can add the scheduled task in the container?

We decided on investigating having a dedicated container for cron jobs.

About the 31 day, it is not allowed to use a subquery in a generated column, so we cannot use any env variables to change it. I'm fine with changing it to another value, like 14 days, but I don't think it's possible to make it configurable. You can of yourse change the column manually on your instance.