Skip to content

Use ListDecorators when retrieving a table's custom results #528

@rydnr

Description

@rydnr

Information

As was done for table's attributes, the information about custom results should be provided using ListDecorators. That would allow filtering in the templates themselves, as needed.

Actions required

  • Extend ListDecorator interface to add "getDifferent()" method.
  • Make AbstractTableDecorator return a ListDecorator in "getDifferentCustomResults()".
  • Rename "getDifferentCustomResults()" to "getCustomResults()".
  • Refactor "TableAttributesPartialListDecorator" to extract a parent "AbstractPartialListDecorator".
  • Add Operation.DIFFERENT to AbstractPartialListDecorator.
  • Implement a TableCustomResultsPartialListDecorator, supporting "getMultiple()" and "getSingle()" filters.

Steps to reproduce

  • Use <table.customResults.different.only.single> template.
  • Check the affected custom results are not provided.

Acceptance criteria

  • Use <table.customResults.different.only.single> template.
  • Check the affected custom results are provided.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions