Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Regression - child relationships are not being handled during fetch and validate #99

Open

Description

@catmando

These specs will fail:

  it "can validate the presence of an association" do
    TestModel.validates_presence_of :child_models
    expect_promise do
      @test_model = TestModel.new
      @test_model.child_models << ChildModel.new
      @test_model.validate.then { |test_model| test_model.errors.messages }
    end.to be_empty
  end
  it "the server method can access any unsaved associations" do
    isomorphic do
      TestModel.server_method(:test) { child_models.count }
    end
    expect_promise do
      test_model = TestModel.new
      ChildModel.new(test_model: test_model)
      ReactiveRecord.load do
        test_model.test
      end
    end.to eq(1)
  end

(the child relationship is not being correctly rematerialized on the server)

Activity

  1. added this to the Release 0.15 milestone on May 31, 2018
  2. self-assigned this
    on May 31, 2018
  3. added a commit that references this issue on May 31, 2018
    e83188a
  4. added a commit that references this issue on Jun 8, 2018
    935181f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions