-
Notifications
You must be signed in to change notification settings - Fork 3
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
db-object-widget is not well supported #184
Comments
Does the data bind properly through the CHT and only fails to bind when testing via the harness? Ensure you're familiar with the difference between the CHT user's contact doc and the CouchDB's user document or this user-settings representation in CHT. A user's role at the CHT level is not set through the user's contact document, but rather through the user's userSettings document. Recommend you're familiar with the following interfaces: gl debugging and let me know if you have questions as you untangle this. The CHT's logic with users, user-settings, user's contacts (etc) is pretty complex and so some shortcuts were taken when building the harness. Welcome any suggestions or improvements you can bring. |
This is what's happening in the CHT:
The bug report above infers that the This scenario is broken in the harness because the CHTCore.Select2Search is not implemented. Proposed workaround is to use |
Describe the bug
When you fill a form using
harness.fillForm
the user role is not coming in user data as the form inputs.To Reproduce
Steps to reproduce the behavior:
What happened?
contact_id
andname
have theid
andname
inharness.defaults.json
. Butrole
is not filledWhat did you expect?
role should be filled with user role. It is used in the form to check the connected user role (ex: chw or oca) and display field according to it.
Screenshots
The text was updated successfully, but these errors were encountered: