Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Import WordPress stories into the Story Share portal

Đang mở
#2,145 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
ruby, wordpress
Lĩnh vực
backend, content

Hướng nghiên cứu

Bắt đầu bằng cách so sánh origin/maebeale/csv-story-importer với current main, đặc biệt là app/services/story_importer.rb, lib/tasks/import_stories.rake và admin import-preview UI. Đọc sector mapping trong lib/tasks/migrate_sectors.rake L152-181 và điều chỉnh importer cho phù hợp với các thay đổi portal-parity và Asset pipeline. Hoàn tất khi các stories được import mà không để lộ facilitator_email, các portal home/sector/search pages được điền dữ liệu và sector counts được kiểm tra đối chiếu theo mẫu với WordPress figures.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

post-prod-data-import stories

Context

The Story Share portal (/story_shares) is now fully functional but has little real content — dev seeds provide a handful of demo stories. The live WordPress site (stories.awbw.org) holds ~339 published stories across the sector taxonomy (Domestic Violence 80, Self-Care & Personal Growth 94, Mental Health 68, Schools & Universities 52, Facilitator Spotlights 41, …).

A WordPress CSV story importer already exists but is not on main — it lives on branch origin/maebeale/csv-story-importer (app/services/story_importer.rb + lib/tasks/import_stories.rake + an admin import-preview UI, commits 2cdcefe44, ccb37e0ab).

What's needed

  • Merge/rebase the importer branch onto current main and reconcile with the portal-parity changes (sector taxonomy, story_share_position, asset pipeline, publicly_visible/publicly_featured flags).
  • Map WP user-categories → canonical 2026 Sector names (mapping already exists in lib/tasks/migrate_sectors.rake L152-181; e.g. "Social Justice" → "Racial/Social Justice", "Self-Care & Personal Growth" → "Self-Care/Personal Growth").
  • Map WP audience tags → StoryPopulation categories (1:1: Children/Teens/Adults/Families/Community/Self/Colleagues).
  • Import artwork/featured images into the Asset pipeline (PrimaryAsset/GalleryAsset).
  • Decide visibility defaults on import (published + publicly_visible?) and handle known data gaps the importer logs (original publish date, free-text state, permalink).
  • Do NOT import facilitator_email publicly (WP leaks it via its REST API).

Verification

After import, the portal home/sector rows/search should be populated with real stories; spot-check sector counts against the WP figures above.

Ngôn ngữ chính
Ruby
Star
15
Fork
28
Merge trung bình
1 ngày 12 phút
Pull request đã merge (30 ngày)
262

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của rubyforgood/awbw

Tất cả issue của rubyforgood/awbw

Issue tương tự

Thêm issue về Ruby

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.