Skip to content

Develop a new API endpoint to store crash logs#103

Merged
SauravBizbRolly merged 1 commit intorelease-3.10.0from
vb/release-3.10.0
Dec 8, 2025
Merged

Develop a new API endpoint to store crash logs#103
SauravBizbRolly merged 1 commit intorelease-3.10.0from
vb/release-3.10.0

Conversation

@vishwab1
Copy link
Copy Markdown
Member

@vishwab1 vishwab1 commented Dec 8, 2025

📋 Description

JIRA ID: AMM-1915

We need to implement a secure backend API to allow the mobile app to upload crash log files along with metadata. The uploaded crash logs must be stored in a structured folder format on the server with strict validation and security.

API Endpoint
POST /crash-logs/upload

Request Format:

Content-Type: multipart/form-data

Headers:
JwtToken: <JWT_TOKEN>
User-Agent:

Body:
file = crash log file (.txt)
metadata = JSON string

Metadata JSON:
{
"appVersion": "1.2.3",
"deviceId": "abc123xyz",
"timestamp": "2024-11-25 06:30:00"
}

Rules:
Only .txt files allowed
Frontend must send timestamp in "yyyy-MM-dd HH:mm:ss" format
Metadata will be used to generate filename: userId_appVersion_deviceId_timestamp.txt

Example filename:
963_1.2.3_abc123xyz_2024-11-25_06-30-00.txt

✅ Type of Change

  • 🐞 Bug fix (non-breaking change which resolves an issue)
  • New feature (non-breaking change which adds functionality)
  • 🔥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 🛠 Refactor (change that is neither a fix nor a new feature)
  • ⚙️ Config change (configuration file or build script updates)
  • 📚 Documentation (updates to docs or readme)
  • 🧪 Tests (adding new or updating existing tests)
  • 🎨 UI/UX (changes that affect the user interface)
  • 🚀 Performance (improves performance)
  • 🧹 Chore (miscellaneous changes that don't modify src or test files)

ℹ️ Additional Information

Please describe how the changes were tested, and include any relevant screenshots, logs, or other information that provides additional context.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Dec 8, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch vb/release-3.10.0

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@SauravBizbRolly SauravBizbRolly merged commit c6bfcc8 into release-3.10.0 Dec 8, 2025
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.

2 participants