Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create unsequester_project #110

Open
6 tasks
pbchase opened this issue Nov 1, 2022 · 0 comments
Open
6 tasks

Create unsequester_project #110

pbchase opened this issue Nov 1, 2022 · 0 comments
Labels
hold This is not ready to work on

Comments

@pbchase
Copy link
Contributor

pbchase commented Nov 1, 2022

Create a new function unsequester_project. It should live in project_sequestration.R We need this function before we start sequestering paid projects.

unsequester_project should do these things:

  • set sequestered = 0 in the table redcap_entity_project_ownership
  • set completed_time = NA, completed_by = NA in the redcap_projects table.
  • accept a vector of project_ids as input
  • exit gracefully if the vector of project_ids is empty
  • Use redcapcustodian::sync_table2 to make updates to the tables
  • Return a vector of project_ids modified or as.numeric(NA) if none.

For a project state reference see the behavior of REDCap's ProjectGeneral/change_project_status.php.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hold This is not ready to work on
Projects
None yet
Development

No branches or pull requests

1 participant