Remove the automations module - #333
Merged
Merged
Conversation
Drops the visual workflow builder end to end: actions, node runners, commands, jobs, models, observers, policy, resources, requests, routes, broadcast channel, scheduler entries, Horizon supervisor, Vue pages and components, canvas undo/redo history, CodeEditor, translations, factories and tests. A new migration rewrites posts.created_via = 'automation' to 'web' and drops the five automation tables. The CreatedVia::Automation enum case is removed. The 2026-08-21 social-account identity migration now skips its automation node repointing when the automations table no longer exists, so it stays re-runnable after the drop. Orphaned dependencies removed: simplepie/simplepie, @vue-flow/*, codemirror and @codemirror/*.
…ortcut, nav badge
21 tasks
…reviewOnly chain - Restore 2026_08_21 migration to exactly what production ran; the rehearsal test now recreates the automations table it expects instead. - Mark the drop migration's down() irreversible like its siblings. - Simplify DropAutomationTablesMigrationTest to the sibling shape. - Remove previewOnly / aiGenerateVariants: the only caller that set the prop was the deleted automation Generate node. - Run pint over lang/*/common.php after the beta key removal.
…t reads the removed automations table
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Removes the Automations module end to end to clear the ground for the next feature.
drop_automation_tablesmigration rewritesposts.created_via = 'automation'to'web', then dropsautomation_node_states,automation_node_runs,automation_runs,automation_trigger_itemsandautomations. Existing production data in those tables is discarded.ResolvableUrlrule. TrimsPostObserver(no more trigger dispatch on status change), the morph map,routes/app.php(15 routes),routes/channels.php,routes/console.php(4 scheduled commands) and the Horizonautomationssupervisor.CreatedVia::Automationenum case removed.CodeEditor.vue, its expression/expanded-editor composables,useShortcut, the nav-itembadge(only the Automations "Beta" pill used it), theui/chartwrapper whose only consumer was the runs chart, and thepreviewOnlyprop chain throughChannelConfiguratorand the per-platform Settings components (only the Generate node set it). Sidebar entry andcanManageAutomationsgone.lang/*/automations.php,sidebar.automationsandcommon.betaremoved in all 16 locales.feedFixture()Pest helper removed; cross-cutting tests trimmed.simplepie/simplepie,@vue-flow/*,codemirror,@codemirror/*,@unovis/vueand@unovis/tsremoved.releases/*untouched.Deploy notes
php artisan migratebefore the new code serves traffic. TheCreatedVia::Automationcase is gone, so anypostsrow still holdingcreated_via = 'automation'throwsValueErroron hydration until the migration rewrites it. The Docker entrypoint already migrates on boot; a manual or rolling deploy must keep that order.automationsqueue once after deploy:php artisan horizon:clear --queue=automations. The old code keeps pushingDispatchPostTriggerAutomationsJobthere until Horizon restarts, and no supervisor consumes it afterwards. Any entries infailed_jobsfor the deleted job classes can be pruned withphp artisan queue:prune-failed.down()is intentionally irreversible, like the other data-destroying migrations in the repo.Existing migrations untouched
2026_08_21_130941_add_workspace_platform_identity_unique_to_social_accounts_tablereads theautomationstable while collapsing duplicate social accounts. It is byte-identical tomain. Its only test,DuplicateIdentityRehearsalTest, re-ran that frozen migration afterRefreshDatabasehad already dropped the table, so it is removed rather than propped up with scaffolding: the migration already ran on Cloud, and a fresh install has no duplicates to collapse.Out of scope
The orphan sweep also surfaced dead code that predates automations (starter-kit components, unused
ui/*dirs, three PHP classes,axios). Tracked in #334 rather than mixed into this PR.Test plan
php artisan test --compact --parallel: 4102 passed, 1 skippedDropAutomationTablesMigrationTestrecreates the five tables with their FKs, then covers thecreated_viarewrite and the drop order on both enginesMorphMapTestandLocalizationParityTestgreenphp artisan route:list --name=automationsreturns nothing;schedule:listhas no automation commands; Horizon supervisors aresupervisor-1,social-publishing,ai-assistant,webhooksautomation,vue-flow,codemirror,simplepieorunovisoutsidereleases/*, the historical migrations and twokeywordstest fixturesvendor/bin/pint --dirtyclean; eslint reports only the 3import/ordererrors that already exist onmain(auto-fixed by CI'snpm run lint)