Project

General

Profile

Actions

Refactor #2845

closed

Command's output definition shouldn't use formatting functions

Added by Tomáš Strachota over 10 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Difficulty:
Triaged:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

Formatting functions should be replaced with field type. The function spoils field's information forever. Eg. once datetime is formatted it can't be printed in different format. More flexible approach would be to set field type (to DateTimeField ind this case) and move the formatting logic to output adapters. The adapter then decides how it shoud be formatted. Eg. Json adapter prints more structured info vs. Table adapter tends to shorten things.

Actions #1

Updated by Martin Bacovsky over 10 years ago

  • Project changed from Hammer CLI to Foreman
  • Category changed from Hammer core to 44
Actions #2

Updated by Tomáš Strachota over 10 years ago

  • Target version set to 1.3.0
Actions #3

Updated by Tomáš Strachota over 10 years ago

  • Status changed from New to Assigned
Actions #4

Updated by Tomáš Strachota over 10 years ago

  • Status changed from Assigned to Closed
Actions #5

Updated by Dominic Cleal over 10 years ago

  • Project changed from Foreman to Hammer CLI
  • Category deleted (44)
Actions

Also available in: Atom PDF