Skip to content

Commit

Permalink
Merge pull request #314 from icefoganalytics/test
Browse files Browse the repository at this point in the history
NARS fixes
  • Loading branch information
datajohnson authored Nov 13, 2024
2 parents e91ed38 + 874b3c1 commit f804341
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 29 deletions.
6 changes: 2 additions & 4 deletions src/api/controllers/admin/reporting-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,7 @@ export default class ReportingController extends BaseController {
}

async runNars2023DisabilityReport() {
let academic_year_id = parseInt(this.request.params.academic_year_id ?? moment().format("YYYY"));
return ReportingService.runNars2023DisabilityReport({ format: this.format, academic_year_id }).then(
return ReportingService.runNars2023DisabilityReport({ format: this.format, academic_year_id: 2023 }).then(
(reportData) => {
if (this.format == "html") {
this.response.send(reportData);
Expand All @@ -266,8 +265,7 @@ export default class ReportingController extends BaseController {
}

async runNars2023DisabilityRCLReport() {
let academic_year_id = parseInt(this.request.params.academic_year_id ?? moment().format("YYYY"));
return ReportingService.runNars2023DisabilityRCLReport({ format: this.format, academic_year_id }).then(
return ReportingService.runNars2023DisabilityRCLReport({ format: this.format, academic_year_id: 2023 }).then(
(reportData) => {
if (this.format == "html") {
this.response.send(reportData);
Expand Down
4 changes: 2 additions & 2 deletions src/api/routes/admin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ adminRouter.use("/reporting/nars2022disrcl/:academic_year_id", routedTo(Reportin

adminRouter.use("/reporting/nars2023", routedTo(ReportingController, "runNars2023FTReport"));
adminRouter.use("/reporting/nars2023pt", routedTo(ReportingController, "runNars2023PTReport"));
adminRouter.use("/reporting/nars2023dis/:academic_year_id", routedTo(ReportingController, "runNars2023DisabilityReport"));
adminRouter.use("/reporting/nars2023disrcl/:academic_year_id", routedTo(ReportingController, "runNars2023DisabilityRCLReport"));
adminRouter.use("/reporting/nars2023dis", routedTo(ReportingController, "runNars2023DisabilityReport"));
adminRouter.use("/reporting/nars2023disrcl", routedTo(ReportingController, "runNars2023DisabilityRCLReport"));

adminRouter.use("/reporting/step/:academic_year_id", routedTo(ReportingController, "runStepReport"));
adminRouter.use("/reporting/approvedFunding/:academic_year_id", routedTo(ReportingController, "runApprovedFundingReport"));
Expand Down
2 changes: 1 addition & 1 deletion src/api/services/admin/reporting-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export default class ReportingService {
let service = new NarsPTReportingService({
startDate: new Date("2023-06-01"),
endDate: new Date("2024-05-31"),
year: 2022,
year: 2023,
});

let results = await service.runReport();
Expand Down
24 changes: 2 additions & 22 deletions src/web/src/modules/Administration/store/ReportsStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -497,18 +497,8 @@ const state = {
},
{
text: "NARS Disability FT & PT 2023",
url: "/nars2023dis/:academic_year_id",
url: "/nars2023dis",
downloadFormat: [".csv", ".txt"],
parameters: [
{
name: "Academic year",
field: "academic_year_id",
options: "academicYears",
required: true,
itemText: "year",
itemValue: "year",
},
],
headers: [
{ text: "sin", value: "sin" },
{ text: "last_name", value: "last_name" },
Expand Down Expand Up @@ -540,17 +530,7 @@ const state = {
},
{
text: "NARS Disability FT - Reduced Course Load 2023",
url: "/nars2023disrcl/:academic_year_id",
parameters: [
{
name: "Academic year",
field: "academic_year_id",
options: "academicYears",
required: true,
itemText: "year",
itemValue: "year",
},
],
url: "/nars2023disrcl",
downloadFormat: [".csv", ".txt"],
headers: [
{ text: "loanyear", value: "loanyear" },
Expand Down

0 comments on commit f804341

Please sign in to comment.