Skip to content

Fix: Remove debug logs and connect missing API calls#377

Open
Kasturijadhav14 wants to merge 2 commits into
fossology:mainfrom
Kasturijadhav14:fix/remove-console-logs-and-wire-api
Open

Fix: Remove debug logs and connect missing API calls#377
Kasturijadhav14 wants to merge 2 commits into
fossology:mainfrom
Kasturijadhav14:fix/remove-console-logs-and-wire-api

Conversation

@Kasturijadhav14

Copy link
Copy Markdown

Hey! This is my first contribution to FOSSologyUI. While exploring the codebase I found a few bugs where forms were not actually doing anything when submitted, and some errors were being silently swallowed. Here's what I fixed:

Bugs fixed:

  • Add License form (admin/license/create) — The form was completely disconnected from the backend. Clicking "Add License" only printed to the browser console. Now it actually calls the API, shows a success message, and resets the form.

  • Edit Upload form (organize/uploads/edit) — The submit button was showing a fake success message saying "Upload properties updated (not implemented)". Now it calls the real API to update the upload name and description.

  • Delete Uploads page (organize/uploads/delete) — Errors when fetching folders and uploads were being silently swallowed with console.error, so users had no idea something went wrong. Now errors are shown as alerts on screen.

  • One Shot Analysis page (upload/oneShotAnalysis) — Had two TODO comments with console.logs as placeholders. Added proper file state tracking so the selected file is available when the form submits.

Other changes:

  • Added updateUploadApi to src/api/upload.js
  • Added updateUpload to src/services/upload.js
  • Added update endpoint to src/constants/endpoints.js
  • Added updatedUploadProps message to src/constants/messages.js

Let me know if anything needs to be changed!

@github-actions

Copy link
Copy Markdown

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

@github-actions github-actions Bot added the has merge conflicts PR has merge conflicts, require rebase label Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

has merge conflicts PR has merge conflicts, require rebase

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant