Blog / Development

Keeping Umbraco Automate from hiding the architecture

Published
Reading time
7 minutes
Category
Development
On this page 10 sections
  1. Start
  2. Every generated change is still architecture
  3. The trap is a working site nobody can explain
  4. Where I would use it first
  5. Make the plan reviewable before the change
  6. Keep the vocabulary in the project domain
  7. Prompts and recipes belong with the work
  8. Run it through normal deployment habits
  9. Editors should not feel the shortcut
  10. The version-control test
  11. Let it apply decisions
Umbraco Automation Review Workspace
The first thing I would watch with Umbraco Automate is ownership. It is tempting to measure automation by how many clicks disappear. If the work includes Document Types, Data Types, templates, Block Grid editors or example content, those clicks are not just busywork. They are where a team decides how the site is shaped.
A fast setup can still be a bad setup. The worst version is not a broken site. Broken sites are at least honest. The worse problem is a site that works on demo day, has a neat backoffice, and leaves the next developer wondering why half the content model looks the way it does.
That is the risk with any serious automation around a CMS. It can make the boring parts faster, which is good. It can also move architectural decisions into a place nobody reviews properly.

Every generated change is still architecture

In Umbraco, architecture is in more places than C# code. It is in Document Type names, property aliases, Data Type configuration, compositions, permissions, Block List and Block Grid setup, routing assumptions and the choice between Content, Media, the Library and code.
Those decisions are small on their own. Together they decide whether a project is pleasant to maintain or turns into a collection of exceptions. A field called title instead of courseTitle may not look like much during setup. Six months later, when the project has courses, events, locations and campaign pages, the vague alias starts to cost time.
Automation does not remove that responsibility. It just changes where the decision is made. If the tool creates a content model and the team only checks whether the page renders, the architecture has slipped past review.

The trap is a working site nobody can explain

Imagine a new campaign section. It needs landing pages, hero blocks, call-to-action blocks, article cards and a listing page. An automated workflow could create most of that structure quickly. The backoffice opens, the templates render and the sample page looks fine.
Then the questions start:
  • Why is the call-to-action page-specific instead of reusable?
  • Why can editors pick media from the whole Media section?
  • Why does this page type have its own navigation toggle instead of using the existing composition?
  • Why does the template query descendants instead of using a picker or a repository?
  • Why are there two Data Types that seem to do the same thing?
None of these are compile errors. They are design decisions. If nobody can answer them without replaying the automation step, the project has gained speed and lost context.

Where I would use it first

I would start with patterns the team already understands. Once a project has an approved way to build a landing page, a card grid or a reusable CTA, automation can help repeat that pattern without another round of manual clicking.
Good first uses are the boring ones:
  • creating another page type that follows an existing composition pattern
  • applying the same validation and editor labels across several related fields
  • creating test content for a local or staging environment
  • checking for duplicated Data Types or missing property descriptions
  • generating a first draft of documentation from an existing content model
That kind of work is repetitive. Perfect. Repetition is where automation usually earns its place.
The risky end is a blank instruction against a blank project: "build the content model for this website." At that point the tool is not applying architecture. It is inventing it. Sometimes the result may be close, but the team still needs to own every boundary it creates.

Make the plan reviewable before the change

Generated work should start with a plan that a developer can read before the project changes. It does not need to be fancy. A markdown file in the ticket or pull request is enough.
For an Umbraco project, that plan should say:
  • which Document Types will be added or changed
  • which properties editors will see, including labels and descriptions
  • which Data Types will be reused and which ones are new
  • which content is page-local and which content is reusable
  • which permissions or workflows are affected
  • how the change moves through the usual deployment process
This is where the useful disagreement happens. A developer may spot that a new block should be an Element. An editor may point out that a field label is too vague. Someone else may notice that a new settings node recreates a problem the project already solved.
It is much cheaper to disagree with a plan than to clean up a generated schema after other work has been built on top of it.

Keep the vocabulary in the project domain

One of the easiest ways for automation to hide architecture is naming. Generic names feel harmless when the project is small: contentBlock, mainText, items, cardGrid. They become a tax on every developer who has to trace a rendering bug later.
Umbraco projects should use the words of the project. If the site is about training courses, use course, module, trainer and session. If it is about office locations, use location, opening hours, address and contact person. Editors understand those labels, and developers can read the model without translating generic CMS language back into the domain.
The same goes for aliases. A label can be changed later without breaking code. An alias tends to travel through templates, models, migrations, exports and integrations. If automation creates the alias, review it as carefully as code.

Prompts and recipes belong with the work

If Umbraco Automate is driven by a prompt, configuration file or repeatable instruction, that input is part of the change. Save the final version with the ticket, the pull request or the project documentation.
That does not mean storing every throwaway attempt. Keep the instruction that produced the accepted result, plus the corrections the team made afterwards. A future developer should be able to see what the tool was asked to do and where a human changed its direction.
Generated work without the instruction behind it feels like a migration with no name. The database changed, the schema changed, but the reason has to be guessed from the aftermath.

Run it through normal deployment habits

Automation should not skip the environments and review steps the team already uses. Create or change the structure locally or in a staging environment. Review the diff. Open the backoffice as an editor. Move the result through the same process as any other schema change.
That might mean Umbraco Deploy, uSync, migrations or a more custom setup. The tooling matters less than the habit: automated output should be small enough to review and ordinary enough to roll back.
This is especially true when content changes are involved. A schema mistake can be fixed. A bulk content change in the wrong environment can leave editors cleaning up hundreds of items by hand.

Editors should not feel the shortcut

Editors do not care whether a developer clicked fields into existence or a tool created them. They care whether the backoffice makes sense.
That means generated structures need the same editor review as hand-built ones. Are fields grouped in a way that matches the editing task? Are descriptions useful without being noisy? Are pickers restricted to the right content? Do reusable blocks live somewhere editors expect to find them?
A developer still needs to use the backoffice as an editor as well as inspect the code. If the generated model saves an hour during setup and creates a year of tiny support questions, it was not a saving.

The version-control test

The simplest test is the pull request. Could another developer understand the change after Umbraco Automate is gone from the room?
They should be able to answer a few basic questions:
  • Which existing pattern does this follow?
  • Which decision did the tool apply?
  • Which decision did the team make?
  • Which files or schema exports changed?
  • How would we undo this if the model turns out wrong?
If the only answer is "the tool generated it", the change is not ready. The tool can help produce the work, but it should not be the only explanation for why the work exists.

Let it apply decisions

Umbraco Automate can be useful when it is treated as a fast way to apply decisions the team has already made. That is where it can remove dull work without taking ownership away from the people who maintain the project.
The architecture should still live in the places it always has: good names, reviewable changes, project documentation, deployment history and a backoffice that editors understand. A content model should still make sense after the automation is gone.

Comments

No comments yet

Spotted a mistake, or solved this differently? Add the first comment below.

Leave a comment

Comment
Comments are moderated. Be kind, be friendly, be specific.