Project

General

Profile

Actions

Cleanup #52589

closed

Feature #40907: mgr/dashboard: REST API improvements

mgr/dashboard: clean up controllers

Added by Ernesto Puerta over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Category:
General - Back-end
Target version:
% Done:

0%

Tags:
Backport:
pacific
Reviewed:
Affected Versions:
Pull request ID:

Description

Clean up existing controller infrastructure and replace it with best practices:
  • Remove extremely large files (e.g.: controllers/__init__.py) and use separate files/sub-modules instead.
  • Remove use of global vars (they complicate testing/mocking, debugging, etc.).
  • Rename class names according to existing MVC patterns (e.g.: Routes Python module, django/fastapi): Models, Controllers, Endpoints, Routers.

Related issues 2 (0 open2 closed)

Follows Dashboard - Bug #52480: mgr/dashboard: make modified API endpoints backward compatibleResolvedAvan Thakkar

Actions
Copied to Dashboard - Backport #52870: pacific: mgr/dashboard: clean up controllersResolvedActions
Actions

Also available in: Atom PDF