sef-global / scholarx-backend-v1 Goto Github PK
View Code? Open in Web Editor NEWThe backend of the ScholarX project
License: MIT License
The backend of the ScholarX project
License: MIT License
Describe the bug
RenameProgramState
to ProgramStatus
Rename state
attribute of Program
tostatus
Is your feature request related to a problem? Please describe.
We need an admin endpoint to delete a Mentee.
Describe the solution you'd like
Documentation: https://documenter.getpostman.com/view/8545501/T1LLFTrx?version=latest#cccd353a-2fc1-433b-b20a-166e603207b4
Describe alternatives you've considered
N/A
Additional context
N/A
Is your feature request related to a problem? Please describe.
Authenticated users need to be persisted in the Database.
Describe the solution you'd like
http
.oauth2Login(oauth2 -> oauth2
.userInfoEndpoint(userInfo -> userInfo
.userService(this.oauth2UserService())
...
)
);
The above configuration needs to be added with custom user service(oauth2UserService
). Which then will get the profile data(Email address and profile-pic link are not included. These are provided through different APIs). and persist in the table.
Describe alternatives you've considered
N/A
Additional context
N/A
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Is your feature request related to a problem? Please describe.
Since we decided to use 2 repos for frontend and backendapi
module can be removed from the project
Describe the solution you'd like
Refactor and move pom files and other files in api
module to the root, with the necessary pom changes.
Describe alternatives you've considered
N/A
Additional context
N/A
Is your feature request related to a problem? Please describe.
Logged in user if he/she is a mentee should be able to get his/her mentee profile.
Describe the solution you'd like
API should identify the mentee through mentorId and userId and return the relavant mentee
API path : /mentors/{id}/mentee
Headers: user-id
Response: Mentee object
Describe alternatives you've considered
N/A
Additional context
https://sef.discourse.group/t/implementing-the-relevant-views-for-mentees-in-a-program/198/25
Is your feature request related to a problem? Please describe.
We need a mentee endpoint to get the list of applied mentors
Describe the solution you'd like
Documentation: https://documenter.getpostman.com/view/8545501/T1LLFTrx?version=latest#e116ce69-5fa2-47c5-a33e-28ffc8f3bf63
Describe alternatives you've considered
N/A
Additional context
N/A
Describe the bug
Travis build fails when decrypting the private key.
To Reproduce
Steps to reproduce the behavior:
Restart build
Expected behavior
Build should pass with successful web app deployment
Screenshots
Stacktrace
Desktop (please complete the following information):
N/A
Smartphone (please complete the following information):
N/A
Additional context
N/A
Is your feature request related to a problem? Please describe.
We need a mentee endpoint to edit mentee application
Describe the solution you'd like
Documentation: https://documenter.getpostman.com/view/8545501/T1LLFTrx?version=latest#dec99bfb-5ed0-46fe-a961-35a24a783b20
Describe alternatives you've considered
N/A
Additional context
N/A
Is your feature request related to a problem? Please describe.
We need a mentor endpoint to edit mentor application
Describe the solution you'd like
Documentation: https://documenter.getpostman.com/view/8545501/T1LLFTrx?version=latest#bfcbbb87-cc91-4d19-b743-693371f905c2
Describe alternatives you've considered
N/A
Additional context
N/A
Is your feature request related to a problem? Please describe.
We need an admin endpoint to delete a program.
Describe the solution you'd like
https://documenter.getpostman.com/view/8545501/T1LLFTrx?version=latest#18508655-0b56-497e-95b5-d60d906b7db9
Describe alternatives you've considered
N/A
Additional context
N/A
Is your feature request related to a problem? Please describe.
We need an admin endpoint to update a Program's lifecycle.
Describe the solution you'd like
Documentation: https://documenter.getpostman.com/view/8545501/T1LLFTrx?version=latest#3de97ca7-a97f-48d7-955c-f9ca86ca67d0
Describe alternatives you've considered
N/A
Additional context
N/A
Is your feature request related to a problem? Please describe.
We need an endpoint to get a mentor by the Mentor Id
Describe the solution you'd like
Add the endpoint with unit tests.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
N/A
Additional context
Add any other context or screenshots about the feature request here.
N/A
Is your feature request related to a problem? Please describe.
We need to have a json response payload for all DELETE API endpoints for frontend usages
Describe the solution you'd like
Add a JSON response payload
Describe alternatives you've considered
N/A
Additional context
N/A
Is your feature request related to a problem? Please describe.
Admins should be able to get mentees of a mentor
Describe the solution you'd like
API should identify the mentor through programId
and userId
and return the relevant mentees.
API path : admin/programs/{id}/mentor/mentees
Query param: state(list of states): null, PENDING, APPROVED(mentee states)
Headers: user-id
Response: Mentee object
Describe alternatives you've considered
N/A
Additional context
N/A
Describe the bug
The state should not send as a parameter when creating/editing the state of a program.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Screenshots
N/A
Desktop (please complete the following information):
Additional context
Update the test cases.
Is your feature request related to a problem? Please describe.
We need an common endpoint to get a specific program by id
Describe the solution you'd like
Documentation: https://documenter.getpostman.com/view/8545501/T1LLFTrx?version=latest#667d4e91-0c20-43b9-a86b-620ae8999000
Describe alternatives you've considered
N/A
Additional context
N/A
Is your feature request related to a problem? Please describe.
Add test cases for Repository methods of JPA.
Describe the solution you'd like
Describe alternatives you've considered
N/A
Additional context
PR: #27 should be merged beforehand.
Is your feature request related to a problem? Please describe.
Users need method to register themselves for the platform
Describe the solution you'd like
An SSO is more suitable. The most suitable provider is Linkedin.
Describe alternatives you've considered
N/A
Additional context
N/A
Is your feature request related to a problem? Please describe.
For user APIs, we need to get the user's profile from the session
Describe the solution you'd like
Get the profileId from a cookie
Describe alternatives you've considered
N/A
Additional context
Hive thread:
https://sef.discourse.group/t/creating-mock-user-apis/207?u=piumal1999
Is your feature request related to a problem?
No pull request template.
Describe the solution you'd like
Add the same PR template we use in SEF-site.
Is your feature request related to a problem? Please describe.
We need an admin endpoint to create a program.
Describe the solution you'd like
Documentation: https://documenter.getpostman.com/view/8545501/T1LLFTrx?version=latest#83244ed3-c34e-48f1-b81e-22c24910a351
Describe alternatives you've considered
N/A
Additional context
N/A
Is your feature request related to a problem? Please describe.
JPA entity classes have to be added to handle the data. Which will then be use for backend logic.
Describe the solution you'd like
Create Classes with the specific annotations using the designed class diagram: https://drive.google.com/file/d/13BsmmxXJBgv3Ul5khC2Isac3Z7IxdfOU/view?usp=sharing
Describe alternatives you've considered
N/A
Additional context
N/A
Is your feature request related to a problem? Please describe.
It'll be more readable if we can change the program state MENTEE_APPLY to MENTEE_APPLICATION
Describe the solution you'd like
Update the ENUM
Describe alternatives you've considered
N/A
Additional context
N/A
Is your feature request related to a problem? Please describe.
We need an mentor endpoint to get all the mentees applied under the mentor
Describe the solution you'd like
Documentation: https://documenter.getpostman.com/view/8545501/T1LLFTrx?version=latest#f9ff3fa7-8a66-4fc4-8f26-d88e889837f6
Describe alternatives you've considered
N/A
Additional context
N/A
Is your feature request related to a problem? Please describe.
We need an user endpoint to apply as a mentor
Describe the solution you'd like
Documentation: https://documenter.getpostman.com/view/8545501/T1LLFTrx?version=latest#21a17d15-2193-4fcc-8748-94ae5869c372
Describe alternatives you've considered
N/A
Additional context
N/A
Is your feature request related to a problem? Please describe.
Database support has to be added to persist data of the platform
Describe the solution you'd like
MySQL configuration for the SpringBoot have to be added with the script to create the database
Describe alternatives you've considered
N/A
Additional context
N/A
Is your feature request related to a problem? Please describe.
API with the ability to edit an existing program.
Describe the solution you'd like
API should update a Program
Describe alternatives you've considered
N/A
Additional context
Add test cases for the API.
Is your feature request related to a problem? Please describe.
We need an endpoint to list all Mentors
Describe the solution you'd like
Add the endpoint with unit tests
Describe alternatives you've considered
N/A
Additional context
N/A
Is your feature request related to a problem? Please describe.
We need an user endpoint to apply as a mentee
Describe the solution you'd like
Documentation: https://documenter.getpostman.com/view/8545501/T1LLFTrx?version=latest#574343a4-8d10-4876-8dfd-bf656efe37ff
Describe alternatives you've considered
N/A
Additional context
N/A
Describe the bug
An infinite loop is running when /program/{id}/mentors/ endpoint is called.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Load the data without bugs
Desktop (please complete the following information):
Additional context
N/A
Is your feature request related to a problem? Please describe.
We need an common endpoint to get the list of programs
Describe the solution you'd like
Documentation: https://documenter.getpostman.com/view/8545501/T1LLFTrx?version=latest#4c904811-0a86-468c-b844-09266d9c373d
Describe alternatives you've considered
N/A
Additional context
N/A
Is your feature request related to a problem? Please describe.
Unit tests of common APIs and user APIs are mixed up in the same directory ( controller/)
Describe the solution you'd like
Move the admin APIs to a seperate directory (controller/admin)
Describe alternatives you've considered
N/A
Additional context
@YohanAvishke wdyt?
Is your feature request related to a problem? Please describe.
Logged in user if he/she is a mentor should be able to get his/her mentor profile.
Describe the solution you'd like
API should identify the mentor through programId
and userId
and return the relavant mentor
API path : /programs{id}/mentor
Headers: user-id
Response: Mentor object
{
"id": 1,
"profile": {
"id": 1,
"uid": "",
"email": "",
"firstName": "",
"lastName": "",
"imageUrl": "",
"linkedinUrl": "",
"headline": ""
},
"program": {
"id": 1,
"title": "",
"headline": "",
"imageUrl": "",
"landingPageUrl": "",
"state": ""
},
"state": "",
"application": "",
"prerequisites": ""
}
Describe alternatives you've considered
N/A
Additional context
N/A
Is your feature request related to a problem? Please describe.
We need an admin endpoint to get mentors of a Program.
Describe the solution you'd like
Documnetaion: https://documenter.getpostman.com/view/8545501/T1LLFTrx?version=latest#045b12ed-9936-40c0-8c5c-86d0b88425a7
Describe alternatives you've considered
N/A
Additional context
N/A
Is your feature request related to a problem? Please describe.
Swagger documentation is preferred to ease the work in the APIs.
Describe the solution you'd like
Swagger and Swagger UI configurations need to be added through a @configuration
class
Describe alternatives you've considered
N/A
Additional context
N/A
Is your feature request related to a problem? Please describe.
We need a mentee endpoint to apply for mentors
Describe the solution you'd like
Documentation: https://documenter.getpostman.com/view/8545501/T1LLFTrx?version=latest#fcb3d7df-7d88-4e4c-8a13-d5ed8ace591f
Describe alternatives you've considered
N/A
Additional context
N/A
Is your feature request related to a problem? Please describe.
Test cases will fail with 403
if the authentication headers are not present.
Describe the solution you'd like
Describe alternatives you've considered
N/A
Additional context
This issue should be solved immediately after merging PR: #13
Is your feature request related to a problem? Please describe.
We need an common endpoint to get the list of mentors of a program
Describe the solution you'd like
Documentation: https://documenter.getpostman.com/view/8545501/T1LLFTrx?version=latest#150365fe-de33-4e24-9ef1-f797cc18fb10
Describe alternatives you've considered
N/A
Additional context
N/A
Is your feature request related to a problem? Please describe.
The project has to be automatically built and deployed when commits are made to the master branch
Describe the solution you'd like
Configure Travis build
Is your feature request related to a problem? Please describe.
We need a mentee endpoint to get the selected mentors for the mentee
Describe the solution you'd like
Documentation: https://documenter.getpostman.com/view/8545501/T1LLFTrx?version=latest#28a47500-90df-49ee-a761-d368a59ebedf
Describe alternatives you've considered
N/A
Additional context
N/A
Is your feature request related to a problem? Please describe.
Add necessary configs(database, api, etc.) to the application properties
Describe the solution you'd like
Edit application.properties file with necessary configurations.
Describe alternatives you've considered
N/A
Additional context
N/A
Describe the bug
When creating a PR Github doesn't locate the PR template
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A template to add data should be available
Desktop (please complete the following information):
Smartphone (please complete the following information):
N/A
Additional context
Add any other context about the problem here.
Is your feature request related to a problem? Please describe.
We need a mentor endpoint to approve or reject a mentee
Describe the solution you'd like
Documentation: https://documenter.getpostman.com/view/8545501/T1LLFTrx?version=latest#377e9e2f-1e6f-4ab2-b95e-1035b653573d
Describe alternatives you've considered
N/A
Additional context
N/A
Is your feature request related to a problem? Please describe.
The request body isn’t validated.
ex: throws 500 when a not null field is not available in the body
Describe the solution you'd like
Ex:
If the landing page URL or image URL is not in the body, it adds a null value for them. It should return a bad request.
Describe alternatives you've considered
N/A
Additional context
N/A
Is your feature request related to a problem? Please describe.
While we are having discussions on this project we need to create a basic structure for the project.
Describe the solution you'd like
Is your feature request related to a problem? Please describe.
Few changes are requested for the scholarX database
Describe the solution you'd like
Add a column for mentor application
Rename questionnaire to the prerequisite
Describe alternatives you've considered
N/A
Additional context
https://sef.discourse.group/t/design-the-initial-erd-of-scholarx/72
Is your feature request related to a problem? Please describe.
We need an admin endpoint to update Mentor's status.
Describe the solution you'd like
Documentation: https://documenter.getpostman.com/view/8545501/T1LLFTrx?version=latest#c62ff4a1-ce92-4b46-b7e3-de2ae77595d8
Describe alternatives you've considered
N/A
Additional context
N/A
Is your feature request related to a problem? Please describe.
As discussed in this thread we have to generate tables using JPA
Describe the solution you'd like
Add the suitable annotations to create the tables and relationships
Describe alternatives you've considered
N/A
Additional context
N/A
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.