Skip to content

Feat/reddit analysis#1995

Open
HollywoodTonight wants to merge 7 commits intomainfrom
feat/reddit-analysis
Open

Feat/reddit analysis#1995
HollywoodTonight wants to merge 7 commits intomainfrom
feat/reddit-analysis

Conversation

@HollywoodTonight
Copy link
Contributor

Please ensure your pull request adheres to the following guidelines:

  • make sure to link the related issues in this description
  • when merging / squashing, make sure the fixed issue references are visible in the commits, for easy compilation of release notes
  • If data sources for any opportunity has been updated/added, please update the wiki for same opportunity.

Related Issues

Thanks for contributing!

HollywoodTonight and others added 4 commits February 16, 2026 12:37
Add store integration to fetch URLs and analysis guidelines from
spacecat-api-service, enabling Mystique to receive all necessary
data via SQS message.

Changes:
- Add StoreClient utility for spacecat-api-service REST calls
- Update wikipedia-analysis handler to fetch URLs + sentiment config
- Send comprehensive SQS message with urls, topics, guidelines
- Mystique will fetch content separately (avoids SQS 256KB limit)

New files:
- src/utils/store-client.js - HTTP client for URL Store & Sentiment APIs
- test/utils/store-client.test.js - Unit tests (17 tests)
- docs/STORE-INTEGRATION-PLAN.md - Architecture documentation
- scripts/seed-test-data.sh - Helper to populate test data
- Add reddit-analysis handler that fetches Reddit URLs and guidelines from
  spacecat-api-service (same pattern as wikipedia-analysis)
- Send SQS message to Mystique with urls, topics, guidelines
- Add guidance-handler and opportunity-data-mapper for Mystique responses

Co-authored-by: Cursor <cursoragent@cursor.com>
…data-mapper tests for 100% coverage

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions
Copy link

This PR will trigger a minor release when merged.

…, empty query, null response)

Co-authored-by: Cursor <cursoragent@cursor.com>
@codecov
Copy link

codecov bot commented Feb 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Tanase Butcaru added 2 commits March 3, 2026 14:07
…to utilize opportunityData

- Refactored guidance-handler to extract companyName and presignedUrl from data, improving clarity.
- Enhanced opportunity-data-mapper to create opportunity data using values from opportunityData when provided, with fallbacks to defaults.
- Updated tests to reflect changes in data structure and ensure coverage for new functionality.
…ity-data-mapper

- Added tests to handle scenarios where suggestions are missing from analysis and when auditId is not provided, ensuring proper status responses.
- Included tests for merging dataSources and deduplication of tags in opportunity-data-mapper, improving test coverage and robustness.
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.

2 participants