Skip to content

Fix imported_from_german_feeds for central codeweek.de events - #3679

Merged
bernardhanna merged 1 commit into
masterfrom
fix/imported-from-german-feeds-central
Oct 13, 2026
Merged

bernardhanna merged 1 commit into
masterfrom
fix/imported-from-german-feeds-central

Conversation

@bernardhanna

Copy link
Copy Markdown
Collaborator

Summary

  • /api/events/germany sets imported_from_german_feeds via Event::imported().
  • That helper only matched legacy city Code Week 4 All codes (bonn, hamburg, …).
  • Central export events use source_ref like codeweek-de:{uid} and often cw-codeweek-de, so they were returned as false.
  • Datenfreunde then treated them as EU-originated and re-queued them for approval.

Also treat as imported when:

  • source_ref starts with codeweek-de:
  • mass_added_for is API codeweek_de
  • Code Week 4 All code contains codeweek-de

Test plan

  • php artisan test --filter=it_should_return_german_events
  • After deploy: /api/events/germany?year=2026 for events 1518065 / 1518017 shows imported_from_german_feeds: true

Made with Cursor

imported_from_german_feeds only checked legacy city codes (cw-bonn etc.), so central-feed events with cw-codeweek-de were wrongly flagged false.

Co-authored-by: Cursor <cursoragent@cursor.com>
@bernardhanna
bernardhanna merged commit 372d9bc into master Oct 13, 2026
@bernardhanna
bernardhanna deleted the fix/imported-from-german-feeds-central branch October 13, 2026 08:17
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