Skip to content

feat(fetchers): enhance WikipediaFetcher with redirect resolution#87

Merged
chaliy merged 1 commit intomainfrom
fix/issue-55-wikipedia-fetcher
Apr 3, 2026
Merged

feat(fetchers): enhance WikipediaFetcher with redirect resolution#87
chaliy merged 1 commit intomainfrom
fix/issue-55-wikipedia-fetcher

Conversation

@chaliy
Copy link
Copy Markdown
Contributor

@chaliy chaliy commented Apr 3, 2026

What

Enhance WikipediaFetcher with redirect resolution support and comprehensive tests.

Why

Closes #55 — WikipediaFetcher was already implemented but lacked redirect resolution (MediaWiki API supports it) and had minimal test coverage.

How

  • Added WikiTitles deserialization from the summary API response
  • Display redirect info when canonical title differs from display title
  • Added comprehensive unit tests: subpage URLs, mobile URLs, bare paths, subdomain rejection, full content rendering, redirect display

Risk

  • Low
  • Only adds new fields/tests, no breaking changes to existing behavior

Checklist

  • Unit tests are passed
  • Smoke tests are passed
  • Specs are up to date and not in conflict

… comprehensive tests

- Add WikiTitles deserialization for redirect detection
- Show redirect info when canonical title differs from display title
- Add tests for subpage URLs, mobile URLs, bare wiki paths, subdomain rejection
- Add tests for full content rendering, redirect display, and URL output

Closes #55
@chaliy chaliy merged commit 796a050 into main Apr 3, 2026
11 checks passed
@chaliy chaliy deleted the fix/issue-55-wikipedia-fetcher branch April 3, 2026 02:58
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.

feat(fetchers): WikipediaFetcher — clean article extraction via MediaWiki API

1 participant