Exclude a view functionality
Though excludes can be used to exclude several fields. If all the excluded fields are from a single view, then exclude_view is a more refined and usable option
@mcclayton , @philipqnguyen
Thank you so much for contributing @Abhinaya-P, I'll try to get some time soon to take a look at this, but I'll be on vacation soon. May have to check it out when I get back next week.
Hi @Abhinaya-P, Thank you for both your contribution to Blueprinter and your patience with us as we look into this. To provide some insight, there are a couple things holding us up on this PR currently.
- This PR has exposed some potential undefined behavior and edge cases in our current
excludefield functionality which we are looking into and trying to address before we can determine exactly howexclude_viewshould behave in the similar edge cases. i.e. we have not clearly defined the order of operations of excluding/including fields -- and so when we have multiple views including/excluding fields, we are still determining what the order of operations/behavior should be. - We are still considering if
exclude_viewis functionality we want to introduce into the Blueprinter gem.
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.