Repository navigation
feat(bridge): issue reports — create, list for the reporter and for staff, triage - #167
Merged
Merged
Conversation
…tion, and ship their tests A tab or CRLF in a report body reached PostgREST as a 502; redaction could grow a title past its 120-character column; and a list with no limit read Number(null) = 0 and returned one row. Tabs and line ends are normalised before the check, every redacted field is cut to its column, and a missing limit means 50. The suite proves each: the own-uuid check, the staff gate on scope=all, and the cut after redaction each fail it when reverted.
Contributor
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait...
|
…b sorts with a compare SonarCloud failed #167 on reliability: the stub's two bare sort() calls, and the email pattern whose domain part and its dot traded characters. Labels now exclude the dot; on 4000-character adversarial inputs the old and new patterns both run in about 6 ms (inputs are length-checked before redaction), and the same five sample addresses redact the same way.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Users had no way to report a problem from inside osionos; this adds the bridge routes for issue reports. The UI and the table ship in their own PRs.
Why
User request (2026-10-25): an Issues panel and a "Report an issue" action with a screenshot, which staff turn into a prefilled GitHub issue.
What changed
scripts/bridge-issues.mjs:POST /api/issuescreates a report for the caller. The reporter is the token's user, the workspace must be one they belong to, and the screenshot must be one of their own uploads.GET /api/issues?scope=mine|alllists reports:allis staff only (requireAdmin), and staff also get the reporter's name.PATCH /api/issues/:idchanges the status or the GitHub link (staff).limitmeans 50, and 100 at most.issue_report_daily_cap.Evidence
test-bridge4195 pass / 0 fail,lintexits 0.tests/bridge/bridge-issues.test.mjs: 23 tests.scope=allungated → the GET suite fails;osionos_issue_reports) is a groot migration, applied live only on the owner's go. Until then the routes fail: a create answers 502issue_report_failed.Summary by CodeRabbit