Skip to content

feat: Add sharable analysis link - generate a permalink for results#188

Open
Vikrant0207 wants to merge 10 commits into
imDarshanGK:mainfrom
Vikrant0207:GSSoC-Contribution
Open

feat: Add sharable analysis link - generate a permalink for results#188
Vikrant0207 wants to merge 10 commits into
imDarshanGK:mainfrom
Vikrant0207:GSSoC-Contribution

Conversation

@Vikrant0207
Copy link
Copy Markdown

@Vikrant0207 Vikrant0207 commented May 20, 2026

Summary

Added a share feature that allows users to generate shareable links for code analysis results.

Closes Issue #132

Changes made:

  • Added POST /share/ and GET /share/{id} endpoints
  • Implemented SQLite storage for shared analyses with 7-day expiry support
  • Added Share button in the frontend with clipboard copy functionality
  • Added support for loading shared analyses using ?share=ID
  • Added read-only mode for shared results
  • Added backend tests for share creation and expiry handling
  • Updated README/documentation where needed

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor

Testing

  • I ran backend tests (pytest -q)
  • I tested frontend behavior manually

Checklist

  • Code is readable and beginner-friendly
  • No fake or placeholder behavior introduced
  • Documentation updated if needed

Screenshot:

Output on web (After clicking the share analysis button):

Screenshot 2026-05-20 215333

Check the msg in bottom right corner.

Terminal output:

Screenshot 2026-05-20 214519

Additional note

I am GSSoC'26 Contributor. Please assign all the required labels. I would kindly request you to put the requied necessary labels to get points in GSSoC'26. I would highly appreciate if you give me type bonus and quality multipliers.

@Vikrant0207 Vikrant0207 changed the title Gs so c contribution feat: Add sharable analysis link - generate a permalink for results May 20, 2026
@imDarshanGK imDarshanGK self-requested a review as a code owner May 21, 2026 09:50
Copy link
Copy Markdown
Owner

@imDarshanGK imDarshanGK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Vikrant0207
Please fix the route mounting for share endpoints. [share.py] already defines , and [main.py] also includes the router with [prefix="/share"], which creates /share/share/* instead of /share/*. After that, please re-run the share tests and confirm the endpoints match the issue spec

@Vikrant0207
Copy link
Copy Markdown
Author

@imDarshanGK Now check :
terminal output:

Screenshot 2026-05-21 163722

@Vikrant0207 Vikrant0207 requested a review from imDarshanGK May 21, 2026 11:22
Copy link
Copy Markdown
Owner

@imDarshanGK imDarshanGK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Vikrant0207 Please clean up [share.py]) before merge. The file still has duplicate/conflicting code from a merge, and the request/response fields don’t match the current schema. After removing the conflict leftovers and aligning the share payload fields, I can re-review.

@Vikrant0207 Vikrant0207 requested a review from imDarshanGK May 21, 2026 15:18
@Vikrant0207
Copy link
Copy Markdown
Author

@imDarshanGK /review

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