Skip to content

Commit

Permalink
folded isrprint, itemprint reports into normal reports
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Mar 12, 2018
1 parent 30195e1 commit f351776
Show file tree
Hide file tree
Showing 13 changed files with 382 additions and 248 deletions.
115 changes: 115 additions & 0 deletions app/naprrql/gql_schemas/naplan_schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ type NaplanData {
guid_check_report: [GuidCheckDataSet]
## report on test items, testlets, tests extraneous to codeframe
codeframe_check_report: [CodeframeCheckDataSet]
## Request student summaries for the given school and year level of tests
#isrReportItems(schoolAcaraID: String!, testYrLevel: String!): [ISRPrintItem]
isrReportItems(acaraIDs: [String]): [ISRPrintItem]
## Request student summaries for the given school and year level of tests, with full student details
#isrReportItemsExpanded(schoolAcaraID: String!, testYrLevel: String!): [ISRPrintItemExpanded]
isrReportItemsExpanded(acaraIDs: [String]): [ISRPrintItemExpanded]
}

## List of problematic GUIDs in data set
Expand Down Expand Up @@ -1161,6 +1167,115 @@ type SchoolDetails {
ACARAId: String
}

## Represents each student as a line of results for priniting
type ISRPrintItem {
## The student ID (typically localID)
StudentLocalID: String
## Platform identifier for student
StudentPSI: String
## Student given name
StudentFirstName: String
## Student family name
StudentLastName: String
## Student year level
YearLevel: Int
## ID of school
SchoolID: String
## School name
SchoolName: String
## Reading domainscore, scaled
R_Score: Float
## Reading mean
R_Mean: Float
## Reading score comment
R_Comment: String
## Writing domainscore, scaled
W_Score: Float
## Writing mean
W_Mean: Float
## Writing score comment
W_Comment: String
## Spelling domainscore, scaled
S_Score: Float
## Spelling mean
S_Mean: Float
## Spelling score comment
S_Comment: String
## Grammar domainscore, scaled
G_Score: Float
## Grammar mean
G_Mean: Float
## Grammar school comment
G_Comment: String
## Numearacy domainscore, scaled
N_Score: Float
## Numearacy mean
N_Mean: Float
## Numeracy score comment
N_Comment: String
}

## Represents each student as a line of results for priniting
type ISRPrintItemExpanded {
## The student
Student: RegistrationRecord
## ID of school
SchoolID: String
## School name
SchoolName: String
## Reading domainscore, scaled
R_Score: Float
## Reading mean
R_Mean: Float
## Reading score comment
R_Comment: String
## Writing domainscore, scaled
W_Score: Float
## Writing mean
W_Mean: Float
## Writing score comment
W_Comment: String
## Spelling domainscore, scaled
S_Score: Float
## Spelling mean
S_Mean: Float
## Spelling score comment
S_Comment: String
## Grammar domainscore, scaled
G_Score: Float
## Grammar mean
G_Mean: Float
## Grammar school comment
G_Comment: String
## Numearacy domainscore, scaled
N_Score: Float
## Numeracy mean
N_Mean: Float
## Numeracy score comment
N_Comment: String
## Reading participation
R_Participation: String
## Writing participation
W_Participation: String
## Numeracy participation
N_Participation: String
## Spelling participation
S_Participation: String
## Grammar & Punctuation participation
G_Participation: String
## Reading pathway
R_Pathway: String
## Writing pathway
W_Pathway: String
## Numeracy pathway
N_Pathway: String
## Spelling pathway
S_Pathway: String
## Grammar & Punctuation pathway
G_Pathway: String
}





Expand Down
43 changes: 22 additions & 21 deletions app/naprrql/naprrql.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ import (

var ingest = flag.Bool("ingest", false, "Loads data from results file. Exisitng data is overwritten.")
var report = flag.Bool("report", false, "Creates .csv reports. Existing reports are overwritten")
var isrprint = flag.Bool("isrprint", false, "Creates .csv files for use in isr printing")
var itemprint = flag.Bool("itemprint", false, "Creates .csv files reporting item results for each student against items")

// var isrprint = flag.Bool("isrprint", false, "Creates .csv files for use in isr printing")
// var itemprint = flag.Bool("itemprint", false, "Creates .csv files reporting item results for each student against items")
var qa = flag.Bool("qa", false, "Creates .csv files for QA checking of NAPLAN results")

func main() {
Expand Down Expand Up @@ -75,27 +76,27 @@ func main() {
closeDB()
os.Exit(1)
}

// create the isr printing reports
if *isrprint {
// launch web-server
startWebServer(true)
writeISRPrintingReports()
/*
// create the isr printing reports
if *isrprint {
launch web-server
startWebServer(true)
writeISRPrintingReports()
// shut down
closeDB()
os.Exit(1)
}

// create the item reports
if *itemprint {
// launch web-server
startWebServer(true)
writeItemPrintingReports()
// shut down
closeDB()
os.Exit(1)
}
closeDB()
os.Exit(1)
}
// create the item reports
if *itemprint {
// launch web-server
startWebServer(true)
writeItemPrintingReports()
// shut down
closeDB()
os.Exit(1)
}
*/
// create the item reports
if *qa {
// launch web-server
Expand Down
24 changes: 0 additions & 24 deletions app/naprrql/reporting_templates/isr_printing/isrPrinting.gql

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit f351776

Please sign in to comment.