Skip to content

Commit

Permalink
Merge pull request #549 from amplication/docs/technical-debt-management
Browse files Browse the repository at this point in the history
Docs: Technical Debt Management
  • Loading branch information
yuval-hazaz authored Dec 4, 2024
2 parents eb4ab15 + 1446dbc commit 31c1e6d
Show file tree
Hide file tree
Showing 8 changed files with 121 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/platform-features/assets/alert-settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/platform-features/assets/alert-types.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
120 changes: 120 additions & 0 deletions docs/platform-features/technical-debt-management.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
---
id: technical-debt-management
title: Technical Debt Management
sidebar_label: Technical Debt Management
description: Comprehensive guide to managing technical debt in Amplication
---

# Technical Debt Management

Amplication's Technical Debt Management system helps you maintain alignment between your services and organizational standards as they evolve. This feature provides automated alerts, easy updates, and comprehensive tracking to ensure your services stay current with the latest templates, plugins, and best practices.

![Technical Debt Management Tab](./assets/technical-debt-grid.png)

## Key Features

- **Automated Technical Debt Detection**: Receive alerts when services, templates, or plugins become outdated
- **Centralized Management**: Track and resolve technical debt across all services from a single dashboard
- **Git Sync Integration**: Automated pull request generation for updates using [Smart Git Sync](/smart-git-sync/).
- **Flexible Resolution Options**: Choose when and how to address technical debt
- **Notification System**: Stay informed through in-app and email notifications

## Accessing Technical Debt Management

1. Navigate to the Platform Console by clicking "Platform" in the top left corner
2. Select the "Tech Debt" tab

## Understanding Technical Debt Alerts

### Alert Types

Amplication tracks three primary categories of technical debt:

1. **Template Alerts**: Notify when a service needs updating to match new template versions
2. **Plugin Alerts**: Indicate when plugin updates are available or when plugins require attention
3. **Amplication Code Engine Alerts**: Signal updates to Amplication's code generation engine

![Technical Debt Alert Types](./assets/alert-types.png)

### Alert Properties

Each alert contains essential information:
- **Alert Type**: Specifies whether the alert is related to templates, plugins, or the code engine
- **Affected Resource**: Identifies the specific service or template that requires attention
- **Current Version in Use**: The version of the template, plugin, or code engine currently being used
- **Latest Available Version**: The most recent version available for update
- **Alert Creation Date**: The date when the system identified the technical debt
- **Alert Status**: Current state of the alert (Active, Resolved, Ignored, or Canceled)

![Technical Alert Properties](./assets/alert-properties.png)

## Managing Technical Debt

### Viewing Alerts

The Technical Debt dashboard provides a comprehensive view of all alerts:

1. **Status Filter**: Filter alerts by:
- Active (default view)
- Resolved
- Ignored
- Canceled

2. **Type Filter**: Filter by:
- Template alerts
- Plugin alerts
- Code Engine alerts

## Resolving Technical Debt

### Template Updates

1. Click "View Details" on a template alert
2. Review the changes between versions in the diff view
3. Click "Upgrade" to accept the changes
4. Confirm the upgrade in the modal dialog

:::note
After upgrading, changes become pending changes. Generate code to create individual PRs for the updates using the code generation workflow.
:::

![Resolve Technical Debt on the Service-level](./assets/resolve-technical-debt.png)

### Plugin Updates

For services using "latest" version:
1. Click "View Details" on the plugin alert
2. The plugin will automatically update on the next code generation

For services using pinned versions:
1. Click "View Details"
2. Generate code to apply changes


## Notification Settings

Customize how you receive technical debt alerts:

1. Click the bell icon in the upper right corner
2. Scroll to "Technical Debt Alert" settings
3. Configure preferences for:
- In-app notifications
- Email notifications

![Technical Debt Alert Settings](./assets/alert-settings.png)

## Integration with Development Workflow

Technical debt management integrates seamlessly with your development process:

1. **Alert Detection**: Amplication automatically detects when services drift from standards
2. **Review Process**: Team members can review and approve updates
3. **Code Generation**: Updates are applied through your normal code generation workflow
4. **Git Workflow**: Changes are managed through your existing Git workflow

## Related Resources

If you need additional support, please contact Amplication support team for assistance.

- [Live Templates](/live-service-templates/)
- [Private Plugins](/private-plugins/)
1 change: 1 addition & 0 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const sidebars = {
"how-to/platform-console",
"how-to/service-catalog",
"how-to/live-service-templates",
"platform-features/technical-debt-management",
{
type: "doc",
id: "plugins/private-plugins",
Expand Down

0 comments on commit 31c1e6d

Please sign in to comment.