Skip to content

Conversation

@ricardograca
Copy link
Member

Introduction

Move the visibility plugin to core Bookshelf.

Motivation

This is a very useful plugin and its functionality is similar to the omitNew and shallow options of model#serialize() which are already part of core.

Proposed solution

Functionality is moved to the BaseModel#serialize() method. New hidden and visible properties are explicitly added to the BaseModel prototype. No functionality was removed.

Note that some tests were moved to the unit tests section since that's what they were.

@ricardograca ricardograca merged commit a40d0bf into master Jul 21, 2019
@ricardograca ricardograca deleted the rg-core-visibility branch July 21, 2019 14:37
@ricardograca ricardograca mentioned this pull request Aug 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant