Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions