fossology / FOSSologyUI

Repository to hold the new UI framework for FOSSology built with React
https://fossology.github.io/FOSSologyUI/
GNU General Public License v2.0
49 stars 87 forks source link

feat(integration): Integrated the fossology maintenance page. #252

Closed dushimsam closed 2 years ago

dushimsam commented 2 years ago

Description

Integrated the Fossology maintenance page to the REST API in charge of activating the maintenance operations on the backend.

Changes

  1. Added API call functions and services and linked them to the endpoint.
  2. Designed the functions to prepare the user request suitable for the API.

How to test

  1. Run npm start at the project's diretory.
  2. Visit /admin/mantainance.
  3. Select operations of your choice.
  4. Press submit button

Example

https://user-images.githubusercontent.com/66276301/184678066-360fc503-8dd6-4746-8848-68f90f31d615.mp4

shaheemazmalmmd commented 2 years ago

@dushimsam Please fix the testcases.

dushimsam commented 2 years ago

@dushimsam Please fix the testcases.

sir , it was the problem from the already existing test-cases for getAllLicenseApi , createCandidateLicenseApi , getInfoApi & getHealthApi which were not passing; thus interfered with my work, but i have managed to go through them again and fix the problem that was there.

github-actions[bot] commented 2 years ago

This pull request has conflicts, please rebase to resolve those before we can evaluate the pull request.

dushimsam commented 2 years ago

This pull request has conflicts, please rebase to resolve those before we can evaluate the pull request.

resolved conflicts

shaheemazmalmmd commented 2 years ago

Tested the branch was not able to schedule the maintenance agent. Please check. screenShot49

dushimsam commented 2 years ago

Tested the branch was not able to schedule the maintenance agent. Please check. screenShot49

sorry issue fixed now.

shaheemazmalmmd commented 2 years ago

@dushimsam : branch is working fine. A suggestion ?

dushimsam commented 2 years ago

@dushimsam : branch is working fine. A suggestion ?

  • You can uncheck the selected checkboxes if the agent schedule is successful.
  • In case of agent/schedule failure you can keep the checkboxes checked.

on it sir

dushimsam commented 2 years ago

Everything working perfectly now sir , would you check again.