Skip to content

Comments

Add legacy WhatNow module and bindings#56

Merged
jajaramillo24 merged 4 commits intostagingfrom
WN-343
Feb 20, 2026
Merged

Add legacy WhatNow module and bindings#56
jajaramillo24 merged 4 commits intostagingfrom
WN-343

Conversation

@jajaramillo24
Copy link
Collaborator

Integrate legacy WhatNow functionality into the app: add App\Legacy PSR-4 autoloading and register legacy repository bindings in RepositoryServiceProvider. Introduce a migration to create legacy_* tables with proper indexes and foreign keys. Add legacy code: Feeds (WhatNowFeed, JsonFeedInterface), Repositories (+interfaces and implementations), Translators/Serializers (WhatNowEntityTransformer, CustomDataSerializer), controller (WhatNowController), models, and public placeholder assets. Update routes/api.php to expose the legacy endpoints.

Integrate legacy WhatNow functionality into the app: add App\Legacy PSR-4 autoloading and register legacy repository bindings in RepositoryServiceProvider. Introduce a migration to create legacy_* tables with proper indexes and foreign keys. Add legacy code: Feeds (WhatNowFeed, JsonFeedInterface), Repositories (+interfaces and implementations), Translators/Serializers (WhatNowEntityTransformer, CustomDataSerializer), controller (WhatNowController), models, and public placeholder assets. Update routes/api.php to expose the legacy endpoints.
Add a bucket_name entry to config/filesystems.php (default from BUCKET_NAME env var) and update Organisation::getAttributionImageUrl() to build the blob storage URL from config('filesystems.bucket_name') instead of a hardcoded storage account. This allows the storage account host to be changed via configuration/env.
Update raw SQL in WhatNowTranslationRepository to select from legacy_whatnow_entity_translations instead of whatnow_entity_translations. Two queries were changed (latest by created_at and latest published_at) so the repository reads translations from the legacy table while preserving the existing JOIN conditions and parameters.
@jajaramillo24 jajaramillo24 merged commit bfbd7f0 into staging Feb 20, 2026
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