These are chat archives for ushahidi/Community

4th
May 2017
Arturo
@ArturoQuintana
May 04 2017 13:35
Good morning @WillDoran and @davidlosada
This morning I applied all the new changes to our Ushahidi instance.
I would like to say that everything gone soft and good. but unfortunately guys, it did not.
I will attach an image about the behavior before (right) and after (left) of the installation.
You will realize that we are losing information (posts).
ushahidi-01.jpg
@WillDoran and @davidlosada
We are receiving new messages and some new errors
Ushbot
@ushbot
May 04 2017 13:38
[David Losada, Ushahidi] hi Arturo, please post all those errors, it may help us figure it out
Arturo
@ArturoQuintana
May 04 2017 13:41

@WillDoran and @davidlosada

After we apply these steps on the API
1.- git pull
2.- ./bin/update
3.- ./bin/phinx migrate -c application/phinx.php

We are getting these message on the prompt:
Package guzzle/guzzle is abandoned, you should avoid using it. Use guzzlehttp/guzzle instead.
Package league/url is abandoned, you should avoid using it. Use league/uri instead.

And, we are getting this error messages in the browser console:

vendor.f91c1809641b2256de4c.bundle.js:9 Error: Bounds are not valid.
at e.fitBounds (vendor.f91c1809641b2256de4c.bundle.js:144)
at u (app.436688d6d3d279eb1f1a.bundle.js:7)
at app.436688d6d3d279eb1f1a.bundle.js:7
at a (vendor.f91c1809641b2256de4c.bundle.js:10)
at vendor.f91c1809641b2256de4c.bundle.js:10
at p.$eval (vendor.f91c1809641b2256de4c.bundle.js:10)
at p.$digest (vendor.f91c1809641b2256de4c.bundle.js:10)
at p.$apply (vendor.f91c1809641b2256de4c.bundle.js:10)
at u (vendor.f91c1809641b2256de4c.bundle.js:9)
at _ (vendor.f91c1809641b2256de4c.bundle.js:9)

..js$:115 Uncaught Error: Cannot find module './en-US.js'.
at .
.js$:115
at _ (..js$:115)
at t (.
.js$:112)
at app.436688d6d3d279eb1f1a.bundle.js:4
at window.webpackJsonp (vendor.f91c1809641b2256de4c.bundle.js:1)
at 1.549fc94….bundle.js:1

in the client, we still get many warning messages (in yellow)

WARNING in app.e2dd76710832aa706434.bundle.js from UglifyJs
Dropping unused function getBaseLayersForControl [./app/common/services/maps.js:84,13]

WARNING in 1.574ea0c3469a690a046e.bundle.js from UglifyJs
Condition always true [./~/moment/locale/af.js:6,0]
Condition always true [./~/moment/locale/ar-dz.js:6,0]
Condition always true [./~/moment/locale/ar-ly.js:6,0]
Condition always true [./~/moment/locale/ar-ma.js:7,0]
Condition always true [./~/moment/locale/ar-sa.js:6,0]
Condition always true [./~/moment/locale/ar-tn.js:6,0]
Condition always true [./~/moment/locale/ar.js:8,0]
Condition always true [./~/moment/locale/az.js:6,0]
Condition always true [./~/moment/locale/be.js:8,0]
Condition always true [./~/moment/locale/bg-x.js:3,0]
Condition always true [./~/moment/locale/bg.js:6,0]
Condition always true [./~/moment/locale/bn.js:6,0]
Condition always true [./~/moment/locale/bo.js:6,0]
Condition always true [./~/moment/locale/br.js:6,0]
Condition always true [./~/moment/locale/bs.js:7,0]
Condition always true [./~/moment/locale/ca.js:6,0]
Condition always true [./~/moment/locale/cs.js:6,0]
Dropping unreachable code [./~/moment/locale/cs.js:31,0]
Dropping unreachable code [./~/moment/locale/cs.js:40,0]
Dropping unreachable code [./~/moment/locale/cs.js:49,0]
Dropping unreachable code [./~/moment/locale/cs.js:58,0]
Dropping unreachable code [./~/moment/locale/cs.js:67,0]
Condition always true [./~/moment/locale/cv.js:6,0]
Condition always true [./~/moment/locale/cy.js:7,0]
Condition always true [./~/moment/locale/da.js:6,0]
Condition always true [./~/moment/locale/de-at.js:9,0]
Condition always true [./~/moment/locale/de.js:8,0]
Condition always true [./~/moment/locale/dv.js:6,0]
Condition always true [./~/moment/locale/el.js:6,0]
Condition always true [./~/moment/locale/en-au.js:6,0]
Condition always true [./~/moment/locale/en-ca.js:6,0]
Condition always true [./~/moment/locale/en-gb.js:6,0]
Condition always true [./~/moment/locale/en-ie.js:6,0]
Condition always true [./~/moment/locale/en-nz.js:6,0]
Condition always true [./~/moment/locale/eo.js:8,0]
Condition always true [./~/moment/locale/es-do.js:5,0]
Condition always true [./~/moment/locale/es.js:6,0]
Condition always true [./~/moment/locale/et.js:7,0]
Condition always true [./~/moment/locale/eu.js:6,0]
Condition always true [./~/moment/locale/fa.js:6,0]
Condition always true [./~/moment/locale/fi.js:6,0]
Condition always true [./~/moment/locale/fo.js:6,0]
Condition always true [./~/moment/locale/fr-ca.js:6,0]
Condition always true [./~/moment/locale/fr-ch.js:6,0]
Condition always true [./~/moment/locale/fr.js:6,0]
Condition always true [./~/moment/locale/fy.js:6,0]
Condition always true [./~/moment/locale/gd.js:6,0]
Condition always true [./~/moment/locale/gl.js:6,0]
Condition always true [./~/moment/locale/he.js:8,0]
Condition always true [./~/moment/locale/hi.js:6,0]
Condition always true [./~/moment/locale/hr.js:6,0]
Condition always true [./~/moment/locale/hu.js:6,0]
Dropping unused variable suffix [./~/moment/locale/hu.js:16,0]
Condition always true [./~/moment/locale/hy-am.js:6,0]
Condition always true [./~/moment/locale/id.js:7,0]
Condition always true [./~/moment/locale/is.js:6,0]
Condition always true [./~/moment/locale/it.js:7,0]
Condition always true [./~/moment/locale/ja.js:6,0]
Condition always true [./~/moment/locale/jv.js:7,0]
Condition always true [./~/moment/locale/ka.js:6,0]
Condition always true [./~/moment/locale/kk.js:6,0]
Condition always true [./~/moment/locale/km.js:6,0]
Condition always true [./~/moment/locale/ko.js:7,0]
Condition always true [./~/moment/locale/ky.js:6,0]
Condition always true [./~/moment/locale/lb.js:7,0]
Condition always true [./~/moment/locale/lo.js:6,0]
Condition always true [./~/moment/locale/lt.js:6,0]
Condition always true [./~/moment/locale/lv.js:7,0]
Condition always true [./~/moment/locale/me.js:6,0]
Condition always true [./~/moment/locale/mi.js:6,0]
Condition always true [./~/moment/locale/mk.js:6,0]
Condition always true [./~/moment/locale/ml.js:6,0]
Condition always true [./~/moment/locale/mr.js:7,0]
Condition a

