steve icon indicating copy to clipboard operation
steve copied to clipboard

Fix transaction overview page to list all txns instead of just active.

Open friedkiwi opened this issue 2 years ago • 1 comments

The default view on the Data Management > Transactions page is to only list active transactions. This is annoying, since you most likely want to get an overview of all transactions registered if you go into this view since there is a separate button to only show the active transactions. The code also suggests it was supposed to be the case that all transactions (and not just the active ones) would be shown.

This PR fixes this.

friedkiwi avatar Mar 29 '24 14:03 friedkiwi

The code also suggests it was supposed to be the case that all transactions (and not just the active ones) would be shown.

i guess you are referring to:

@ApiModelProperty(value = "Return active or all transactions? Defaults to ALL")

this documentation is in relation to the API, because

public static class ForApi extends TransactionQueryForm {

    public ForApi() {
        super();
        setType(QueryType.ALL);
        setPeriodType(QueryPeriodType.ALL);
    }
}

where we indeed return all. keep in mind: swagger annotations are for the API. this documentation of the field is, hence, for the API.

i would defend rendering just active transactions for this page is better, because:

  • the history of all transactions will only get bigger/longer. this would create additional unnecessary overhead on DB.
  • is someone (i.e. a normal user) really interested in all transactions, when she goes to this page? or: recent aka active? i would argue for active.
  • getting ALL transactions is just a click (or two) away. is this really that annoying?

goekay avatar Mar 31 '24 12:03 goekay

closing this PR due to inactivity.

goekay avatar Jun 23 '24 08:06 goekay