-
Notifications
You must be signed in to change notification settings - Fork 324
fix(opensource): trim search query before database lookup #1218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
58f4001
fe036cf
1f70cc4
88d06df
88fdf1b
b262571
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,9 @@ | ||
| <<<<<<< HEAD | ||
| import { Router } from "express"; | ||
| ======= | ||
| import { Router } from "express"; | ||
| import { prisma } from "../../database/db.js"; | ||
| >>>>>>> upstream/main | ||
| import { OpensourceController } from "./opensource.controller.js"; | ||
| import { authMiddleware } from "../../middleware/auth.middleware.js"; | ||
| import { requireRole } from "../../middleware/role.middleware.js"; | ||
|
|
@@ -21,6 +25,8 @@ opensourceRouter.get("/languages", (req, res, next) => controller.getLanguages(r | |
| // Get GSoC organizations | ||
| opensourceRouter.get("/gsoc/orgs", (req, res, next) => controller.getGsocOrgs(req, res, next)); | ||
|
|
||
| <<<<<<< HEAD | ||
| ======= | ||
| // ─── Student Progress Tracking ───────────────────────────────── | ||
| // NOTE: must be before /:id to avoid route conflicts | ||
|
|
||
|
|
@@ -39,6 +45,7 @@ opensourceRouter.patch( | |
| ); | ||
|
|
||
| // ─── Repo Requests (Student-authenticated) ───────────────────── | ||
| >>>>>>> upstream/main | ||
|
Comment on lines
28
to
+48
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unresolved merge conflict in Student Progress Tracking section. Resolve this conflict by accepting the upstream/main side which adds the new 🔧 Proposed resolution-<<<<<<< HEAD
-=======
// ─── Student Progress Tracking ─────────────────────────────────
// NOTE: must be before /:id to avoid route conflicts
opensourceRouter.get(
"/first-pr/progress",
authMiddleware,
requireRole("STUDENT"),
(req, res, next) => controller.getFirstPrProgress(req, res, next),
);
opensourceRouter.patch(
"/first-pr/progress",
authMiddleware,
requireRole("STUDENT"),
(req, res, next) => controller.patchFirstPrProgress(req, res, next),
);
// ─── Repo Requests (Student-authenticated) ─────────────────────
->>>>>>> upstream/mainBased on learnings: 🧰 Tools🪛 Biome (2.4.16)[error] 28-38: Expected a statement but instead found '<<<<<<< HEAD// ─── Student Progress Tracking ───────────────────────────────── opensourceRouter.get( (parse) 🤖 Prompt for AI Agents |
||
| // NOTE: these must be registered BEFORE /:id to avoid route conflicts | ||
|
|
||
| opensourceRouter.post("/requests", authMiddleware, requireRole("STUDENT"), (req, res, next) => | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unresolved merge conflict markers break compilation.
The file contains unresolved Git conflict markers. Additionally, the HEAD side has a BOM (Byte Order Mark) character (
) before the import statement which should be removed.The
prismaimport from upstream/main is required for the/requests/mineroute (line 57).🔧 Proposed resolution
📝 Committable suggestion
🧰 Tools
🪛 Biome (2.4.16)
[error] 1-1: Expected a statement but instead found '<<<<<<< HEAD'.
(parse)
[error] 3-3: Expected a statement but instead found '======='.
(parse)
[error] 6-6: Expected a statement but instead found '>>>>>>> upstream/main'.
(parse)
🤖 Prompt for AI Agents