Skip to content

Modify agent-api.yaml for endpoint URL formatting#633

Open
hanzjk wants to merge 1 commit intowso2:mainfrom
hanzjk:endpoint
Open

Modify agent-api.yaml for endpoint URL formatting#633
hanzjk wants to merge 1 commit intowso2:mainfrom
hanzjk:endpoint

Conversation

@hanzjk
Copy link
Copy Markdown
Contributor

@hanzjk hanzjk commented Mar 25, 2026

Purpose

Describe the problems, issues, or needs driving this feature/fix and include links to related issues in the following format: Resolves issue1, issue2, etc.

Goals

Describe the solutions that this feature/fix will introduce to resolve the problems described above

Approach

Describe how you are implementing the solutions. Include an animated GIF or screenshot if the change affects the UI (email documentation@wso2.com to review all UI text). Include a link to a Markdown file or Google doc if the feature write-up is too long to paste here.

User stories

Summary of user stories addressed by this change>

Release note

Brief description of the new feature or bug fix as it will appear in the release notes

Documentation

Link(s) to product documentation that addresses the changes of this PR. If no doc impact, enter �N/A� plus brief explanation of why there�s no doc impact

Training

Link to the PR for changes to the training content in https://github.com/wso2/WSO2-Training, if applicable

Certification

Type �Sent� when you have provided new/updated certification questions, plus four answers for each question (correct answer highlighted in bold), based on this change. Certification questions/answers should be sent to certification@wso2.com and NOT pasted in this PR. If there is no impact on certification exams, type �N/A� and explain why.

Marketing

Link to drafts of marketing content that will describe and promote this feature, including product page changes, technical articles, blog posts, videos, etc., if applicable

Automation tests

  • Unit tests

    Code coverage information

  • Integration tests

    Details about the test cases and coverage

Security checks

Samples

Provide high-level details about the samples related to this feature

Related PRs

List any other related PRs

Migrations (if applicable)

Describe migration steps and platforms on which migration has been tested

Test environment

List all JDK versions, operating systems, databases, and browser/versions on which this feature/fix was tested

Learning

Describe the research phase and any blog posts, patterns, libraries, or add-ons you used to solve the problem.

Summary by CodeRabbit

  • Chores
    • Updated development environment configuration
    • Modified API gateway routing pattern for external requests

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 25, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: e584e6d4-a9ef-43b4-956f-67261355e786

📥 Commits

Reviewing files that changed from the base of the PR and between ec8762a and dc19bc3.

📒 Files selected for processing (2)
  • .gitignore
  • deployments/helm-charts/wso2-amp-platform-resources-extension/templates/component-types/agent-api.yaml

📝 Walkthrough

Walkthrough

Two simple modifications: adding website/ to .gitignore to exclude the website directory from version control, and updating an HTTPRoute external path matching prefix in a Helm chart from component name to the first 8 characters of component UID.

Changes

Cohort / File(s) Summary
Git Configuration
.gitignore
Added website/ directory to ignore list, preventing the website directory from being tracked by Git.
Helm Chart Template
deployments/helm-charts/wso2-amp-platform-resources-extension/templates/component-types/agent-api.yaml
Updated HTTPRoute external path match prefix from /${metadata.componentName}-${endpoint} to /${metadata.componentUID.substring(0, 8)}-${endpoint}, changing the routing identifier from full component name to truncated component UID.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

A rabbit hops through changes small,
Ignoring website/ once and for all,
Routes now dance with UID's shortened grace,
Eight characters find their routing place. 🐰

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The pull request description is entirely a template scaffold with no actual content filled in. All sections remain as placeholder text with no implementation details, goals, or context provided. Fill in all required template sections with specific details: purpose and linked issues, goals, implementation approach, user stories, release notes, documentation impact, test environment, and security verification responses.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: modifying agent-api.yaml for endpoint URL formatting, which directly corresponds to the HTTPRoute external path match prefix update from component name to UID substring.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

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.

1 participant