Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor fields and descriptors #210

Merged
merged 5 commits into from
Jun 17, 2018

Conversation

haveyaseen
Copy link
Collaborator

@haveyaseen haveyaseen commented Jun 16, 2018

Moves imperative field installation logic out of field classes, the classes now only contain more or less declarative information on whether or not virtualFields and descriptors should be installed for forwards and backwards fields. The same goes for the creation of through models.

Cleans up fields.js and descriptors.js drastically making it easier to reason about field installation and relationship lookup. Still not perfect but a necessary step to aid in the understanding of these crucial elements.

Increases descriptors.js coverage to 100%. 🎉

@haveyaseen haveyaseen added type: Enhancement This intends to enhance the project. status: Please Review Waiting for input by contributors. labels Jun 16, 2018
@haveyaseen haveyaseen force-pushed the feature/refactor_fields branch from 9010f15 to e4cbc2b Compare June 17, 2018 11:54
@haveyaseen haveyaseen changed the title Refactor fields.js Refactor fields and descriptors Jun 17, 2018
@haveyaseen haveyaseen force-pushed the feature/refactor_fields branch from 6f7b4ce to 0dd9931 Compare June 17, 2018 12:15
@haveyaseen haveyaseen merged commit 8c1c6d9 into redux-orm:master Jun 17, 2018
@haveyaseen haveyaseen deleted the feature/refactor_fields branch June 17, 2018 14:32
@haveyaseen haveyaseen added layer: Fields type: Chore Routine work that does not add any features. and removed status: Please Review Waiting for input by contributors. type: Enhancement This intends to enhance the project. labels May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
layer: Fields type: Chore Routine work that does not add any features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant