Skip to content

Set app description correctly on create only - #182

Merged
bradhe merged 6 commits into
tower:developfrom
burakdede:fix/issue-166-app-description
Jan 26, 2026
Merged

Set app description correctly on create only#182
bradhe merged 6 commits into
tower:developfrom
burakdede:fix/issue-166-app-description

Conversation

@burakdede

Copy link
Copy Markdown
Contributor

This fixes the description issue reported #166.

As evident from the commits I changed my mind quite a bit about where, when description metadata should be applied eventually settled to scope it to only create flows and applied optional semantics of the field. (deploy seemed too critical and applied too frequent to constantly sync this)

High level changes;

  • App description handling is moved to create flows only, mapping CLI/Towerfile description to the API’s short_description on create (including deploy --create), and deploy no longer updates description for existing apps.
  • Error handling was simplified around create/describe, and deploy no longer fails on description update (now removed).
  • Integration tests were cleaned up to focus on create behavior; deploy-update scenarios and mock update-failure cases were removed.

…vements
- Change towerfile desc. to Option<String> to distinguish absence and
explicit empty
- Add ApiCreateError for more accurate error reporting on app createion
- Add UnexpectedApiResponse error to prevent silent description
synchronization skip
- Simplify error conversion in `ensure_app_exists`
 Change from diff-checking approach to "latest wins" semantics;
- Always update description on deploy when present (no comparison)
- Skip update for empty/None (preserves server state)
- Remove spinner and entity validation (simpler, more resilient)

@bradhebradhe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is really great, thanks for taking care of this @burakdede! I'll leave this open in case there's any modifications you want to make, but will merge it over the weekend!

@bradhe
bradhe merged commit a3307b0 into tower:developJan 26, 2026
5 checks passed
bradhe added a commit that referenced this pull request Aug 14, 2026
bradhe added a commit that referenced this pull request Aug 14, 2026
* Revert "fix(schedules): restore direct update semantics and strengthen parsing tests (#205)"
This reverts commit 58456c5.
* Revert "Set app description correctly on create only (#182)"
This reverts commit a3307b0.
* Revert "Add new `--follow` mode for `tower apps logs` with resilient streaming and tests (#171)"
This reverts commit fd79baf.
* Revert "fix(cli-help): clarify usage/examples for apps, schedules, secrets (#169)"
This reverts commit 7f6d0a7.
* Revert "Fix: better handling of non-iterable dbt result objects and selectable dbt commands (#143)"
This reverts commit 6239423.
* Add --follow mode to tower apps logs
* Add positional schedule id handling
* Make app description create-only
* Improve subcommand help text
* Handle non-iterable dbt results and selector targeting
* Add integration coverage for run cancel, follow mode, and app descriptions
* Apply black formatting
* Fix warning handling in follow mode and stream error formatting
Sign up for freeto 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

@burakdede@bradhe