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

#1791 - Enable Assessments tab view and NOA view for Public Institution Users - Part 1 #1926

Merged
merged 15 commits into from
May 15, 2023

Conversation

ann-aot
Copy link
Contributor

@ann-aot ann-aot commented May 4, 2023

  • Created Institution assessment summary page with student appeal, exception, and original assessment (NOA in next PR)
  • moved shared logic to controller.service file
  • updated caniuse-lite
    image
  • moved/created application details component/views to applicationDetails/
  • Added notes part of appeal and exception for public users as I got confirmation from @JasonCTang . (but double checking with @JasonCTang, if to hide it or not, if it's to hide I will do it as part of the next PR because student view does not have a note section)
    - UPDATE - got an update from @JasonCTang to hide the note, I will be hiding it in my next PR.
  • Student appeal view will be updated as part of the next PR
  • As per Figma, the request forms don't have a sidebar but the current ministry view has a sidebar, so keeping the institution the same as the ministry,
    image
    image

Screenshots,
image
image
image
image
image

Next PRs
PR 2. Remaining request form views and NOA views
PR 3. e2e tests

@ann-aot ann-aot self-assigned this May 4, 2023
@ann-aot ann-aot added Institution Institution Features Ministry Ministry Features Web Portal SIMS-Api SIMS-Api labels May 10, 2023
@ann-aot ann-aot marked this pull request as ready for review May 10, 2023 21:55
@ann-aot ann-aot changed the title initial commit #1791 - Enable Assessments tab view and NOA view for Public Institution Users - Part 1 May 10, 2023
): Promise<DetailedStudentAppealAPIOutDTO> {
return this.studentAppealControllerService.getStudentAppealWithRequest(
appealId,
undefined,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we move the studentId into options, we can avoid this.


/**
* Get the student appeal details.
* @param appealId appeal id to be retrieved.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The order of comments are reversed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we following the order of params in the comments everywhere else 😄 .

updated

@@ -0,0 +1,49 @@
import { Controller, Param, Get, ParseIntPipe } from "@nestjs/common";
import { AuthorizedParties } from "../../auth/authorized-parties.enum";
import {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formatter is showing error because of additional space here for me. Are other devs seeing it?

image

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, same for me @dheepak-aot. When I save the file it is fixed.
@ann-aot is VS Code formatting on save?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ya @andrewsignori-aot. When i was working on this file, VS code was slow and i forced shutdown, probably at that time I have missed it. I have fixed it now

}

/**
* Get a student application exception detected after the student application was
* submitted, for instance, when there are documents to be reviewed.
* @param applicationId application associated with the exception.
* @param status statuses to be filtered.
* @param studentId student id.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The order of comments studentId and status are reversed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had no idea, that we were following the order in the comments. I have seen comments without following the order. did we decide it lately?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We never enforced it on PR reviews but I would say that naturally they are usually ordered.
Is it good to have them ordered? IMO, yes.
When we create a new method, VS Code will do it for us and I believe that we should try to keep it, but not as a blocker.

Copy link
Contributor Author

@ann-aot ann-aot May 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with that, its good to have, when i suddenly i saw these comment, I thought we had an agreement on it and i might have missed the discussion. I have updated it

><template #body="slotProps">{{
dateOnlyLongString(slotProps.data.submittedDate)
}}</template></Column
>
<Column field="requestType" header="Type" sortable="true"></Column>
<Column header="Request form" sortable="false"
<Column field="requestType" header="Type" :sortable="true"></Column>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -77,6 +77,9 @@ export const InstitutionRoutesConst = {
STUDENT_FILE_UPLOADS: Symbol(),
STUDENT_OVERAWARDS: Symbol(),
STUDENT_NOTES: Symbol(),
ASSESSMENTS_SUMMARY: Symbol(),
APPLICATION_EXCEPTION: Symbol(),
STUDENT_APPEAL_REQUEST: Symbol(),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same route is present in student routes const as STUDENT_APPEAL_REQUESTS. One or the other way we can follow the same in both the places.

Copy link
Contributor Author

@ann-aot ann-aot May 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ya, its part of the student appeal right? i will update in next PR,
image

@dheepak-aot
Copy link
Collaborator

Great work @ann-aot. Added few minor comments.

@@ -0,0 +1,75 @@
<template>
<student-appeal-requests-approval
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

full page container?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its is used inside the component,
image

<header-navigator
title="Student applications"
:routeLocation="{
name: InstitutionRoutesConst.STUDENT_APPLICATIONS,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The whole route can be returned to template as variable like in StudentAppealRequestsApproval.vue

@@ -20,13 +20,13 @@
<Column
field="submittedDate"
header="Submitted date"
sortable="true"
:sortable="true"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Collaborator

@andrepestana-aot andrepestana-aot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job! There are some minor/improvements already commented by other devs.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@github-actions
Copy link

Backend Unit Tests Coverage Report

Totals Coverage
Statements: 18.11% ( 2040 / 11263 )
Methods: 8.19% ( 119 / 1453 )
Lines: 20.95% ( 1792 / 8554 )
Branches: 10.27% ( 129 / 1256 )

Copy link
Collaborator

@andrewsignori-aot andrewsignori-aot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great and extensive work, looks good 👍

@github-actions
Copy link

E2E Workflow Workers Coverage Report

Totals Coverage
Statements: 33.02% ( 177 / 536 )
Methods: 22.08% ( 17 / 77 )
Lines: 40.1% ( 158 / 394 )
Branches: 3.08% ( 2 / 65 )

@github-actions
Copy link

E2E Queue Consumers Coverage Report

Totals Coverage
Statements: 68.32% ( 371 / 543 )
Methods: 57.97% ( 40 / 69 )
Lines: 70.47% ( 327 / 464 )
Branches: 40% ( 4 / 10 )

@github-actions
Copy link

E2E SIMS API Coverage Report

Totals Coverage
Statements: 41.56% ( 2918 / 7022 )
Methods: 34.76% ( 317 / 912 )
Lines: 46.82% ( 2455 / 5243 )
Branches: 16.84% ( 146 / 867 )

Copy link
Collaborator

@guru-aot guru-aot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nice work @ann-aot

Copy link
Collaborator

@dheepak-aot dheepak-aot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making the changes @ann-aot 👍

@ann-aot ann-aot merged commit 0a291df into main May 15, 2023
@ann-aot ann-aot temporarily deployed to DEV May 15, 2023 18:32 — with GitHub Actions Inactive
@ann-aot ann-aot temporarily deployed to DEV May 15, 2023 18:32 — with GitHub Actions Inactive
@ann-aot ann-aot temporarily deployed to DEV May 15, 2023 18:42 — with GitHub Actions Inactive
@ann-aot ann-aot deleted the feature/sims-#1791 branch May 15, 2023 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Institution Institution Features Ministry Ministry Features SIMS-Api SIMS-Api
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants