Skip to content

[Relation] Supports HasOne relation #1422

Closed

Description

@dhmlau

Description / Steps to reproduce / Feature proposal

Add support for HasOne relation between two models.

Acceptance Criteria

  • Update factory method to handle this relation
  • create interface for CRUD methods available for the relation. See this as an example.
    • create default class which implements the interface
  • Implement the hasOne decorator
    • model decorator: infers the metadata
  • create test cases
  • update docs
  • create a follow up issue to demonstrate using multiple relations in a new/existing example

Activity

  1. changed the title [-][Relation] Supports HasOne[/-] [+][Relation] Supports HasOne relation[/+] on Jun 12, 2018
  2. added and removed on Aug 28, 2018
  3. dhmlau commented on Oct 1, 2018

    @dhmlau
    MemberAuthor

    Cross posting in #1449 (comment) from @elv1s:

    We have a requirement for hasOne in addition to hasMany and belongsTo

    Currently hasOne is not part of our Q1 roadmap. So I have 2 questions:

    1. @elv1s, what is the timeline you're thinking in terms of having hasOne support?
    2. @strongloop/sq-lb-apex @raymondfeng @bajtos, after we have the 2 model relations, do you think it's a relatively small effort for us to get hasOne in?
      EDIT: I realized that we've estimated this task already. Given what we know now (esp when implementing BelongsTo, are we still good with this estimate?
  4. elv1s commented on Oct 3, 2018

    @elv1s
    Contributor

    We are developing a POC with LB3 right now. If we move to LB4 we would need hasOne relationships early 2019.

  5. added this to the November 2018 Milestone milestone on Nov 5, 2018
  6. b-admike commented on Dec 19, 2018

    @b-admike
    Contributor

    Closing as done.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions