One question regarding client side dependencies: we need to include dependencies for React, and maybe some other, and there are some ways to include them:
As bower dependencies of main OpenMRS ID (Core) project
As User Dashboard module dependencies (static, CDN-based, or some other variant)
I watched them, and understand how server side working. But no one of them have libraries on a client side. My opinion is to add bower.json (the same as in core project), and save all dependencies there
You do not need to depend on anything from ID dashboard itself. Just add what you need. If you need to, assume you are running from app/user-modules/openmrs-contrib-id-user-management-dashboard in dashboard and require accordingly.
you need to check if the user is part of the dashboard-administrators LDAP group and properly reject – I’d even return 404 in that case – they shouldn’t even know this exists
This should be actually mounted at /admin/dashboard but that’s just my opinion
One more thing @dmytro.trifonov, when the mongo container exits, it doesn’t seem to actuallyo do so cleanly and leaves behind lock files…if that happens, do: sudo rm -fr /docker/mongo/mongod.lock and then start it – it should be fine. I’ll figure it out later.
For today, I setup React server rendering, and experimented with material-ui library. Next I plan to define skeletons for all UI components that we required, and fill them step by step.
Thank you, you can leave your reports til Friday – I don’t wanna micromanage you – so long as you have work done – I’m happy. If you go longer than that – i’m gonna worry!
the midterm milestone, I’d like to see the frontend completed and all components there
the final milestone will be that the I’m able to see users in one unified interface from both MongoDB/LDAP – the the changes I make – affect both stores. If a user is in LDAP, but in Mongo, I should see a red X or similar – however you choose to represent this is up to you.
We can adjust this if you finish things early. Milestones are not written in stone.
Nice to haves but not required:
Spam account detection (not required for now)
LDAP is considered the authority, so if an account exists in LDAP but is not in Mongo, I’d like to be able to add them easily. I know in our production LDAP directory we have ~20,000+ or so users that exist in LDAP but not in Mongo…
I am totally agree with you! [quote=“r0bby, post:33, topic:6292”]
the midterm milestone, I’d like to see the frontend completed and all components there
[/quote]
I believe, that before midterm there may be only static data (mocks) on the UI, but of course, I will try to make things more quickly
I’m fine with place-holder data – consider just passing data as you plan to consume it via a fake REST endpoint…it should be painless to do this…and should take no more than a few hours to write that code – if even an hour!
Give me enough information that I can evaluate your components work
I can probably figure out, what’s the issue? I’m about to go to sleep. I’m learning along side you, which I don’t think is a horrible thing --I know @pascal did a proof of conceptOpenMRS React Example – I feel so pointy-haired boss right now.