Condition always true [./~/moment/locale/ms-my.js:7,0]
Condition always true [./~/moment/locale/ms.js:6,0]
Condition always true [./~/moment/locale/my.js:8,0]
Condition always true [./~/moment/locale/nb.js:7,0]
Condition always true [./~/moment/locale/ne.js:6,0]
Condition always true [./~/moment/locale/nl-be.js:7,0]
Condition always true [./~/moment/locale/nl.js:7,0]
Condition always true [./~/moment/locale/nn.js:6,0]
Condition always true [./~/moment/locale/pa-in.js:6,0]
Condition always true [./~/moment/locale/pl.js:6,0]
Condition always true [./~/moment/locale/pt-br.js:6,0]
Condition always true [./~/moment/locale/pt.js:6,0]
Condition always true [./~/moment/locale/ro.js:7,0]
Condition always true [./~/moment/locale/ru.js:8,0]
Condition always true [./~/moment/locale/se.js:6,0]
Condition always true [./~/moment/locale/si.js:6,0]
Condition always true [./~/moment/locale/sk.js:7,0]
Dropping unreachable code [./~/moment/locale/sk.js:32,0]
Dropping unreachable code [./~/moment/locale/sk.js:41,0]
Dropping unreachable code [./~/moment/locale/sk.js:50,0]
Dropping unreachable code [./~/moment/locale/sk.js:59,0]
Dropping unreachable code [./~/moment/locale/sk.js:68,0]
Condition always true [./~/moment/locale/sl.js:6,0]
Condition always true [./~/moment/locale/sq.js:8,0]
Condition always true [./~/moment/locale/sr-cyrl.js:6,0]
Condition always true [./~/moment/locale/sr.js:6,0]
Condition always true [./~/moment/locale/ss.js:6,0]
Condition always true [./~/moment/locale/sv.js:6,0]
Condition always true [./~/moment/locale/sw.js:6,0]
Condition always true [./~/moment/locale/ta.js:6,0]
Condition always true [./~/moment/locale/te.js:6,0]
Condition always true [./~/moment/locale/tet.js:7,0]
Condition always true [./~/moment/locale/th.js:6,0]
Condition always true [./~/moment/locale/tl-ph.js:6,0]
Condition always true [./~/moment/locale/tlh.js:6,0]
Condition always true [./~/moment/locale/tr.js:7,0]
Condition always true [./~/moment/locale/tzl.js:7,0]
Condition always true [./~/moment/locale/tzm-latn.js:6,0]
Condition always true [./~/moment/locale/tzm.js:6,0]
Condition always true [./~/moment/locale/uk.js:7,0]
Condition always true [./~/moment/locale/uz.js:6,0]
Condition always true [./~/moment/locale/vi.js:6,0]
Condition always true [./~/moment/locale/x-pseudo.js:6,0]
Condition always true [./~/moment/locale/zh-cn.js:7,0]
Condition always true [./~/moment/locale/zh-hk.js:8,0]
Condition always true [./~/moment/locale/zh-tw.js:7,0]
WARNING in vendor.bada87aa0eaf761fb72b.bundle.js from UglifyJs
Side effects in initialization of unused variable $element [./~/angular/angular.js:9552,0]
Dropping unreachable code [./~/angular/angular.js:20263,0]
Dropping unused variable expression [./~/angular/angular.js:15347,0]
Dropping unused function includes [./~/angular/angular.js:799,0]
Dropping unused function nodesetLinkingFn [./~/angular/angular.js:10162,0]
Dropping unused function directiveLinkingFn [./~/angular/angular.js:10169,0]
Condition always true [./~/angular-translate/dist/angular-translate.js:7,0]
Dropping unreachable code [./~/angular-translate/dist/angular-translate.js:12,3]
Condition always true [./~/angular-translate-loader-static-files/angular-translate-loader-static-files.js:7,0]
Dropping unreachable code [./~/angular-translate-loader-static-files/angular-translate-loader-static-files.js:12,3]
Dropping unused function getSlideByIndex [./~/angular-ui-bootstrap/dist/ui-bootstrap-tpls.js:566,0]
Dropping unused variable lastActivated [./~/angular-ui-bootstrap/dist/ui-bootstrap-tpls.js:1237,0]
Dropping unused variable dataPerTracked [./~/angular-ui-bootstrap/dist/ui-bootstrap-tpls.js:1229,0]
Side effects in initialization of unused variable optionsUsed [./~/angular-ui-bootstrap/dist/ui-bootstrap-tpls.js:1346,0]
Dropping unused function cameltoDash [./~/angular-ui-bootstrap/dist/ui-bootstrap-tpls.js:2870,0]
Dropping unused variable cache [./~/angular-ui-bootstrap/dist/ui-bootstrap-tpls.js:2584,0]
Dropping unused variable selectedOption [./~/angular-ui-bootstrap/dist/ui-bootstrap-tpls.js:3123,0]
Condition always true [./~/angular-datepicker/build/angular-datepicker.js:7,13]
Condition always true [./~/angular-datepicker/build/angular-datepicker.js:12,13]
Condition always true [./~/angular-datepicker/build/angular-datepicker.js:17,13]
Condition always true [./~/ng-showdown/dist/ng-showdown.js:3,0]
Dropping unreachable code [./~/ng-showdown/dist/ng-showdown.js:6,3]
Condition always true [./~/ng-showdown/~/showdown/dist/showdown.js:2439,1]
Dropping unreachable code [./~/ng-showdown/~/showdown/dist/showdown.js:2447,0]
Dropping unused variable root [./~/ng-showdown/~/showdown/dist/showdown.js:2432,0]
Condition always true [./~/d3/d3.js:9553,0]
Dropping unreachable code [./~/d3/d3.js:9553,75]
Condition always true [./~/nvd3/src/core.js:148,0]
Dropping unused variable _self [./~/nvd3/src/utils.js:336,0]
Side effects in initialization of unused variable gEnter [./~/nvd3/src/models/axis.js:48,0]
Dropping unused function resizePath [./~/nvd3/src/models/lineChart.js:378,0]
Side effects in initialization of unused variable contextEnter [./~/nvd3/src/models/lineChart.js:149,0]
Side effects in initialization of unused variable defsEnter [./~/nvd3/src/models/multiBarHorizontal.js:113,0]
Side effects in initialization of unused variable g [./~/nvd3/src/models/multiBarHorizontal.js:115,0]
Dropping unused variable delay [./~/nvd3/src/models/multiBarHorizontal.js:30,0]
Dropping unused variable that [./~/nvd3/src/models/multiBarHorizontalChart.js:97,0]
Side effects in initialization of unused variable vPointClips [./~/nvd3/src/models/scatter.js:273,0]
Condition always true [./~/angular-nvd3/src/angular-nvd3.js:7,0]
Condition always true [./~/nvd3/build/nv.d3.js:150,0]
Dropping unused variable _self [./~/nvd3/build/nv.d3.js:1212,0]
Side effects in initialization of unused variable gEnter [./~/nvd3/build/nv.d3.js:1634,0]
Side effects in initialization of unused variable wrapEnter [./~/nvd3/build/nv.d3.js:2063,0]
Dropping unused variable that [./~/nvd3/build/nv.d3.js:2354,0]
Side effects in initialization of unused variable x0 [./~/nvd3/build/nv.d3.js:2614,0]
Side effects in initialization of unused variable rangeMin [./~/nvd3/build/nv.d3.js:2621,0]
Side effects in initialization of unused variable rangeMax [./~/nvd3/build/nv.d3.js:2622,0]
Side effects in initialization of unused variable rangeAvg [./~/nvd3/build/nv.d3.js:2623,0]
Dropping unused variable w0 [./~/nvd3/build/nv.d3.js:2643,0]
Dropping unused variable xp0 [./~/nvd3/build/nv.d3.js:2645,0]
Dropping unused variable that [./~/nvd3/build/nv.d3.js:2875,0]
Dropping unused variable w0 [./~/nvd3/build/nv.d3.js:2916,0]
Dropping unused variable w1 [./~/nvd3/build/nv.d3.js:2917,0]
Side effects in initialization of unused variable lines [./~/nvd3/build/nv.d3.js:3163,0]
Side effects in initialization of unused variable rects [./~/nvd3/build/nv.d3.js:3171,0]
Dropping unused variable that [./~/nvd3/build/nv.d3.js:3370,0]
Dropping unused variable transitionDuration [./~/nvd3/build/nv.d3.js:3310,0]
Side effects in initialization of unused variable g [./~/nvd3/build/nv.d3.js:4002,0]
Dropping unused variable that [./~/nvd3/build/nv.d3.js:4245,0]
Side effects in initialization of unused variable availableLength [./~/nvd3/build/nv.d3.js:4492,0]
Side effects in initialization of unused variable gEnter [./~/nvd3/build/nv.d3.js:4510,0]
Dropping unused variable domain [./~/nvd3/build/nv.d3.js:4471,0]
Dropping unused variable ticks [./~/nvd3/build/nv.d3.js:4637,0]
Side effects in initialization of unused variable gEnter [./~/nvd3/build/nv.d3.js:5131,0]
Dropping unused variable that [./~/nvd3/build/nv.d3.js:5741,0]
Dropping unused function resizePath [./~/nvd3/build/nv.d3.js:7066,0]
Side effects in initialization of unused variable contextEnter [./~/nvd3/build/nv.d3.js:6837,0]
Dropping unused variable that [./~/nvd3/build/nv.d3.js:7341,0]
Dropping unused variable endFn [./~/nvd3/build/nv.d3.js:7952,0]
Side effects in initialization of unused variable barsEnter [./~/nvd3/build/nv.d3.js:8117,0]
Dropping unused variable that [./~/nvd3/build/nv.d3.js:8428,0]
Side effects in initialization of unused variable defsEnter [./~/nvd3/build/nv.d3.js:8922,0]
Side effects in initialization of unused variable g [./~/nvd3/build/nv.d3.js:8924,0]
Dropping unused variable delay [./~/nvd3/build/nv.d3.js:8839,0]
Dropping unused variable that [./~/nvd3/build/nv.d3.js:9268,0]
Dropping unused variable that [./~/nvd3/build/nv.d3.js:9604,0]
Dropping unused variable that [./~/nvd3/build/nv.d3.js:10932,0]
Side effects in initialization of unused variable dimensionTooltip [./~/nvd3/build/nv.d3.js:10863,0]
Dropping unused variable controlWidth [./~/nvd3/build/nv.d3.js:10877,0]
Dropping unused function angle [./~/nvd3/build/nv.d3.js:11495,0]
Side effects in initialization of unused variable paths [./~/nvd3/build/nv.d3.js:11357,0]
Dropping unused variable that [./~/nvd3/build/nv.d3.js:11654,0]
Side effects in initialization of unused variable vPointClips [./~/nvd3/build/nv.d3.js:12105,0]
Dropping unused variable that [./~/nvd3/build/nv.d3.js:12543,0]
Side effects in initialization of unused variable gEnter [./~/nvd3/build/nv.d3.js:12897,0]
Side effects in initialization of unused variable g [./~/nvd3/build/nv.d3.js:12898,0]
Dropping unused variable yDistMax [./~/nvd3/build/nv.d3.js:13962,0]
Dropping unused variable that [./~/nvd3/build/nv.d3.js:13640,0]
Side effects in initialization of unused variable contextEnter [./~/nvd3/build/nv.d3.js:13696,0]
Side effects in initialization of unused variable id [./~/nvd3/build/nv.d3.js:14584,0]
Condition always true [./~/angular-cache/dist/angular-cache.js:9,0]
Condition always true [./~/moment/moment.js:8,0]
Condition always true [./~/underscore/underscore.js:48,0]
Dropping unreachable code [./~/underscore/underscore.js:54,0]
Condition always true [./~/underscore/underscore.js:1543,0]
Condition always true [./~/URIjs/src/URI.js:17,0]
Dropping unreachable code [./~/URIjs/src/URI.js:20,3]
Dropping unused variable length [./~/URIjs/src/punycode.js:231,0]
Condition always true [./~/URIjs/src/punycode.js:489,0]
Dropping unreachable code [./~/URIjs/src/punycode.js:496,2]
Side effects in initialization of unused variable freeModule [./~/URIjs/src/punycode.js:6,0]
Dropping unused variable key [./~/URIjs/src/punycode.js:51,0]
Condition always true [./~/URIjs/src/IPv6.js:19,0]
Dropping unreachable code [./~/URIjs/src/IPv6.js:22,3]
Condition always true [./~/URIjs/src/SecondLevelDomains.js:19,0]
Dropping unreachable code [./~/URIjs/src/SecondLevelDomains.js:22,3]
Condition always true [./~/leaflet/dist/leaflet-src.js:26,1]
Condition always true [./~/imports-loader?L=leaflet!./~/leaflet.locatecontrol/src/L.Control.Locate.js:15,0]
Dropping unreachable code [./~/imports-loader?L=leaflet!./~/leaflet.locatecontrol/src/L.Control.Locate.js:19,5]
Arturo
@ArturoQuintana
May 04 2017 13:49

@WillDoran and @davidlosada
But now we have discovered something new!
In the recovering process of a previous version, we use this git command:

git reset --hard master@{"20 minutes ago"}

Ushbot
@ushbot
May 04 2017 13:51
[David Losada, Ushahidi] mm I think the latest commits are older than a few minutes go..
[David Losada, Ushahidi] so .. which git commit did you build that was still causing those errors?
Arturo
@ArturoQuintana
May 04 2017 13:53
then, it is necessary re-update the API using ./bin/update command.
What is our surprise?
we are receiving new error messages :-(
Here is the list
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
monolog/monolog suggests installing mongodb/mongodb (Allow sending log messages to a MongoDB server via PHP Driver)
monolog/monolog suggests installing php-amqplib/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)
monolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Chrome)
monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
henrikbjorn/phpspec-code-coverage suggests installing ext-xdebug (To allow coverage generation when not using a recent version of phpdbg)
Ushbot
@ushbot
May 04 2017 13:53
[David Losada, Ushahidi] there’s no mention of an error in there actually …
Arturo
@ArturoQuintana
May 04 2017 13:54
in the API, I use this commands:
git pull
./bin/update
./bin/phinx migrate -c application/phinx.php
in the client, I use these
git pull
npm install
gulp build
Ushbot
@ushbot
May 04 2017 13:56
[David Losada, Ushahidi] let’s check your git statuses… in “platform” if you run “git log” , do you get this as the first commit in the list? 1c2d184679e2bc9999ec4772fdbb5d1d66cf3e44
Arturo
@ArturoQuintana
May 04 2017 13:58
nop

commit c66ee1a9619a5609d8afe2b207dd806d20d9eda5
Merge: ac9ee07 7a27fcd

Date: Mon Mar 27 08:39:15 2017 -0400

Merge branch 'master' of https://github.com/ushahidi/platform

commit ac9ee0705abdf1dd019b67ea2ba089931a62cf90

Date: Mon Mar 27 08:38:44 2017 -0400

Adding time to Access Token

commit 7a27fcda5145d2e0186292c55ba38a5247fa4c88
Merge: 4d2f0bf 5d03813
Author: Robbie Mackay rm@robbiemackay.com
Date: Mon Mar 27 12:16:50 2017 +1300

Merge branch 'develop'

commit 5d038133c8ceeb95c7df83f6f71fdf22c0c17d68
Author: Robbie Mackay rm@robbiemackay.com
Date: Mon Mar 27 11:49:12 2017 +1300

Fix reversed logic bin/ushahidi user create --with-hash

Check on hashed/not hashed was reversed.

Refs ushahidi/platform-cloud-interface#166

:
commit c66ee1a9619a5609d8afe2b207dd806d20d9eda5
Merge: ac9ee07 7a27fcd

Date: Mon Mar 27 08:39:15 2017 -0400

Merge branch 'master' of https://github.com/ushahidi/platform

commit ac9ee0705abdf1dd019b67ea2ba089931a62cf90

Date: Mon Mar 27 08:38:44 2017 -0400

Adding time to Access Token

commit 7a27fcda5145d2e0186292c55ba38a5247fa4c88
Merge: 4d2f0bf 5d03813
Author: Robbie Mackay rm@robbiemackay.com
Date: Mon Mar 27 12:16:50 2017 +1300

Merge branch 'develop'

commit 5d038133c8ceeb95c7df83f6f71fdf22c0c17d68
Author: Robbie Mackay rm@robbiemackay.com
Date: Mon Mar 27 11:49:12 2017 +1300

Fix reversed logic bin/ushahidi user create --with-hash

Check on hashed/not hashed was reversed.

Refs ushahidi/platform-cloud-interface#166

commit 1cc0cb1b2dd58c5faf14c0a1d11ef13a2fb9bb7e
Author: Robbie Mackay rm@robbiemackay.com
Date: Mon Mar 27 11:31:03 2017 +1300

Fix bin/ushahidi user create with-hash option shortcut

Can't use -h because thats already help. Switch to -b

:
commit c66ee1a9619a5609d8afe2b207dd806d20d9eda5
Merge: ac9ee07 7a27fcd

Date: Mon Mar 27 08:39:15 2017 -0400

Merge branch 'master' of https://github.com/ushahidi/platform

commit ac9ee0705abdf1dd019b67ea2ba089931a62cf90

Date: Mon Mar 27 08:38:44 2017 -0400

Adding time to Access Token

commit 7a27fcda5145d2e0186292c55ba38a5247fa4c88
Merge: 4d2f0bf 5d03813
Author: Robbie Mackay rm@robbiemackay.com
Date: Mon Mar 27 12:16:50 2017 +1300

Merge branch 'develop'

commit 5d038133c8ceeb95c7df83f6f71fdf22c0c17d68
Author: Robbie Mackay rm@robbiemackay.com
Date: Mon Mar 27 11:49:12 2017 +1300

Fix reversed logic bin/ushahidi user create --with-hash

Check on hashed/not hashed was reversed.

Refs ushahidi/platform-cloud-interface#166

commit 1cc0cb1b2dd58c5faf14c0a1d11ef13a2fb9bb7e
Author: Robbie Mackay rm@robbiemackay.com
Date: Mon Mar 27 11:31:03 2017 +1300

Fix bin/ushahidi user create with-hash option shortcut

Can't use -h because thats already help. Switch to -b

Refs ushahidi/platform-cloud-interface#166

commit 2a6b538e8f0746a435126c680ba8ffd111a7c94f
Author: Anna Iosif hej@annaiosif.se
Date: Sun Mar 26 22:32:45 2017 +0200

Ushbot
@ushbot
May 04 2017 13:59
[David Losada, Ushahidi] mm maybe you are not pulling from our repository?
[David Losada, Ushahidi] try git remote -v to get the list of remotes
Ushbot
@ushbot
May 04 2017 14:01
[David Losada, Ushahidi] ok that’s our repo
[David Losada, Ushahidi] what does git status show?
Arturo
@ArturoQuintana
May 04 2017 14:01

On branch master

Your branch and 'origin/master' have diverged,

and have 2 and 2 different commit(s) each, respectively.

#
nothing to commit (working directory clean)
Ushbot
@ushbot
May 04 2017 14:03
[David Losada, Ushahidi] mm right since you committed in your local copy, you can not just pull our history
[David Losada, Ushahidi] and so the update procedure is a bit different for you
Arturo
@ArturoQuintana
May 04 2017 14:04
so?
This is what I have been doing so far
Ushbot
@ushbot
May 04 2017 14:06
[David Losada, Ushahidi] I’d suggest you to do this now : git branch fiu git checkout fiu .. so you will be running things from your own “fiu” branch from now on
[David Losada, Ushahidi] then, when you want to apply an update: git pull git merge origin/master
[David Losada, Ushahidi] the non git commands would be the same
Arturo
@ArturoQuintana
May 04 2017 14:11
but, why before I was updating without any problem and now I have to apply these changes?
what is the meaning of " be running things from your own"
will we be up to date with the Ushahidi's changes?
Ushbot
@ushbot
May 04 2017 14:12
[David Losada, Ushahidi] reason is your commits dated March 27
[David Losada, Ushahidi] a branch is a linear history of commits
[David Losada, Ushahidi] since you introduced some code in there that is not in our branch .. you can not just pull our branch without destroying your commits
[David Losada, Ushahidi] the solution to keep your changes while still incorporating our updates, is to create another branch of your own .. and merging the changes we make (using “git merge”)
[David Losada, Ushahidi] as long as your changes don’t conflict with ours, it should all be good
Arturo
@ArturoQuintana
May 04 2017 14:17
Yes, I see it. I will follow your suggestion. But,
I've been doing this for the last 6 months :-|
I have not changed the code :-/
Why has it stopped merging, and why is it something new in the procedure?
Ushbot
@ushbot
May 04 2017 14:18
[David Losada, Ushahidi] this commit here:

[David Losada, Ushahidi] commit ac9ee0705abdf1dd019b67ea2ba089931a62cf90
Author: wingy007 how@fiu.edu
Date: Mon Mar 27 08:38:44 2017 -0400

Adding time to Access Token

