Project

General

Profile

Cleanup #50540

Change sso handle command with CLICommand

Added by Pere Díaz Bou 16 days ago.

Status:
New
Priority:
Low
Category:
Back-end
Target version:
% Done:

0%

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

Description

This tracker addressed the controllers/sso.py where we handle every sso command inside handle_sso_command

A deeper refactoring on this area would've been using the @CLICommand helper with separate functions, instead of dealing with each command handling (the old way).

Example:

@CLICommand('dashboard sso setup saml2')
def _handle_saml_setup(self, cmd: str):
....

Also available in: Atom PDF