Skip to content
This repository was archived by the owner on Jun 16, 2026. It is now read-only.

feat: add forum(discourse) read endpoint view configs and smoke test scenarios#14

Merged
TommyLike merged 1 commit into
mainfrom
feat/support-release
Jun 8, 2026
Merged

feat: add forum(discourse) read endpoint view configs and smoke test scenarios#14
TommyLike merged 1 commit into
mainfrom
feat/support-release

Conversation

@TommyLike

Copy link
Copy Markdown
Collaborator

Summary

Add view configs and smoke test scenarios for Discourse/Forum read endpoints.

Changes

View configs (internal/view/builtin.go):

  • Add 27 view configs for forum read endpoints across 7 resources: topics, posts, categories, groups, badges, tags, users
  • Use RootField with dot-notation (e.g. topic_list.topics) for nested response structures

RootField enhancement (internal/view/extract.go):

  • DetectItems now supports dot-separated RootField paths via ExtractField(), enabling multi-level nesting like topic_list.topics

Smoke scenarios (scenarios/forum/):

  • 27 new scenario YAML files for forum read endpoints
  • 3 existing scenarios updated (enabled + RootField fixes)

Smoke test results: 26 passed, 0 failed, 4 skipped

Skipped scenarios (4)

Scenario Reason
topics-get-post Spec defines post_ids as body param, Discourse expects query param → 413
topics-get-external-id No known valid external_id on test instance
users-get-by-external No known valid external_id on test instance
users-get-by-external-by-external No known valid external_id on test instance

🤖 Generated with Claude Code

@opensourceways-bot

Copy link
Copy Markdown

Welcome To opensourceways Community

Hey @TommyLike , thanks for your contribution to the community.

Bot Usage Manual

I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands.

@opensourceways-bot

Copy link
Copy Markdown

CLA Signature Pass

TommyLike, thanks for your pull request. All authors of the commits have signed the CLA. 👍

@opensourceways-bot

Copy link
Copy Markdown

Linking Issue Notice

@TommyLike , the pull request must be linked to at least one issue.
If an issue has already been linked, but the needs-issue label remains, you can remove the label by commenting /check-issue .

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request migrates the module path from github.com/cncf/cora to github.com/opensourceways/cora across all Go files. It also introduces numerous new view configurations for the forum service, updates the field extraction logic to support dot-separated nested paths, and adds a comprehensive suite of integration test scenarios under scenarios/forum/. There are no review comments, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

…scenarios

- Add view configs for 27 forum read endpoints (badges, categories, groups,
  posts, tags, topics, users) in internal/view/builtin.go
- Support dot-notation RootField paths (e.g. "topic_list.topics") in
  internal/view/extract.go DetectItems
- Create 27 new smoke scenario YAML files for forum read endpoints
- Update existing forum scenarios (enable skip:false, add RootField)
- Add smoke config file for forum service
- Fix module import path to opensourceways/cora

26/30 forum smoke tests pass, 4 skipped (spec/test data limitations).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@TommyLike TommyLike force-pushed the feat/support-release branch from a504ab0 to fb0ea54 Compare June 8, 2026 05:40
@opensourceways-bot

Copy link
Copy Markdown

CLA Signature Pass

TommyLike, thanks for your pull request. All authors of the commits have signed the CLA. 👍

@TommyLike TommyLike merged commit 6cc8058 into main Jun 8, 2026
7 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants