Overhaul the User Management dashboard for ID Dashboard

I already did it – check the current master of dashboard :wink:

I just pushed a refactor of the development guide – working on the rest – been working on dockerizing mailchecker :slight_smile:

@ttcphilips – you need wireframes on your proposal :wink: – you’re not QUITE done – you put a good deal of work into it

Heads up, I’m doing work – if you forked already – just set your code aside…im doing some history re-writing

Did you see my comments on your proposal? I’d like to see wireframes.

Hi @r0bby, I have added the wireframes for the main functionalities. It was a great rush in these days as I had to be with my brother at hospital. I am extremely sorry for not being able to do that at least a day before the deadline. I just added the UIs. Thank you very much for your encouragement. :slight_smile:

Okay will look – sadly it’s locked in – but the proposal itself is solid

1 Like

Thanks @r0bby. I am doing the initial setting for UI development. It is just for fun. :slight_smile: At the moment I am working on [1][2][3] at the moment. Lets see how this week ends.

1 Like

Which is unrelated to what I do – but still important :thumbsup: I count ANY community involvement when making my decision – you’re solid.

@ttcphilips, @dmytro.trifonov: here’s a chance to help us out: @plypy wrote some really slick async validation for the sign up page – however he’s not handling errors – so as a result the page is returned as HTML – which we’re not seeing due to the way we’re making our HTTP request. If this isn’t clear here’s a video of what’s happening. This has been reported as a bug (the bug has a short recording of the error in action – which can be found here.

The ticket: ID-128

This is a great chance to test out the work I did. Make sure you have docker and docker-compose. I assume you have vagrant and Virtualbox installed, but am including links.

after checking out the code run:

$ cp app/conf.example.js app/conf.js ; vagrant up  ; docker-compose up -d mongodb mailcatcher ; node build/store.js

The last command adds the groups to mongo. We do not bring up dashboard insid e docker – (yet – although you can – just not useful right now) – so I’m explicitly telling docker-compose don’t bring everything up.

If you have questions, feel free to ask here.

3 Likes

@r0bby, Thanks for pointing this out. I am working on this ticket. :slight_smile:

1 Like

It was @plypy’s idea to hand it off to you – it just happens that we don’t have much work to go around – the UI should be unobtrusive when displaying the error. Don’t run slapd to see the error @ttcphilips:

$ vagrant ssh -c "sudo service slapd stop" 

@ttcphilips, how is it going? The code you’re going to need to change is in here.

@dmytro.trifonov – feel to also take a stab – and I’ll take whichever I like best.

I went through the code @r0bby. Will send a PR by tonight. At uni right now. :slight_smile:

OK, thanks. I will work on it Unfortunately, I had seen this issue some late.

Btw, I am also still working on issues for OpenMRS SDK project :wink:

1 Like

Feel free to work on either…i was just offering it up.

@r0bby, suddenly after some code change when I run ‘docker-compose up mongodb -d’, it gives this error. ERROR: Couldn’t connect to Docker daemon at http+docker://localunixsocket - is it running?

If it’s at a non-standard location, specify the URL with the DOCKER_HOST environment variable.

In the docker.log it has following lines in the tail.

INFO[0000] Loading containers: start.                   

INFO[0000] Loading containers: done.                    
INFO[0000] Daemon has completed initialization          
INFO[0000] Docker daemon                                 commit=20f81dd execdriver=native-0.2 graphdriver=aufs version=1.10.3
INFO[0000] API listen on /var/run/docker.sock           
ERRO[0039] Handler for POST /v1.22/containers/create returned error: No such image: hello-world:latest 
INFO[0049] No non-localhost DNS nameservers are left in resolv.conf. Using default external servers : [nameserver 8.8.8.8 nameserver 8.8.4.4] 
INFO[0049] IPv6 enabled; Adding default IPv6 external servers : [nameserver 2001:4860:4860::8888 nameserver 2001:4860:4860::8844] 
ERRO[0822] Handler for GET /v1.22/networks/openmrscontribid_default returned error: network openmrscontribid_default not found 

Can you please tell me what may be the cause for this?

I have given the "export DOCKER_HOST=127.0.0.1:27018" in bashrc. Still above error comes with

ERROR: Couldn’t connect to Docker daemon at http://127.0.0.1:27018 - is it running?

Just grepped it and saw it is running as root. So used sudo with the command after killing the already running deamon once. And now it works. :slight_smile:

1 Like

But now I get this error.

Bringing machine 'default' up with 'virtualbox' provider...
[default] VirtualBox VM is already running.
Traceback (most recent call last):
  File "<string>", line 3, in <module>
  File "compose/cli/main.py", line 57, in main
  File "compose/cli/main.py", line 108, in perform_command
  File "compose/cli/main.py", line 728, in up
  File "compose/project.py", line 368, in up
  File "compose/project.py", line 406, in initialize
  File "compose/network.py", line 162, in initialize
  File "compose/network.py", line 47, in ensure
  File "compose/network.py", line 82, in inspect
  File ".tox/py27/lib/python2.7/site-packages/docker/utils/decorators.py", line 35, in wrapper
  File ".tox/py27/lib/python2.7/site-packages/docker/api/network.py", line 50, in inspect_network
  File ".tox/py27/lib/python2.7/site-packages/docker/client.py", line 161, in _result
  File ".tox/py27/lib/python2.7/site-packages/requests/models.py", line 819, in json
  File "json/__init__.py", line 338, in loads
  File "json/decoder.py", line 366, in decode
  File "json/decoder.py", line 384, in raw_decode
ValueError: No JSON object could be decoded
docker-compose returned -1

@r0bby Any thoughts why this happens?

Run it as root or add yourself to the docker user group. As for your error, never saw it. @ttcphilips, @dmytro.trifonov did submit a PR but I’m going to hold off on merging it - partially because I’m busy…partially because I wanna give both of you a chance and I’ll choose the best one or parts of both.