Skip to content

Conversation

@antaripdebgupta
Copy link
Contributor

Description

Added validation to prevent uploading empty CSV files. Before processing, the code trims the CSV content and checks if it is empty. If empty, an error message is displayed, and execution stops.

Changes

  • Trimmed the CSV content (.trim()) before processing..
  • If the file is empty, an error message (this.errorMessage = this.$t('HeuristicsSettings.messages.emptyCsvFile')) is displayed.
  • Stopped execution to prevent further processing.
  • Added error message: "emptyCsvFile": "The CSV file is empty. Please provide a file with data."

Related Issue

Fixes #733

Screenshots

After Fix:

fix

Testing

  • Attempted to upload an empty CSV file → Proper error message displayed.
  • Uploaded a valid CSV file → Processed successfully without issues.

@sonarqubecloud
Copy link

@antaripdebgupta
Copy link
Contributor Author

antaripdebgupta commented Mar 22, 2025

Hi @marcgc21 ,
My PR is failing due to missing Firebase secrets (VUE_APP_FIREBASE_API_KEY, etc.). Could you verify if the secrets are properly configured? Thanks!

@marcgc21 marcgc21 requested review from marcgc21 and yuri-pro07 April 3, 2025 10:48
@yuri-pro07 yuri-pro07 self-assigned this Apr 4, 2025
@marcgc21 marcgc21 merged commit 8694db5 into ruxailab:develop Apr 5, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[🐞 BUG]: Empty CSV File Allowed Without Validation

3 participants