Arturo
@ArturoQuintana
May 04 2017 14:18
I got it
it is true
I did not remember about this!
Ushbot
@ushbot
May 04 2017 14:20
[David Losada, Ushahidi] was that just a change in how long the sessions last until they expire?
Arturo
@ArturoQuintana
May 04 2017 14:20
I have change the code!
sorry!
Ushbot
@ushbot
May 04 2017 14:20
[David Losada, Ushahidi] I remember something about that
Arturo
@ArturoQuintana
May 04 2017 14:20
yep
huummm
my fault :-/
Ushbot
@ushbot
May 04 2017 14:21
[David Losada, Ushahidi] well not totally, we should actually have that as a configuration parameter
Arturo
@ArturoQuintana
May 04 2017 14:21
that's will be great
Ushbot
@ushbot
May 04 2017 14:21
[David Losada, Ushahidi] good news is that you will probably not have conflicts
[David Losada, Ushahidi] so I’d suggest you use that branch approach I mentioned by now
Arturo
@ArturoQuintana
May 04 2017 14:22
ok, let me follow your suggestion
so, I have to apply these git commands
git branch fiu
git checkout fiu
Ushbot
@ushbot
May 04 2017 14:22
[David Losada, Ushahidi] until we actually bring that to a configuration parameter, I’ll open an issue now
[David Losada, Ushahidi] yes
Arturo
@ArturoQuintana
May 04 2017 14:22
let me see
Both independently or both on the same command line?
Ushbot
@ushbot
May 04 2017 14:23
[David Losada, Ushahidi] that’s just this time .. then whenever you want to pull our changes ..
[David Losada, Ushahidi] those are two different commands
Arturo
@ArturoQuintana
May 04 2017 14:23
ok
Ushbot
@ushbot
May 04 2017 14:23
[David Losada, Ushahidi] so independently should be ok
[David Losada, Ushahidi] whenever you want to pull our changes , these other two commands
[David Losada, Ushahidi] git pull
[David Losada, Ushahidi] git merge origin/master
Arturo
@ArturoQuintana
May 04 2017 14:25
ok
after I applied git checkout fiu
I got this message
Switched to branch 'fiu'
Ushbot
@ushbot
May 04 2017 14:25
[David Losada, Ushahidi] good
Arturo
@ArturoQuintana
May 04 2017 14:25
now
git pull
git merge origin/master
?
Ushbot
@ushbot
May 04 2017 14:25
[David Losada, Ushahidi] yes
Arturo
@ArturoQuintana
May 04 2017 14:26
every time I have to apply both commands?
Ushbot
@ushbot
May 04 2017 14:26
[David Losada, Ushahidi] yes
[David Losada, Ushahidi] the non-git commands that usually follow will be the same
Arturo
@ArturoQuintana
May 04 2017 14:27
Ok, let's see what I get in the API
ok
after specify git pull
I got this

You asked me to pull without telling me which branch you
want to merge with, and 'branch.fiu.merge' in
your configuration file does not tell me, either. Please
specify which branch you want to use on the command line and
try again (e.g. 'git pull <repository> <refspec>').
See git-pull(1) for details.

If you often merge with the same branch, you may want to
use something like the following in your configuration file:

[branch "fiu"]
remote = <nickname>
merge = <remote-ref>

[remote "<nickname>"]
url = <url>
fetch = <refspec>
Ushbot
@ushbot
May 04 2017 14:31
[David Losada, Ushahidi] mm my git may be a bit rusty
[David Losada, Ushahidi] “git pull origin” ?
Arturo
@ArturoQuintana
May 04 2017 14:33
as you can see, mine too!
I did it!
now:
You asked to pull from the remote 'origin', but did not specify
a branch. Because this is not the default configured remote
for your current branch, you must specify a branch on the command line.
Ushbot
@ushbot
May 04 2017 14:34
[David Losada, Ushahidi] ah right.. sorry had to check the docs
[David Losada, Ushahidi] “git fetch origin”
Arturo
@ArturoQuintana
May 04 2017 14:35
done
Ushbot
@ushbot
May 04 2017 14:35
[David Losada, Ushahidi] then “git merge origin/master” should work
Arturo
@ArturoQuintana
May 04 2017 14:36
done
now?
the update commands?
Ushbot
@ushbot
May 04 2017 14:37
[David Losada, Ushahidi] yea, if you run “git log” now you should see commits from April / May
[David Losada, Ushahidi] meaning you are up to date
[David Losada, Ushahidi] yes, the rest of the update commands remain the same
Arturo
@ArturoQuintana
May 04 2017 14:38
commit 198bb8b870e718160bdc70279bd76ab8fe4002e0
Merge: c66ee1a 1c2d184
Author:
Date: Thu May 4 10:09:06 2017 -0400
Merge remote branch 'origin/master' into fiu
ok
I did everything

