Git Product home page Git Product logo

sef-core's People

Contributors

anjula-sack avatar dependabot[bot] avatar gimhan-minion avatar gravewalker666 avatar jayasanka-sack avatar kumuditha-udayanga avatar piumal1999 avatar yohanavishke avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

sef-core's Issues

Categories and subcategories can't be deleted

Describe the bug
When deleting a category or subcategory with the DELETE request, it throws 500 internal server error

To Reproduce
Steps to reproduce the behavior:

  1. Try to delete a category or subcategory using DELETE request
  2. See error

Expected behavior
Subcategory and category get deleted. Orphans also should be removed

Screenshots
received_314879169916605

Desktop (please complete the following information):

  • OS: [e.g. iOS] Ubuntu 19.04
  • Postman

Additional context
N/A

Categories API payload is not in order as a list

Is your feature request related to a problem? Please describe.

  • Category API payload content order is changing every time because it's not in type list

Describe the solution you'd like

  • Make the Category API payload content as a list

Update the subcategory, item payloads to contain parent data

Is your feature request related to a problem? Please describe.
GET Subcategory payload should contain the category of that subcategory.
GET Item payload should contains the subcategories of that item.

Describe the solution you'd like
Remove the data that needs to be returned from @JsonIgnoreProperties annotation in respective classes

Describe alternatives you've considered
N/A

Additional context
Related thread:
https://sef.discourse.group/t/design-forum-updating-academix-admin-panel/133/3

Refactoring Academix APIs to reuse the Entity classes

Is your feature request related to a problem? Please describe.
A lot of Java POJO classes have been created to manage Academix related operations. As the numbers will grow over the years we have to have a solid method to handle the Academix APIs.

Describe the solution you'd like
All the Projections and DTOs classes that were created to transfer data from and to the backend can be replaced by already existing Entity classes, which were created to persist the data.
This will require few changes to the Entity classes as well as to the Service logic.

Describe alternatives you've considered
N/A

Additional context
N/A

Add pagination for Ambassadors

Is your feature request related to a problem? Please describe.

  • We need pagination for ambassadors because there will be a lot of ambassadors.

Describe the solution you'd like

  • Add pagination for Ambassadors

Add separate typescript files for front-end interfaces.

Is your feature request related to a problem?
Current front-end file structure contains "interfaces" in the index file itself.

Describe the solution you'd like
Create a separate typescript file named as "interfaces.ts" and add interface code lines to it.

Make mandatory columns not nullable

Is your feature request related to a problem? Please describe.
We have to validate these columns not to be null because the English translations are mandatory

  • name on category,sub category and item
  • description on item

Describe the solution you'd like
Add NotNull annotations

Describe alternatives you've considered
N/A

Additional context
N/A

Adding translations feature is not working on Academix

Describe the bug
Translations can't be added when creating category, subcategory and item.

To Reproduce
Steps to reproduce the behavior:

  1. Check category,subcategory,item POST requests (with translations)
  2. See error

Expected behavior
Creating the relevant entries on the database

Screenshots
received_328007751569742

Desktop (please complete the following information):

  • OS: Ubuntu 19.04
  • Postman

Additional context

  • Add languages as enums

Create controller API for the backend of the sef-fellowship

Is your feature request related to a problem? Please describe.
Need to write a web app to manage the backend of the sef-fellowship certificate generator.

Describe the solution you'd like
Write a rest controller to be able to the following operations,

  • Create a certificate
  • List all the certificates
  • Delete a certificate

Describe alternatives you've considered
N/A

Additional context
You can find a detailed description of the project here, https://sef.discourse.group/t/developing-an-admin-platform-for-sef-fellowship-program/20/16

Sef-core returns page not found error

Describe the bug
Sef core returns page not found error when started using tomcat server

To Reproduce
Steps to reproduce the behavior:

  1. Start core.war using tomcat
  2. See the error

Expected behavior
A clear and concise description of what you expected to happen.
The core should start properly

Screenshots
HTTP_Status_404_–Not_Found-_2020-06-04_17 08 56

