Skip to content

Commit

Permalink
Merge pull request #3602 from teovin/org-user-expiry
Browse files Browse the repository at this point in the history
add the org user expiry feature
  • Loading branch information
teovin authored Sep 23, 2024
2 parents ea2e497 + e20d975 commit a466172
Show file tree
Hide file tree
Showing 19 changed files with 394 additions and 121 deletions.
168 changes: 106 additions & 62 deletions perma_web/fixtures/users.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,7 @@
"requested_account_type": null,
"requested_account_note": null,
"link_count": 0,
"link_limit": 10,
"organizations": []
"link_limit": 10
}
},
{
Expand All @@ -187,8 +186,7 @@
"requested_account_type": null,
"requested_account_note": null,
"link_count": 0,
"link_limit": 10,
"organizations": []
"link_limit": 10
}
},
{
Expand All @@ -211,10 +209,7 @@
"requested_account_type": null,
"requested_account_note": null,
"link_count": 0,
"link_limit": 10,
"organizations": [
1
]
"link_limit": 10
}
},
{
Expand All @@ -237,8 +232,7 @@
"requested_account_type": null,
"requested_account_note": null,
"link_count": 0,
"link_limit": 10,
"organizations": []
"link_limit": 10
}
},
{
Expand All @@ -261,10 +255,7 @@
"requested_account_type": null,
"requested_account_note": null,
"link_count": 0,
"link_limit": 10,
"organizations": [
1
]
"link_limit": 10
}
},
{
Expand All @@ -287,10 +278,7 @@
"requested_account_type": null,
"requested_account_note": null,
"link_count": 0,
"link_limit": 10,
"organizations": [
3
]
"link_limit": 10
}
},
{
Expand All @@ -313,11 +301,7 @@
"requested_account_type": null,
"requested_account_note": null,
"link_count": 0,
"link_limit": 10,
"organizations": [
3,
4
]
"link_limit": 10
}
},
{
Expand All @@ -340,8 +324,7 @@
"requested_account_type": null,
"requested_account_note": null,
"link_count": 0,
"link_limit": 10,
"organizations": []
"link_limit": 10
}
},
{
Expand All @@ -364,8 +347,7 @@
"requested_account_type": null,
"requested_account_note": null,
"link_count": 0,
"link_limit": 10,
"organizations": []
"link_limit": 10
}
},
{
Expand All @@ -388,13 +370,7 @@
"requested_account_type": null,
"requested_account_note": null,
"link_count": 0,
"link_limit": 10,
"organizations": [
1,
2,
3,
4
]
"link_limit": 10
}
},
{
Expand All @@ -417,10 +393,7 @@
"requested_account_type": null,
"requested_account_note": null,
"link_count": 0,
"link_limit": 10,
"organizations": [
4
]
"link_limit": 10
}
},
{
Expand All @@ -443,8 +416,7 @@
"requested_account_type": null,
"requested_account_note": null,
"link_count": 0,
"link_limit": 10,
"organizations": []
"link_limit": 10
}
},
{
Expand All @@ -467,8 +439,7 @@
"requested_account_type": null,
"requested_account_note": null,
"link_count": 0,
"link_limit": 10,
"organizations": []
"link_limit": 10
}
},
{
Expand All @@ -491,8 +462,7 @@
"requested_account_type": "court",
"requested_account_note": null,
"link_count": 0,
"link_limit": 10,
"organizations": []
"link_limit": 10
}
},
{
Expand All @@ -515,8 +485,7 @@
"requested_account_type": "journal",
"requested_account_note": null,
"link_count": 0,
"link_limit": 10,
"organizations": []
"link_limit": 10
}
},
{
Expand All @@ -539,8 +508,7 @@
"requested_account_type": "faculty",
"requested_account_note": null,
"link_count": 0,
"link_limit": 10,
"organizations": []
"link_limit": 10
}
},
{
Expand All @@ -563,8 +531,7 @@
"requested_account_type": null,
"requested_account_note": null,
"link_count": 0,
"link_limit": 10,
"organizations": []
"link_limit": 10
}
},
{
Expand All @@ -587,10 +554,7 @@
"requested_account_type": null,
"requested_account_note": null,
"link_count": 0,
"link_limit": 10,
"organizations": [
5
]
"link_limit": 10
}
},
{
Expand All @@ -614,7 +578,6 @@
"requested_account_note": null,
"link_count": 0,
"link_limit": 10,
"organizations": [],
"nonpaying": true
}
},
Expand All @@ -640,7 +603,6 @@
"requested_account_note": null,
"link_count": 0,
"link_limit": 10,
"organizations": [],
"nonpaying": true
}
},
Expand Down Expand Up @@ -677,7 +639,6 @@
"requested_account_note": null,
"link_count": 0,
"link_limit": 10,
"organizations": [],
"nonpaying": true
}
},
Expand Down Expand Up @@ -726,7 +687,6 @@
"requested_account_note": null,
"link_count": 0,
"link_limit": 10,
"organizations": [],
"nonpaying": true
}
},
Expand Down Expand Up @@ -763,7 +723,6 @@
"requested_account_note": null,
"link_count": 0,
"link_limit": 10,
"organizations": [],
"nonpaying": true
}
},
Expand Down Expand Up @@ -800,7 +759,6 @@
"requested_account_note": null,
"link_count": 0,
"link_limit": 10,
"organizations": [],
"nonpaying": true,
"unlimited": true
}
Expand All @@ -826,7 +784,6 @@
"requested_account_note": null,
"link_count": 0,
"link_limit": 0,
"organizations": [],
"nonpaying": false,
"unlimited": false,
"in_trial": true
Expand All @@ -853,9 +810,96 @@
"requested_account_note": null,
"link_count": 0,
"link_limit": 10,
"organizations": [],
"nonpaying": true,
"unlimited": true
}
},
{
"model": "perma.userorganizationaffiliation",
"pk": 1,
"fields": {
"organization": 1,
"user": 3
}
},
{
"model": "perma.userorganizationaffiliation",
"pk": 2,
"fields": {
"organization": 1,
"user": 5
}
},
{
"model": "perma.userorganizationaffiliation",
"pk": 3,
"fields": {
"organization": 3,
"user": 6
}
},
{
"model": "perma.userorganizationaffiliation",
"pk": 4,
"fields": {
"organization": 3,
"user": 7
}
},
{
"model": "perma.userorganizationaffiliation",
"pk": 5,
"fields": {
"organization": 4,
"user": 7
}
},
{
"model": "perma.userorganizationaffiliation",
"pk": 7,
"fields": {
"organization": 1,
"user": 10
}
},
{
"model": "perma.userorganizationaffiliation",
"pk": 8,
"fields": {
"organization": 2,
"user": 10
}
},
{
"model": "perma.userorganizationaffiliation",
"pk": 9,
"fields": {
"organization": 3,
"user": 10
}
},
{
"model": "perma.userorganizationaffiliation",
"pk": 10,
"fields": {
"organization": 4,
"user": 10
}
},
{
"model": "perma.userorganizationaffiliation",
"pk": 11,
"fields": {
"organization": 4,
"user": 11
}
},
{
"model": "perma.userorganizationaffiliation",
"pk": 12,
"fields": {
"organization": 5,
"user": 18
}
}
]
Loading

0 comments on commit a466172

Please sign in to comment.