I have lose all the posts again :-(
and, I have these errors in the browser's console

angular.js:13920 Error: Bounds are not valid.
at e.fitBounds (leaflet-src.js:2523)
at u (post-view-map.directive.js:74)
at post-view-map.directive.js:35
at a (angular.js:16383)
at angular.js:16399
at p.$eval (angular.js:17682)
at p.$digest (angular.js:17495)
at p.$apply (angular.js:17790)
at u (angular.js:11831)
at _ (angular.js:12033)

..js$:115 Uncaught Error: Cannot find module './en-US.js'.
at .
.js$:115
at _ (..js$:115)
at t (.
.js$:112)
at language-settings.js:39
at window.webpackJsonp (bootstrap 87414b1…:18)
at 1.549fc94….bundle.js:1

Ushbot
@ushbot
May 04 2017 14:42
[Will Doran, Ushahidi] hi arturo
Arturo
@ArturoQuintana
May 04 2017 14:42
Hi Will
Ushbot
@ushbot
May 04 2017 14:42
[Will Doran, Ushahidi] what is the most recent commit in git log?
Arturo
@ArturoQuintana
May 04 2017 14:43
rough morning :-(

commit 198bb8b870e718160bdc70279bd76ab8fe4002e0
Merge: c66ee1a 1c2d184
Author:
Date: Thu May 4 10:09:06 2017 -0400

Merge remote branch 'origin/master' into fiu

commit 1c2d184679e2bc9999ec4772fdbb5d1d66cf3e44
Author: will <will.doran@>
Date: Wed May 3 15:57:21 2017 -0400

Detail:
I am losing the posts in the map, but they are in the timeline
Ushbot
@ushbot
May 04 2017 14:45
[Will Doran, Ushahidi] hmmm
[Will Doran, Ushahidi] the latest version should be fixing that
[Will Doran, Ushahidi] interesting so it looks like you are at the right commit
[Will Doran, Ushahidi] for client what is the most recent commit in git log?
Arturo
@ArturoQuintana
May 04 2017 14:45
I did not update the client yet
Let me go do it
Ushbot
@ushbot
May 04 2017 14:46
[Will Doran, Ushahidi] ah ok that might be part of the issue
[Will Doran, Ushahidi] try that then let's see if the problem persists
Arturo
@ArturoQuintana
May 04 2017 14:47
should I apply the same changes in the command line?
  1. git fetch origin
  2. git merge origin/master
  3. npm install
  4. gulp build
Or should I apply the previous order?
git pull
npm install
gulp build
Ushbot
@ushbot
May 04 2017 14:50
[Will Doran, Ushahidi] did you make any changes to the client?
[Will Doran, Ushahidi] if so you may want to follow david's suggested route
Arturo
@ArturoQuintana
May 04 2017 14:51

Nop, just some css

I have checked the git status, an this is what I got:

commit 9880eba392fea95867891704036ee31adbd6cd20
Merge: 01ecddf 61e4cd0
Author: Robbie Mackay <rm@>
Date: Fri Mar 10 15:26:29 2017 +1300

Merge branch 'master' into production

commit 61e4cd0e1a2bb31d6f553f7ecb893acc19c1a54d
Merge: a135eb1 d0a3d29
Author: Robbie Mackay <rm@>
Date: Fri Mar 10 15:16:32 2017 +1300

Merge branch 'develop'

commit d0a3d2948f82dc05fffc844e9bd42fe280450b9f
Author: Anna Iosif <anna.iosif@>
Date: Wed Mar 8 07:59:41 2017 +0100

Location picker fixes (#580)

* only showing use current location if https #1327

* searching when typing #1327

* fixing failing tests #1327

* adding info about no matching searches #1327

commit 124681f49f24831e151316b6594df6f423187f12
Author: Anna Iosif <anna.iosif@>
Date: Wed Mar 8 07:51:17 2017 +0100

adding reply-button to twitter-messages #1338 (#579)

commit e875ed182be7fe9eae47e186ddd272950205613e
Merge: 7bbdf41 a135eb1
Author: David Losada <david@>
Date: Tue Feb 21 16:46:52 2017 +0100

Merge branch 'master' into develop

commit 01ecddf0fd4da94d1a67eafd709e7ad810cf4387
Merge: 91eb035 a135eb1
Author: David Losada <david@>

Ushbot
@ushbot
May 04 2017 14:53
[Will Doran, Ushahidi] ok you seem to be quite far back you should do a git pull
[Will Doran, Ushahidi] npm install
and
gulp build
Arturo
@ArturoQuintana
May 04 2017 14:54
it is what I do every time
Ushbot
@ushbot
May 04 2017 14:55
[Will Doran, Ushahidi] ok great
[Will Doran, Ushahidi] and what commit are you at now?
Arturo
@ArturoQuintana
May 04 2017 14:56
wait a minute
Ushbot
@ushbot
May 04 2017 14:58
[Kashish] Hello Sajjad
[Kashish] Edited previous message:
Arturo
@ArturoQuintana
May 04 2017 14:59
Will
I have updated

Here it is the log:

commit b75d77ef0990a5f4736a1dc1e21bf3a90abae30c
Author: will <will.doran@>
Date: Wed May 3 15:57:42 2017 -0400

but, unfortunately, I have lost the all the posts in the map
I have this console's message
Failed to load resource: the server responded with a status of 403 (Forbidden) weblib02.fiu.edu/api/v3/contacts/565

and

Uncaught Error: Cannot find module './en-US.js'.
at ..js$:115
at _ (.
.js$:115)
at t (.*.js$:112)
at language-settings.js:30
at window.webpackJsonp (bootstrap da29416…:18)
at 1.574ea0c….bundle.js:1

in the prompt window, I have a lot of warnings, like those I already sent to you
Ushbot
@ushbot
May 04 2017 15:04
[Will Doran, Ushahidi] the en-US one is basically that it's missing a lang file, that's not major and shouldn't effect anything else
[Will Doran, Ushahidi] but the 403 forbidden seems to be the problem
Arturo
@ArturoQuintana
May 04 2017 15:04
ok
Ushbot
@ushbot
May 04 2017 15:05
[Will Doran, Ushahidi] it looks like you don't have permission to see that contact
[Will Doran, Ushahidi] do you need to log in?
Arturo
@ArturoQuintana
May 04 2017 15:05
On the Ushahidi platform?
Ushbot
@ushbot
May 04 2017 15:07
[Will Doran, Ushahidi] yep
[Will Doran, Ushahidi] so the forbidden is a permission issue
Arturo
@ArturoQuintana
May 04 2017 15:07
let see
Ushbot
@ushbot
May 04 2017 15:07
[Will Doran, Ushahidi] that contact might not be public
[Will Doran, Ushahidi] but you can also check the logs on the api to see if anything interesting got printed
Arturo
@ArturoQuintana
May 04 2017 15:08
If I log in, I will see all the posts. But we are losing the public posts
Those that were previously visible
:-|
Arturo
@ArturoQuintana
May 04 2017 15:19

@WillDoran and @davidlosada
what can I do about this loss?

I would like to ask you something else.
Now, with these new changes.
If I want to update the API, is the scrip different?

From:
git pull
./bin/update
./bin/phinx migrate -c application/phinx.php

To:
git fetch origin
git merge origin/master
./bin/update
./bin/phinx migrate -c application/phinx.php

Is this correct?

Ushbot
@ushbot
May 04 2017 15:24
[Will Doran, Ushahidi] sorry let me address in order
[Will Doran, Ushahidi] are the posts actually deleted?
[Will Doran, Ushahidi] can you see them in the mysql db?
[Will Doran, Ushahidi] the later should be correct in the case where you have your own branch
[Will Doran, Ushahidi] so you could create your own local branch for both platform-api and client in the way David describef
Arturo
@ArturoQuintana
May 04 2017 15:29
Ok, in order
Ushbot
@ushbot
May 04 2017 15:29
[Will Doran, Ushahidi] cool
Arturo
@ArturoQuintana
May 04 2017 15:32
Posts are in the timeline, but they are not displayed on the map. This meant that they are not deleted from the database.
Ushbot
@ushbot
May 04 2017 15:33
[Will Doran, Ushahidi] ok good, when viewing the map are you getting an error in the console?
Arturo
@ArturoQuintana
May 04 2017 15:37
just this:
Failed to load resource: the server responded with a status of 403 (Forbidden) weblib02.fiu.edu/api/v3/contacts/565
However, if I reload the website, this error disappears
Ushbot
@ushbot
May 04 2017 15:38
[Will Doran, Ushahidi] that's on the map view yes?
[Will Doran, Ushahidi] is this publically accessible
[Will Doran, Ushahidi] can i take a look?
Arturo
@ArturoQuintana
May 04 2017 15:38
yes
of course
Ushbot
@ushbot
May 04 2017 15:54
[Will Doran, Ushahidi] ok let me take a look
[Will Doran, Ushahidi] two secs
[Will Doran, Ushahidi] @arturo
[Will Doran, Ushahidi] I'm not seeing any errors other than the lang and facebook codes
[Will Doran, Ushahidi] I can seem list forms with numbers but this doesn't look like the latest version of platform client
[Will Doran, Ushahidi] it's definitely uptodate yeah?
Ushbot
@ushbot
May 04 2017 16:00
[Will Doran, Ushahidi] hmm I tried to reset my password for the FIU platform
[Will Doran, Ushahidi] but I don't an email
[Will Doran, Ushahidi] is email sending set up on your deployment?
[Will Doran, Ushahidi] or could you reset my password or just set a password and send it to will@ushahidi.com
Arturo
@ArturoQuintana
May 04 2017 16:09
Will
I am sorry
I have been in a phone call
@WillDoran
I updated your password
I have sent ot to you by email
Arturo
@ArturoQuintana
May 04 2017 16:15
the error in the console comes and goes
Ushbot
@ushbot
May 04 2017 16:18
[Will Doran, Ushahidi] Cool thanks. I'm just changing location will look in 30 mins
Ushbot
@ushbot
May 04 2017 16:39
[Will Doran, Ushahidi] hi arturo you are right there is an issue displaying public post to logged out users. I'll address it now
Arturo
@ArturoQuintana
May 04 2017 16:41

@WillDoran
Did you receive my email?
I would like to know if we have a solution.
Otherwise, I will be forced to restore the system to an earlier version.
Researchers want to see the public posts.

By the way, do you remember that bunch of warnings in the client?
They are still showing up.

Ushbot
@ushbot
May 04 2017 16:42
[Will Doran, Ushahidi] so I'm looking into it now, it should take a few minutes to fix, can you hang on reverting for 5 mins?
Arturo
@ArturoQuintana
May 04 2017 16:42
But this is something that happens when the gulp build command is released.
Ushbot
@ushbot
May 04 2017 16:43
[Will Doran, Ushahidi] I'm not sure I follow
[Will Doran, Ushahidi] it's ok to revert I'll have to figure out what the issue is, though I suspect it is something to do with our migrations
Ushbot
@ushbot
May 04 2017 16:56
[Will Doran, Ushahidi] actually arturo
[Will Doran, Ushahidi] could you give me a snapshot of your db before and after migrations?
[Will Doran, Ushahidi] I'm curious if there is something breaking and I'd like to try it locally
[Will Doran, Ushahidi] I think something might be wrong with our categories migration
[Will Doran, Ushahidi] but it's not happening on our systems
Ushbot
@ushbot
May 04 2017 17:14
[Will Doran, Ushahidi] Arturo, this seems to be specific to your setup, I'm not able to reproduce this issue elsewhere, may be we can take a look at your db together
Arturo
@ArturoQuintana
May 04 2017 18:12
@WillDoran
I was having lunch
I have reverted the changes
I am willing to check the db together
Ushbot
@ushbot
May 04 2017 18:48
[Will Doran, Ushahidi] would it be possible for you to test the migrations before and after the update? I want to see how the DB has changed and if it's broken, would it be possible for you to share a mysql DB dump from before the migration and one after?
[Will Doran, Ushahidi] I think that would help us diagnose the issues
Arturo
@ArturoQuintana
May 04 2017 18:58
ok
I will dump the data base now
And I will send it to you
Arturo
@ArturoQuintana
May 04 2017 19:07

Do these mean something to you?

symfony/class-loader suggests installing symfony/polyfill-apcu (For using ApcClassLoader on HHVM)
leanphp/phpspec-code-coverage suggests installing ext-xdebug (Install Xdebug to generate phpspec code coverage if you are not using phpdbg)
Package guzzle/guzzle is abandoned, you should avoid using it. Use guzzlehttp/guzzle instead.
Package league/url is abandoned, you should avoid using it. Use league/uri instead.

Arturo
@ArturoQuintana
May 04 2017 19:14
@WillDoran
I have sent you all the information
Ushbot
@ushbot
May 04 2017 19:41
[Will Doran, Ushahidi] yeah so those libraries are a bit out of date but we're moving toward using Lumen/Laravel so hopefully that won't become an issue
Arturo
@ArturoQuintana
May 04 2017 19:41
ok
Ushbot
@ushbot
May 04 2017 19:41
[Will Doran, Ushahidi] Thanks for the db dumps, I will take a look this evening!
Arturo
@ArturoQuintana
May 04 2017 19:41
thanks!
Ushbot
@ushbot
May 04 2017 19:41
[Will Doran, Ushahidi] no problem, thank you for your time!
Arturo
@ArturoQuintana
May 04 2017 19:42
Thanks to all of you for your help and time!
@WillDoran and @davidlosada
I would like to resolve this to make the system performance as smooth as possible
Ushbot
@ushbot
May 04 2017 19:48
[Will Doran, Ushahidi] +1:skin-tone-2:
[Will Doran, Ushahidi] me too
[Will Doran, Ushahidi] will do my best
Arturo
@ArturoQuintana
May 04 2017 19:49
I know! ;-)