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

Morph One #91

Merged
merged 22 commits into from
Nov 10, 2021
Merged

Morph One #91

merged 22 commits into from
Nov 10, 2021

Conversation

ryandialpad
Copy link
Contributor

@ryandialpad ryandialpad commented Nov 2, 2021

Type of PR:

  • Bugfix
  • Feature
  • Refactor
  • Code style update
  • Build-related changes
  • Test
  • Documentation
  • Other, please describe:

Breaking changes:

  • No
  • Yes

Details

Closes #90

Adds Morph One Polymorphic relation & accompanying tests. Follow-up PR to add documentation.

The tests were created following the existing feature test pattern for the other relations.

@ryandialpad
Copy link
Contributor Author

ryandialpad commented Nov 2, 2021

I recommend squashing this PR when it is ready to be merged 😬

@ryandialpad ryandialpad marked this pull request as ready for review November 2, 2021 18:03
@cuebit cuebit requested a review from kiaking November 2, 2021 18:06
Copy link
Member

@kiaking kiaking left a comment

Choose a reason for hiding this comment

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

@ryandialpad This is looking amazing! I've added a test case for make method to increase the coverage. But everything else looking good to me.

Once we resolve the discussion we have with the property names, I think we are ready to merge this 👍

@ryandialpad
Copy link
Contributor Author

@ryandialpad This is looking amazing! I've added a test case for make method to increase the coverage. But everything else looking good to me.

Once we resolve the discussion we have with the property names, I think we are ready to merge this 👍

Thanks for the feedback! Updated id and type to morphId and morphType as discussed. Thanks for catching the missed test case 😃

@ryandialpad ryandialpad requested a review from kiaking November 8, 2021 18:05
@kiaking kiaking merged commit ba0496a into vuex-orm:master Nov 10, 2021
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.

Add MorphOne relationship
2 participants