Skip to content

Conversation

@curlyLasagna
Copy link
Contributor

What this PR does / why we need it

This PR adds the /organizations route for CLARK and sunsets the CARD route

Copy link
Contributor

@dsoto18 dsoto18 left a comment

Choose a reason for hiding this comment

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

Lint kinda went crazy here

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new /organizations proxy route under the CLARK router and removes the now-sunset CARD search endpoint for organizations.

Changes:

  • Added CLARK GET /organizations proxy route via a new Organization router/routes module.
  • Registered the new CLARK OrganizationRouteHandler in clark.router.ts.
  • Removed CARD GET /organizations from src/modules/card/search/search.routes.ts and applied small formatting fixes (trailing commas) in several route config files.

Reviewed changes

Copilot reviewed 9 out of 11 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/modules/clark/utility-module/utility.routes.ts Trailing-comma formatting in route config.
src/modules/clark/standard-guidelines-module/standard-guidelines.routes.ts Trailing-comma formatting in route config.
src/modules/clark/organization/organization.routes.ts Introduces CLARK GET /organizations route definition.
src/modules/clark/organization/organization.router.ts Adds proxy router wiring for organization routes to CLARK service.
src/modules/clark/metric-module/metrics.routes.ts Trailing-comma formatting in route config.
src/modules/clark/learning-object-module/search.routes.ts Trailing-comma formatting in route config.
src/modules/clark/learning-object-module/revisions.routes.ts Trailing-comma formatting in route config.
src/modules/clark/clark.router.ts Registers OrganizationRouteHandler in the CLARK router.
src/modules/clark/chatbot-module/chatbot.routes.ts Whitespace/trailing-comma formatting in route config.
src/modules/clark/chatbot-module/chatbot.router.ts Formatting-only change.
src/modules/card/search/search.routes.ts Removes CARD GET /organizations route from search routes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

import { AuthRouteHandler } from "./auth-module/auth.router";
import { FileRouteHandler } from "./file-module/file.router";
import { ChatBotRouteHandler } from "./chatbot-module/chatbot.router";
import { OrganizationRouteHandler } from "./organization/organization.router";
Copy link

Copilot AI Jan 27, 2026

Choose a reason for hiding this comment

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

Within ClarkRouteHandler, every other sub-router import follows a *-module folder convention (e.g., ./user-module/..., ./utility-module/...), but this PR introduces ./organization/.... For consistency and easier navigation, consider renaming the folder to organization-module (and updating the import), or aligning the naming across Clark modules if organization is intentionally different.

Copilot uses AI. Check for mistakes.
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.

3 participants