Census: Add 29 2019-2020 state CS files #35199
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adding state CS offerings in 2019-2020 school year to git.
Links
Files in Google Drive:
How to import state CS offering CSV file
Step 1. Verify data
state_school_id
,nces_id
,course_id
teacher_name_or_id
column, or have teacher first name/last name/id in any other columns.Step 2. Test importing data
Option 1: Test locally
SchoolDistrict.seed_from_s3; School.seed_from_s3
. (State CS offering data requires valid matching School ids, which in turn requires SchoolDistrict ids.)Census::StateCsOffering.seed_from_csv
. (There is adry_run
option, which only parses and matches data in the input file but doesn't write anything to the database.)Option 2: Test in
production-console
using file in S3This is the easiest way to import new data if you think data is quite clean and don't expect to make any code change. See details in #34925.
Step 3: Deploy
Step 4: Verify results after import
From a Rails console in
production-console
:What's next
Tracked by PLC-908.
Currently we have access report data (state AP offerings and AP CS offerings) in S3, Google Drive, and Git. We prefer to have Git as the source of truth because of its version-tracking benefit, and stop using S3. (Google Drive can still be used as a staging area to share and edit data.)
Several items to tackle are: