Closed rv0lt closed 1 year ago
Merging #1466 (753ead3) into dev (ca45daf) will increase coverage by
0.03%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## dev #1466 +/- ##
==========================================
+ Coverage 90.11% 90.15% +0.03%
==========================================
Files 29 29
Lines 4401 4407 +6
==========================================
+ Hits 3966 3973 +7
+ Misses 435 434 -1
Files Changed | Coverage Δ | |
---|---|---|
dds_web/api/schemas/user_schemas.py | 88.88% <100.00%> (+0.65%) |
:arrow_up: |
dds_web/api/user.py | 90.63% <100.00%> (+0.20%) |
:arrow_up: |
@i-oden You mean adding tests that check that the ProjectInviteKeys are removed right?
@i-oden You mean adding tests that check that the ProjectInviteKeys are removed right?
@rv0lt Correct!
@i-oden like this changes I push you mean? I dont know How to check for example for the ddserr.databaseerror as that was already part of the code I just move it around.
@i-oden like this changes I push you mean? I dont know How to check for example for the ddserr.databaseerror as that was already part of the code I just move it around.
What you've added now is a good start, but you'll need to change a bit and add a bit of code too. I can have a look tomorrow again and come with a suggestion!
Before submitting this PR
Description: When an invite is sent, the expiry time is set to exactly 7 days from now (incl the time). At midnight there is a cronjob which finds the expired invites in the Invites table and removes them. This means that there is a gap between the actual expiry and when the invite is deleted from the database. This PR fixes that. As well as adding some tests
Jira task / GitHub issue: https://scilifelab.atlassian.net/jira/software/projects/DDS/boards/13?isInsightsOpen=true&selectedIssue=DDS-1642
How to test: Add information on how someone could manually test this functionality. As detailed as possible.
Type of change: Check the relevant boxes in the section below
Add docstrings and comments to code, even if you personally think it's obvious.
What type of change(s) does the PR contain?
Checklist
master
branchActions / Scans
black .
locally to execute formatting.npx prettier --write .
locally to execute formatting.