Desktop (please complete the following information):

  • OS: [e.g. iOS] Ubuntu 19.04
  • Browser [e.g. chrome, safari] Google Chrome
  • Version [e.g. 22]

Additional context
#43

Show page title in categories, subcategories and items

Is your feature request related to a problem? Please describe.

  • We need to show the page title in the relevant pages. For example, when clicking a category, the page should display the category name as well instead of just displaying subcategories as the title.

Describe the solution you'd like

  • Add page titles for categories, subcategories, and items

Tables don't generated automatically

Is your feature request related to a problem? Please describe.

  • When after you build the project and when you try to run the project core.war won't run because it doesn't recognize the database.

Describe the solution you'd like

  • Add spring.jpa.hibernate.ddl-auto = update to application.properties.example

Initiate the project

Initiate the project with the following modules.

  1. frontend
    2 backend (A spring boot application)

Update Travis build for auto deployment

Is your feature request related to a problem? Please describe.
Built war files have to be auto-deployed into the test servers.

Describe the solution you'd like
When a new PR to the Master branch is merged, the war file with the updated code has to be auto deployed. To achieve this Travis build have to be updated.

Describe alternatives you've considered
Manually adding war files for each PR :(

Additional context
N/A.

Add pagination to the certificate list retrieving endpoint

Is your feature request related to a problem? Please describe.
A pagination feature is a necessity for the GET certificate list endpoint in certificate controller.

Describe the solution you'd like
Implement pagination to be functioned with a requested offset and a limit

Describe alternatives you've considered
N/A

Additional context
This is the original PR where the endpoint was written to list all the certificates in the database.
#26

Change the status code of PUT method response.

Is your feature request related to a problem? Please describe.

  • Currently, When editing a subcategory it gives 202 response code but it needs to be the status code of 200

Describe the solution you'd like

  • Change the status code of PUT method response from 202 to 200.

Create a edit component to edit the subcategory

Is your feature request related to a problem? Please describe.

  • We need to able to edit subcategory after created.

Describe the solution you'd like

  • Reuse AddSubcategory component as the edit subcategory

Add a PR Template

Description

  • In this repository a PR template is unavailable.

** Are you working on this issue? **
Yes.

Create an API to record engagements

Create an API to record engagements.

  • The endpoint should redirect user to the given event URL.
  • The same IP address should not be recorded twice for a certain interval

Add the remaining endpoints of multiverse controller

Is your feature request related to a problem? Please describe.
Need to add the remaining API endpoints of Multiverse Controller

Describe the solution you'd like
Needed endpoints are added as todo comments. Create those endpoints.

Describe alternatives you've considered
N/A

Additional context
N/A

Create API to get single Category/Sub Category by Id

Is your feature request related to a problem? Please describe.
We want API endpoints to get academix Category and Sub Category by given id

Describe the solution you'd like
Implement those 2 APIs.

Describe alternatives you've considered
N/A

Additional context
N/A

Can't update items, subcategories and category using PUT requests

Describe the bug
Only translations are updatable using item, subcategory, category put requests

To Reproduce
Steps to reproduce the behavior:

  1. Check 'core/academix/items' PUT Request
  2. See error(Only translations are updating)
    *same error on subcategory and category

Expected behavior
Being fully updatable

Screenshots
N/A

Desktop (please complete the following information):

  • OS: [e.g. iOS] Ubuntu 19.04
  • Postman

Additional context
N/A

Create a view to add certificates

Is your feature request related to a problem? Please describe.
Need a new view to create new certificates.

Describe the solution you'd like

  • Create a new view to with a one text input to enter the name for the certificate and save it as a certificate.
  • Add Fellowship tab to the sider and the add menu on the navbar and nest this link as the add certificates.

Additional context
follow this link for more details.

Reuse the AddItem component to edit the item

Is your feature request related to a problem? Please describe.

  • We need to able to edit item after created.

Describe the solution you'd like

  • Reuse AddItem component as the edit item

Academix subcategory pages returns 403 error

Describe the bug
Academix Subcategories returns 403 forbidden error

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'sefglobal.org/academix'
  2. Click on a category
  3. See error

Expected behavior
Displaying subcategories

Screenshots
Academix_Sustainable_Education_Foundation_-_2020-06-17_23 20 50
Screenshot from 2020-06-17 23-21-11

Desktop (please complete the following information):

  • OS: [e.g. iOS] Ubuntu 19.04
  • Browser [e.g. chrome, safari] Google Chrome
  • Version [e.g. 22]

Additional context
N/A

Create a component to add subcategories

Is your feature request related to a problem? Please describe.

  • We need to add subcategories using the admin dashboard

Describe the solution you'd like

  • Create a component to add subcategories

Remove duplicate api level and service level methods

Is your feature request related to a problem? Please describe.
Few methods exist with TODO remove method comments in the API and service m=level of Academix. These exist to help the migration to the new endpoints created via PR: #60

Describe the solution you'd like

  1. All the duplicating and outdated methods have to be removed
  2. URLs of new APIs that replace old APIs have to be changed into the old API's URLs

Describe alternatives you've considered
N/A

Additional context
N/A

Make fellowship endpoints public

Is your feature request related to a problem? Please describe.
We need GET certificate by id endpoint public because we need to display the content in our main website.

Describe the solution you'd like

  • Divide the current controller into two categories as fellowship and fellowship/admin
  • Create a new package for fellowship and add all the necessary files
  • Grant public access to /fellowship endpoints and make /fellowship/admin endpoints authorized

Additional context
Take a look at the academix package to get an idea

Add University as a submenu

Is your feature request related to a problem? Please describe.

  • We need to add University as a submenu under multiverse.

Describe the solution you'd like

  • Add University as a submenu

403 error occurred when accessing academix endpoints from the UI

Describe the bug
On AcademiX front end app requests on AcademiX data retrieval endpoints caught an error, logging 403 status code on the console.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Academix frontend app'
  2. Open dev tools
  3. See error

Screenshots
image

Desktop (please complete the following information):

  • OS: Ubuntu 20.04
  • Browser Google Chrome

Additional context
This particular status code was sent by the API because the endpoints require an authorization. Making AcademiX endpoints public would do the trick.

Enable Travis build

Is your feature request related to a problem? Please describe.
The Travis build isn't configured yet.

Describe the solution you'd like
Configure the Travis build.

Create an option to delete categories, subcategories, items

Is your feature request related to a problem? Please describe.

  • We need to be able to delete categories, subcategories, items from the dashboard

Describe the solution you'd like

  • Create an option to delete categories, subcategories, items

Academix categories cannot be updated

Describe the bug
Academix categories put request throws 500 internal server error

To Reproduce
Steps to reproduce the behavior:

  1. Update a category using core/academix/categories/{id} PUT request
  2. See error

Expected behavior
Updating the category.

Screenshots
received_736833670397302

Desktop (please complete the following information):

  • OS: Ubuntu 19.04
  • Browser [e.g. chrome, safari] N/A
  • Postman

Additional context
N/A

AcadeMix Backend

Is your feature request related to a problem? Please describe.
Adding support to manage AcadeMix website-related data.

Describe the solution you'd like
To fully manage data of AcadeMix we have divided the data into multiple entities and have added APIs to execute CRUD operations.

Describe alternatives you've considered
N/A

Additional context
N/A

Update readme.md

Is your feature request related to a problem?
The readme file doesn't contain details about Academix backend

Describe the solution you'd like
Update the readme file.

Fix the bug in categories index file

Is your feature request related to a problem?
There's an missing 'else' statement in this file.

Describe the solution you'd like
Add the missing 'else' statement to fix the bug.

Create a view for ambassadors

Is your feature request related to a problem? Please describe.

  • Currently, we can't see the added student ambassadors so we need to view them just like viewing the universities.

Describe the solution you'd like

  • Create a view for ambassadors under multiverse

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.