Skip to content

Conversation

@SzHeJason
Copy link

fix #1083

@Phocea
Copy link
Contributor

Phocea commented Jan 4, 2017

Your changes are failing the maEmbeddedListFieldSpec.js test. Can you please have a look?

Phocea added a commit that referenced this pull request Jan 4, 2017
Rebase #1286 to fix the Integration tests
@Phocea
Copy link
Contributor

Phocea commented Jan 4, 2017

IT tests are failing but this is not a problem with your code.
@Kmaschta do you know why this still occurs ?

Copy link
Contributor

@jpetitcolas jpetitcolas left a comment

Choose a reason for hiding this comment

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

Not sure to understand the fix? Can you elaborate? :)

Moreover, can you add a test to prove this fix?

}
scope.fields = targetFields;
scope.formName = [];
// scope.formNamex = []
Copy link
Contributor

Choose a reason for hiding this comment

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

Commented out code, please remove.

scope.entries = scope.entries.filter(e => e !== entry);
};
scope.init = ($index) => {
scope.formName[$index] = scope.$parent.form?scope.$parent.form['subform_' + $index] : "";
Copy link
Contributor

Choose a reason for hiding this comment

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

Coding style: please add spaces before and after ?. :)

</div>
</div>
</div></div>`
</div>
Copy link
Contributor

Choose a reason for hiding this comment

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

An indentation is missing here.

}

maEmbeddedListField.$inject = [];
maEmbeddedListField.$inject = [];
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing file end of line.

@jpetitcolas
Copy link
Contributor

@Phocea: no idea for tests. I just relaunched Travis. Wait and see. :)

@Phocea
Copy link
Contributor

Phocea commented Jan 5, 2017

@jpetitcolas same problem as last year. If merging from a fork, Selenium test are started on a fixed IP (http://172.17.0.12:54413/wd/hub), if merging from a master branch then they are started using dns (http://ondemand.saucelabs.com:80/wd/hub)..

@SzHeJason I agree with @jpetitcolas, the unit test has been fixed but would be great to add a specific test case verifying that the validation is working. And also add an example in the blog config

@SzHeJason
Copy link
Author

still fail,I will try to make unit test

@Phocea
Copy link
Contributor

Phocea commented Jan 5, 2017

@SzHeJason if only the IT tests are failing, dont worry about it for now. What we would like is a better understanding of your fix.
Why do you initialise the formName inside the full scope for instance?

@SzHeJason
Copy link
Author

I optimized and resubmitted my code that it is very close to master branch

@Kmaschta
Copy link
Contributor

Kmaschta commented Jan 7, 2017

Ok, the PR #1288 proved that you just need to rebase to pass the current tests.

Can you rebase from master and add a test for your fix as requested by @jpetitcolas?
Thanks!

@Phocea
Copy link
Contributor

Phocea commented Mar 7, 2017

@jpetitcolas are the changes done ok for you ?

@Kmaschta
Copy link
Contributor

Kmaschta commented Mar 8, 2017

@SzHeJason Thanks for the rebase. Can you apply the @jpetitcolas request changes ?

@jpetitcolas
Copy link
Contributor

I'm not sure to understand this fix. Can you elaborate and add a test proving the bug resolution? From what I see, there is no test updates. :)

And, yes, don't worry about failing E2E tests.

@StefanNedelchev
Copy link

So is embedded_list validation fixed after all? I have the latest version of ng-admin and it still doesn't work.

@Kmaschta
Copy link
Contributor

Sorry @hardmaster92, we're focusing our attention to marmelab/react-admin as of now and the activity on ng-admin is limited to absolute necessary.

@StefanNedelchev
Copy link

Sorry @hardmaster92, we're focusing our attention to marmelab/react-admin as of now and the activity on ng-admin is limited to absolute necessary.

Sorry to hear that. Then I hope some git user with free time to fix this issue.

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.

Fields inside embedded_list and validation

5 participants