Hi, In this thread, I have added some test cases that I ran for each feature in the admin section.
Feel free to add your suggestions and comments too. @Gravewalker @anjisvj @jaye
Test Cases:
1. Create a program:
Issues: None
Suggestions: N/A
2. Edit Program:
Issues: None
Suggestions: N/A
3. Changing State:
Issues: None
Suggestions: N/A
4. Manage Mentors:
Issues: None
Suggestions: N/A
5. Manage Mentee:
Issues: An error occurs when removing a mentee
Error, User has not enrolled in any program as a mentor.
2021-06-04 22:38:20.611 WARN 63008 — [nio-8080-exec-9] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.HttpRequestMethodNotSupportedException: Request method ‘DELETE’ not supported]
Suggestions: To show which mentor the mentee belongs to.
6. Logout:
Issues: None
Suggestions: N/A
3 Likes
Error, User has not enrolled in any program as a mentor.
2021-06-04 22:38:20.611 WARN 63008 — [nio-8080-exec-9] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.HttpRequestMethodNotSupportedException: Request method ‘DELETE’ not supported]
In the deployed version, the admin dashboard disappear few seconds after loading.
Can you please check that using the live demo.
jaye
June 5, 2021, 8:43am
5
Thanks for the detailed thread @kumuditha_udayanga !
I found the same issue while testing the cloud version.
created an issue as well.
opened 08:39AM - 05 Jun 21 UTC
closed 03:07PM - 07 Jun 21 UTC
**Describe the bug**
The front end crashes when visiting the change state view … in the deployed version.
**To Reproduce**
Steps to reproduce the behaviour:
1. Go to https://sef-scholarx.herokuapp.com/
2. Click on 'the manage button of an application
4. See the error
**Expected behaviour**
The dashboard should load without an issue
**Screenshots**

**Log**
```
bundle.js:305 Error: Minified React error #321; visit https://reactjs.org/docs/error-decoder.html?invariant=321 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at Object.Ko (bundle.js:305)
at t.useState (bundle.js:297)
at my (bundle.js:321)
at $o (bundle.js:305)
at gl (bundle.js:305)
at cs (bundle.js:305)
at ls (bundle.js:305)
at Ql (bundle.js:305)
at bundle.js:305
at t.unstable_runWithPriority (bundle.js:313)
nl @ bundle.js:305
bundle.js:305 TypeError: Cannot read property 'removeChild' of null
at o.value (bundle.js:8)
at o.value (bundle.js:8)
at bundle.js:305
at il (bundle.js:305)
at ul (bundle.js:305)
at fs (bundle.js:305)
at t.unstable_runWithPriority (bundle.js:313)
at Wr (bundle.js:305)
at ps (bundle.js:305)
at Ql (bundle.js:305)
nl @ bundle.js:305
bundle.js:305 DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
at ul (https://sef-scholarx.herokuapp.com/dist/bundle.js:305:86650)
at fs (https://sef-scholarx.herokuapp.com/dist/bundle.js:305:99857)
at t.unstable_runWithPriority (https://sef-scholarx.herokuapp.com/dist/bundle.js:313:3844)
at Wr (https://sef-scholarx.herokuapp.com/dist/bundle.js:305:45023)
at ps (https://sef-scholarx.herokuapp.com/dist/bundle.js:305:97717)
at Ql (https://sef-scholarx.herokuapp.com/dist/bundle.js:305:93871)
at https://sef-scholarx.herokuapp.com/dist/bundle.js:305:45314
at t.unstable_runWithPriority (https://sef-scholarx.herokuapp.com/dist/bundle.js:313:3844)
at Wr (https://sef-scholarx.herokuapp.com/dist/bundle.js:305:45023)
at Kr (https://sef-scholarx.herokuapp.com/dist/bundle.js:305:45259)
nl @ bundle.js:305
bundle.js:305 Error: Minified React error #321; visit https://reactjs.org/docs/error-decoder.html?invariant=321 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at Object.Ko (bundle.js:305)
at t.useState (bundle.js:297)
at my (bundle.js:321)
at $o (bundle.js:305)
at gl (bundle.js:305)
at cs (bundle.js:305)
at ls (bundle.js:305)
at Ql (bundle.js:305)
at bundle.js:305
at t.unstable_runWithPriority (bundle.js:313)
nl @ bundle.js:305
bundle.js:313 Uncaught TypeError: Cannot read property 'removeChild' of null
at o.value (bundle.js:8)
at o.value (bundle.js:8)
at bundle.js:305
at il (bundle.js:305)
at ul (bundle.js:305)
at fs (bundle.js:305)
at t.unstable_runWithPriority (bundle.js:313)
at Wr (bundle.js:305)
at ps (bundle.js:305)
at Ql (bundle.js:305)
```
**Desktop (please complete the following information):**
- OS: MacOS
- Browser Chrome
- Version 91.0.4472.77 (Official Build) (arm64)
(Issue contains the log)
1 Like
I had the same issue, the deployed application isn’t loading. These test cases are done by running the master branch locally.
jaye
June 5, 2021, 9:40am
8
Also, the buttons in the home page refresh the whole application instead of routing.
jaye
June 7, 2021, 7:03am
9
The dashboard crashing issue has been fixed by @anjisvj !
@Gajindu_Bandara @Janeth_Fernando You can use https://sef-scholarx.herokuapp.com/ for testing
2 Likes
kumuditha_udayanga:
5. Manage Mentee:
Issues: An error occurs when removing a mentee
Error, User has not enrolled in any program as a mentor.
2021-06-04 22:38:20.611 WARN 63008 — [nio-8080-exec-9] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.HttpRequestMethodNotSupportedException: Request method ‘DELETE’ not supported]
@anjisvj @Gravewalker @jaye Where should i create the issue for this error (Which repository).
This should be a backend issue
1 Like
opened 03:56PM - 09 Jun 21 UTC
**Describe the bug**
The following error occurs when removing mentees as a admi… n in Admin Dashboard - Manage Mentees.
`Error, User has not enrolled in any program as a mentor.
2021-06-04 22:38:20.611 WARN 63008 — [nio-8080-exec-9] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.HttpRequestMethodNotSupportedException: Request method ‘DELETE’ not supported]`
**Screenshots**

**Desktop (please complete the following information):**
- OS: macOS Big Sur
- Browser Safari
- Version 14.0.1
Added a comment @kumuditha_udayanga .
1 Like
With the help of @piumal1999 the error was finally fixed , it occurred due to using a wrong endpoint in the front-end and in back-end MenteeService.java
file’s deleteMentee
method doesn’t include a command to delete the mentee.
To fix this error:
In front-end ManageMentee
's removeMentee
functions endpoint ${API_URL}/mentees/${id}
was replaced by ${API_URL}/admin/mentees/${id}
.
In back-end, add menteeRepository.deleteById(id);
to the end of deleteMentee
method.
1 Like
wow amazing job as always @kumuditha_udayanga