Competitions is a platform to support robust peer review within and across CTSA hubs. This is a cloud-based, single-sign on application for investigators, reviewers and administrators. With Competitions, you can post opportunities, submit applications and review and score those submissions
[1:52 PM] Laura Wimbiscus
Hi Devs ! We need to export all the submissions to a Competitions grant in a somewhat user-friendly format. (They want to open the submissions up to public comments, and will posting the submissions on Google Docs) We have not built any functionality, like, say, Export, to make this possible, so it would have to be a back end job. Any suggestions for Matthew John Baumann on how to do this with the least amount of effort and pain possible?
[1:59 PM] Jalpa Rameshbhai Patel
Simplest could be nightly rake task, which export all the data into csv format, which can be be imported in google docs later.
(1 liked)[2:00 PM] Jalpa Rameshbhai Patel
something like below
desc 'studies data export'
task export_study_data::environmentdo
csv_file = "#{Rails.root}/tmp/study_data.csv"
csv_header = ['study_identifier', 'irb_number', 'pi_name', 'name', 'status']
CSV.open(csv_file, 'w', write_headers:true) do |csv|
csv << csv_header
Study.includes(:principal_investigator).approved.find_each do |study|
csv << [study.study_identifier, study.irb_number, study.principal_investigator_name, study.name, study.irb_status]
end
end
end
Please include all the following questions, in this order
Project Title
What is the short title of the project?
Please list the project lead(s); or whom we should contact with questions regarding the proposal [do you want to omit email addresses?]
List the Core(s) with which this project is aligned:
With which CTSA program priorities does this proposal align?
Outline how successful completion of the project will benefit individual hubs, the overall CTSA Program, or both
How will this project engage the CTSA community and beyond? List all proposed members and hubs and/or plan to solicit members. Outline a clear engagement plan, including: communication channels, outreach efforts, collaboration opportunities.
How do you plan to assess the project's success? How will you identify and mitigate risks and shortcomings?
What is the probability of adoption or implementation of the projects' deliverable within the CTSA community upon project completion? What will help or hinder adoption/implementation?
What central resources does this project rely on if any? Please include institutional, CD2H, or NCATS resources.
Please upload a Project Plan [500 word limit, excluding references and figure legends]. Please include a project timeline with deliverables [in table format].
If this is a continuation of a earlier CD2H project, please describe progress during the prior period.
[1:52 PM] Laura Wimbiscus Hi Devs ! We need to export all the submissions to a Competitions grant in a somewhat user-friendly format. (They want to open the submissions up to public comments, and will posting the submissions on Google Docs) We have not built any functionality, like, say, Export, to make this possible, so it would have to be a back end job. Any suggestions for Matthew John Baumann on how to do this with the least amount of effort and pain possible?
[1:59 PM] Jalpa Rameshbhai Patel Simplest could be nightly rake task, which export all the data into csv format, which can be be imported in google docs later. (1 liked)[2:00 PM] Jalpa Rameshbhai Patel
something like below
desc 'studies data export' task export_study_data::environmentdo csv_file = "#{Rails.root}/tmp/study_data.csv" csv_header = ['study_identifier', 'irb_number', 'pi_name', 'name', 'status'] CSV.open(csv_file, 'w', write_headers:true) do |csv| csv << csv_header Study.includes(:principal_investigator).approved.find_each do |study| csv << [study.study_identifier, study.irb_number, study.principal_investigator_name, study.name, study.irb_status] end end end
[3:20 PM] Jalpa Rameshbhai Patel or automatic upload to google sheet can be done via API, https://developers.google.com/drive/api/v3/quickstart/ruby
Please include all the following questions, in this order