Skip to content

Conversation

@andesk
Copy link

@andesk andesk commented Mar 18, 2015

As we needed a different output of attributes depending on list/show action we introduced a more or less backwards compatible approach to provide this in the plugin. See adjusted README file.

Do be able to have different logic in the action we introduced several copied methods generated for both get actions. For example instead of function query() we have now a queryList() and a queryShow(). So this somehow breaks bc if a developer would have overwritten the query() method in the actions class. The configuration itself "inherits" and is only used if a more concrete configuration is set for get_list or get_show.

What do you think about that improvement?

Motivation is e.g. to reduce query complexity for list by not embedding any relations and doing this only in show).

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it is not the best solution working like this, but it reduces code duplication a lot...

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant