These are chat archives for ushahidi/Community

12th
Jan 2016
Hapee
@hapee
Jan 12 2016 09:33
Hi guys, it is me again trying to install version 3, platform is going well but the the platform-client is giving me headaches. There does not seem to be a angular-lazy-bootstarp anymore and https://registry.npmjs.org/angular-lazy-bootstarp and the name of urijs has changed so that generates an error as well
Ushbot
@ushbot
Jan 12 2016 09:34
[Angela Oduor Lungati, Ushahidi] Hey Hapee! Happy new year! @Jason any chance you could help :)?
Hapee
@hapee
Jan 12 2016 09:34
Thanks Angela, you too and all here present of coarse
I also get an error on vinyl-source-stream
Ushbot
@ushbot
Jan 12 2016 09:37
[Jason Mule, Ushahidi] @hapee Did you run npm install?
Hapee
@hapee
Jan 12 2016 09:37
it is npm install that generates the errors
my last run ends with npm http 404 https://registry.npmjs.org/platform-pattern-library
npm ERR! TypeError: Object.keys called on non-object
getting it from ushahidi repository now
Hapee
@hapee
Jan 12 2016 09:43
npm http 404 https://registry.npmjs.org/ngGeolocation
npm ERR! TypeError: Object.keys called on non-object
npm http 404 https://registry.npmjs.org/platform-pattern-library
npm ERR! TypeError: Object.keys called on non-object
Ushbot
@ushbot
Jan 12 2016 10:00
[Jason Mule, Ushahidi] let me try to reproduce.
Hapee
@hapee
Jan 12 2016 10:01
I downloaded 3 packages myself, excluded them from the package.json and now it seem to go through

last error sh: 1: ./node_modules/.bin/bower: not found
npm ERR! weird error 127
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR! not ok code 0

Hapee
@hapee
Jan 12 2016 10:08
created a symbolic link to /usr/local/bin/bower in ./node_modules/.bin/bower but same error
Hapee
@hapee
Jan 12 2016 10:16
that was an error in the ngGeolocation post install but changed package.json there and now npm install runs to the end
and now gulp complaints again: [04:18:10] { [Error: Cannot find module 'angular-lazy-bootstarp/src/bootstrap.js' from '/var/www/html/platform-client/app']
allthough bootstrap.js is in /var/www/html/platform-client/node_modules/angular-lazy-bootstrap/src
Ushbot
@ushbot
Jan 12 2016 10:26
[Jason Mule, Ushahidi] Could you remove the node_modules directory and run npm install afresh?
Hapee
@hapee
Jan 12 2016 10:31
again? did you change anything in the repository?
and should I use my updated package.json or the original one?
Ushbot
@ushbot
Jan 12 2016 10:38
[Jason Mule, Ushahidi] use the update one. Pull in the latest changes, remove the node_modules directory and run npm install
Hapee
@hapee
Jan 12 2016 10:38
gulp ran now but I had to change to files in the app directory: app/app.js because of the URIjs which is now urijs and bootstrap.js because of angular-lazy-bootstrap/src/bootstrap.js
ok will do
but you changed nothing: Your branch is up-to-date with 'origin/master'.
Hapee
@hapee
Jan 12 2016 10:50
tried it at two instances and both show the same:
http://hapee.org/
http://opendata.smagmedia.net/
both show a annoying: Sorry, something went wrong. Try reloading the page.
Ushbot
@ushbot
Jan 12 2016 10:58
[Jason Mule, Ushahidi] So you ran git pull, removed the node_modules directory and ran npm install?
Hapee
@hapee
Jan 12 2016 10:59
I removed platform-client and pulled it from github, npm install is giving me the same errors as before
so did you change anything?
I know the package.json is sending npm to the right urls but npm here seems to look at this place where it is not:
npm http 404 https://registry.npmjs.org/ngGeolocation
npm http 404 https://registry.npmjs.org/platform-pattern-library
Ushbot
@ushbot
Jan 12 2016 11:02
[Jason Mule, Ushahidi] unfortunately, I am not able to reproduce that with a fresh clone of platform-client.
Hapee
@hapee
Jan 12 2016 11:03
ubuntu?
Ushbot
@ushbot
Jan 12 2016 11:03
[Jason Mule, Ushahidi] yup, with a fresh clone...
Hapee
@hapee
Jan 12 2016 11:04
npm --v
1.3.10
Ushbot
@ushbot
Jan 12 2016 11:05
[Jason Mule, Ushahidi] what version of node?
Hapee
@hapee
Jan 12 2016 11:06
v0.10.25 I think that could be updated
what are you using?
Ushbot
@ushbot
Jan 12 2016 11:07
[Jason Mule, Ushahidi] v0.10.37
Hapee
@hapee
Jan 12 2016 11:07
ok let me try that, the current node is already above 4.x.x
Ushbot
@ushbot
Jan 12 2016 11:09
[Jason Mule, Ushahidi] ok, could you try and let us know?
Hapee
@hapee
Jan 12 2016 11:10
I will, thanks so far
Hapee
@hapee
Jan 12 2016 12:07
that made a lot of difference, basically it worked. Now my problem is still if platform and platform client are on the same server how does the apache configuration look like and what is the .env backend_url?
by the way, the node 5.x.x version generated some errors as well
Ushbot
@ushbot
Jan 12 2016 15:30
[Jason Mule, Ushahidi] the .env backend url points to your API. You can separate the platform and platform-client into separate virtual hosts.
Hapee
@hapee
Jan 12 2016 16:44
the point is similar as described here:
https://forums.ushahidi.com/t/sorry-something-went-wrong-try-reloading-the-page-on-client/2968
on my side this is missing:
http://66.195.132.246/platform/httpdocs/api/v3/config/site
but if you visit:
http://66.195.132.246/platform/httpdocs/
It looks like expected, can somebody explain why on two different installs I can at neither of them reach the /api/ and is it symbolic or a real directory somewhere?
sorry for bothering but I need to understand and finish at least one instance
Hapee
@hapee
Jan 12 2016 17:08
Ushbot
@ushbot
Jan 12 2016 18:04
[Robbie Mackay, Ushahidi] @hapee I think you're missing the rewrite rules for the API - hence it works with index.php in the URL but not without.
[Robbie Mackay, Ushahidi] You could try just setting your backend_url to http://66.195.132.246/platform/httpdocs/index.php
[Jess Shorland, Ushahidi] hey team! I'm going to hop in our v3 huddle room now if anyone wants to join me early :-)
[Robbie Mackay, Ushahidi] Good plan
Ushbot
@ushbot
Jan 12 2016 18:12
[Jason Mule, Ushahidi] What's the V3 huddle room url again?

[Link]

<p>Join this live Google Hangouts video call</p>

<p>Click to join now. If the call is over, invite your friends to a new one or start a chat with text, photos and emoji.</p>

[Jason Mule, Ushahidi] thanks
[Robbie Mackay, Ushahidi] @charlie @Brandon did you want to present the UX iterations on the V3 huddle?
[Charlie Harding, Ushahidi] Yes I think that would be good
[Robbie Mackay, Ushahidi] Will, Jess and Jason and I are already there whenever you want to join.
[Charlie Harding, Ushahidi] B/c all of V3 biz people have seen it
Ushbot
@ushbot
Jan 12 2016 18:18
[Jess Shorland, Ushahidi] ok perfect -- we're running through status updates now so you'll have as much time as possible
[Charlie Harding, Ushahidi] I'm on @Brandon want to jump on?
[Brandon Rosage, Ushahidi] yep
Ushbot
@ushbot
Jan 12 2016 18:42
[Robbie Mackay, Ushahidi] @Brandon Love how much progress you've made on this since just last week when I looked at it (thumbsup)
[Jess Shorland, Ushahidi] agreed. amazing
[Brandon Rosage, Ushahidi] http://i.giphy.com/dILZwwhulFUn6.gif
Ushbot
@ushbot
Jan 12 2016 18:48
[Jess Shorland, Ushahidi] don't get too cozy, @Robbie ... you'll fall asleep
Ushbot
@ushbot
Jan 12 2016 18:56
[Robbie Mackay, Ushahidi] heh yea..
[Robbie Mackay, Ushahidi] sooo tired.
[Will, Ushahidi] These are astoundingly great :) I love the layout and the concept of the platform becoming more active in terms of the tasks so it feeds back into the user supported by the views :D
Ushbot
@ushbot
Jan 12 2016 19:05
[Robbie Mackay, Ushahidi] could use the left hand context to highlight an individual post too. ie. when a marker is clicked on the map ..
[Robbie Mackay, Ushahidi] There are some existing backend issues with steps that this will highlight even further. ie. we don't share steps across forms. So if we add a verification step to multiple forms, we actually end up with multiple unique steps. Mostly that just screws up our ability to show everything thats awaiting verification later
[Will, Ushahidi] What if we move steps to being more generic, so that they can be added to forms - so essentially we have a pool of steps that we can add to forms.
When a new steps is created for a form it is available to add to other forms.
So you would have "add new step" or "add existing step" ?
Ushbot
@ushbot
Jan 12 2016 19:11
[Robbie Mackay, Ushahidi] Yup something like that I think. We need to sketch out how that works.. its probably not a super complicated change once we figure out the mental model/data model
[Will, Ushahidi] Yeah, I'd be up for that. I think it would actually be straightforward as management of it would parallel the existing system and to an extent simply form creation. It would also allow us to easily pre-stock steps.
[Will, Ushahidi] It might get complicated if we get into step types that have particular effects.
Ushbot
@ushbot
Jan 12 2016 19:22
[Charlie Harding, Ushahidi] Presentation from today https://docs.google.com/presentation/d/1GsRZF7knETPtyPEclR9CVYJive-bR4LccD-PdZZlLUA/edit#slide=id.p
Ushbot
@ushbot
Jan 12 2016 19:34
[Jason Mule, Ushahidi] Thanks @Charlie and @Brandon
[Charlie Harding, Ushahidi] Please feel free to make comments right on the preso
Ushbot
@ushbot
Jan 12 2016 21:01
[Robbie Mackay, Ushahidi] @Will I've assigned the custom roles to you: ushahidi/platform#526
I *think* I've sketched out most of the work involved but can you review and find things I've missed?

[Link]

<p>ushahidi/platform#526</p>

<p>User Need: More roles with various sets of permissions Triage: Pending Primary users of this feature: Large teams with more complex internal workflows that require delegation of responsibilities to...</p>

[Will, Ushahidi] Cool, I'll start that this evening
[Robbie Mackay, Ushahidi] once we have some idea of all the points this touches, dev should be straight forward, and you could split the work between yourself and Jason if that makes sense.
[Robbie Mackay, Ushahidi] But I think it needs agreement on what will change first.