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

#1792-Enable application details for public institution user #1914

Conversation

guru-aot
Copy link
Collaborator

@guru-aot guru-aot commented May 1, 2023

Enable application details page for public institution user

Acceptance Criteria

  • Enable authorization paths to Application details for Public institution user.
  • Enable application to be visualized for Public institution user.
  • Build E2E test.

The sidebar for the application details is added till students, @ann-aot will update the assessments part.
image

Additional screenshots on the Application details page.
image

@guru-aot guru-aot marked this pull request as ready for review May 2, 2023 22:09
name: InstitutionRoutesConst.STUDENT_APPLICATION_DETAILS,
props: true,
component: InstitutionApplicationView,
meta: {
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe we don't need these meta for children if the parent has the same meta

Copy link
Contributor

Choose a reason for hiding this comment

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

did u test this scenario @guru-aot . just to confirm

@@ -79,15 +79,18 @@ export class ApplicationApi extends HttpBaseClient {

/**
* API Client for application detail.
* @param applicationId
* @returns
* @param applicationId for the application.
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@@ -15,7 +15,7 @@
Student Application Details
{{
applicationDetail.applicationNumber
? " - " + applicationDetail.applicationNumber
? HYPHEN_WITH_SPACE + applicationDetail.applicationNumber
Copy link
Collaborator

Choose a reason for hiding this comment

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

Will there be an application here without number? We can skip the expression if there is no such possibility.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Student Application Details
{{
applicationDetail.applicationNumber
? HYPHEN_WITH_SPACE + applicationDetail.applicationNumber
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

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

removed it and used emptyStringFiller

@@ -10,6 +10,7 @@ dayjs.extend(customParseFormat);

const DEFAULT_EMPTY_VALUE = "-";
export const DATE_ONLY_ISO_FORMAT = "YYYY-MM-DD";
export const HYPHEN_WITH_SPACE = " - ";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please see #1914 (comment)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

removed it

});
});

it("Should not have access to get the student application details if the student submitted and application to non-public institution.", async () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Minor: we're using "Should/when" in the test cases.

Copy link
Contributor

@ann-aot ann-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 @guru-aot 👍. Thanks for doing the changes

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.

Thanks for doing the changes, looks good 👍

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.

Looks good!

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 doing the changes @guru-aot 👍LGTM.

@sonarqubecloud
Copy link

sonarqubecloud bot commented May 4, 2023

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

github-actions bot commented May 4, 2023

Backend Unit Tests Coverage Report

Totals Coverage
Statements: 18.12% ( 2010 / 11091 )
Methods: 8.3% ( 119 / 1434 )
Lines: 20.91% ( 1762 / 8427 )
Branches: 10.49% ( 129 / 1230 )

@github-actions
Copy link

github-actions bot commented May 4, 2023

E2E Workflow Workers Coverage Report

Totals Coverage
Statements: 32.41% ( 176 / 543 )
Methods: 21.25% ( 17 / 80 )
Lines: 39.25% ( 157 / 400 )
Branches: 3.17% ( 2 / 63 )

@github-actions
Copy link

github-actions bot commented May 4, 2023

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 )

@guru-aot guru-aot merged commit 60ef9c7 into main May 4, 2023
@guru-aot guru-aot temporarily deployed to DEV May 4, 2023 21:05 — with GitHub Actions Inactive
@guru-aot guru-aot temporarily deployed to DEV May 4, 2023 21:06 — with GitHub Actions Inactive
@guru-aot guru-aot deleted the feature/#1792-Enable_Application_Details_For_Public_Institution_User branch May 4, 2023 21:07
@github-actions
Copy link

github-actions bot commented May 4, 2023

E2E SIMS API Coverage Report

Totals Coverage
Statements: 40.33% ( 2764 / 6854 )
Methods: 33.45% ( 298 / 891 )
Lines: 45.62% ( 2333 / 5114 )
Branches: 15.67% ( 133 / 849 )

@guru-aot guru-aot temporarily deployed to DEV May 4, 2023 21:19 — with GitHub Actions Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E2E/Unit tests Institution Institution Features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants