Skip to content

Commit

Permalink
Merge branch 'release/1.46.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
pbchase committed Jan 28, 2025
2 parents 15844d4 + ca23aed commit bd18dcd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: rcc.billing
Title: REDCap Automated Billing
Version: 1.46.1
Version: 1.46.2
Authors@R: c(
person("Philip", "Chase",
email = "[email protected]",
Expand Down
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# rcc.billing 1.46.2 (released 2025-01-28)
- Update sequester_orphans.R (@pbchase, #263, #264)

# rcc.billing 1.46.1 (released 2025-01-22)
- Handle an empty update in request_correction_of_bad_ownership_data.R (@pbchase)
- use get_user_rights to find project designers (@ljwoodley, #248, #262)
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.46.1
1.46.2
5 changes: 5 additions & 0 deletions etl/sequester_orphans.R
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ email_info <-
filter(!is.na(project_owner_email)) %>%
select(project_owner_email, project_owner_full_name, user_suspended_time, project_id, app_title, project_hyperlink, creation_time, last_logged_event)

# if there is nothing to do, then exit
if(nrow(orphaned_projects) == 0) {
quit()
}

# Sequester the orphans
result <- sequester_projects(
conn = rc_conn,
Expand Down

0 comments on commit bd18dcd

Please sign in to comment.