These are chat archives for ushahidi/Community

Jun 2017
Jun 05 2017 13:18
[Angela Oduor Lungati, Ushahidi] Hey Annaliza, I got your note on intercom. Would you be able to let us know what difficulties your developer is having updating to the new version?
Jun 05 2017 14:52
[Annaliza Mayor] Hello. The version i installed in my hosting site is bundled.tar v3.6.3. And I want to update it to v3.7.0. Whenever I cloned the source code from the repository there are some features like activity and settings that are not activated. I checked the bundled version 3.7.0 unfortunately it has different codes already. Any advise?
[Annaliza Mayor] Thanks
Jun 05 2017 15:41
[David Losada, Ushahidi] Hi Annaliza , so the problem is that after updating the activity and settings icons do not appear on the client?
Jun 05 2017 15:52
[Annaliza Mayor] Bundled.tar version v3.6.3 was downloaded and was not cloned from the repository. So the procedure git pull will not apply. So what I did was I cloned the 3.7.0 from github repository to use it and set it up again, unfortunately, there are features like settings and acitivity (hidden) are not functioning as expected.
[Annaliza Mayor] And also I checked the bundled version v3.7.0 platform and v3.7.0.1 client hoping I can use it..unfortunately it has different codes from the v3.6.3
Jun 05 2017 15:57
[Annaliza Mayor] Any advise? Thanks
[David Losada, Ushahidi] what do you mean with that they have different codes? is that unexpected?
[Annaliza Mayor] I mean different structure....
[David Losada, Ushahidi] it’s approximately the same code you would get from the github repository (except that platform-client is built already)
[David Losada, Ushahidi] do you have code modifications of your own? on platform or platform-client?
[Annaliza Mayor] Yes
[Annaliza Mayor] On registration info
Jun 05 2017 16:02
[David Losada, Ushahidi] oh.. in both?
[David Losada, Ushahidi] I mean, in both platform and platform-client?
[Annaliza Mayor] Yes..I added additional information in usera registration
[Annaliza Mayor] I modified the bundled v3.6.6
[David Losada, Ushahidi] so just confirming, you’ve got modified PHP and Javascript code
[David Losada, Ushahidi] or maybe just PHP?
[Annaliza Mayor] Sorry v3.6.3
[Annaliza Mayor] Modified php and javascript. If ever I will update, it will be back to original?
[David Losada, Ushahidi] oh.. just wondering how did you modify the bundled javascript? isn’t it all like obscured and difficult to edit?
[Annaliza Mayor] Only for users registration. I also added columns in users table
[Annaliza Mayor] Yes
[Annaliza Mayor] Very much
[Annaliza Mayor] By Gods Grace I was able to figure it out :)
Jun 05 2017 16:08
[David Losada, Ushahidi] ohh ok wow, the upgrade scenario looks a bit complicated in this case
[David Losada, Ushahidi] would you be able to exactly identify the modifications you did on 3.6.3? which lines / characters were changed
[David Losada, Ushahidi] maybe you could use a diff tool or similar
[Annaliza Mayor] Wait...
Jun 05 2017 16:14
[David Losada, Ushahidi] if you identify those changes , the next step would be forking our git repositories, and reapplying them on the last version
[David Losada, Ushahidi] then we could walk you through building and deploying updates to the server
[Annaliza Mayor] In the client: I modified.the bundled.js, templates(register.html),API (User.php), Database (users table)
[David Losada, Ushahidi] in bundled.js , did you modify a lot of places?
[Annaliza Mayor] No, I only added those codenfornthe additional user inputs in the user registration that needs to save in the database
[Annaliza Mayor] *code from the additional user inputs
[Annaliza Mayor] But itsnver difficult to trace
[Annaliza Mayor] :)
[David Losada, Ushahidi] yes, it’s amazing that you edited those files, it’s really very difficult
[Annaliza Mayor] Its working now but how can I upgrade it to 3.7.0?
[David Losada, Ushahidi] but unfortunately, also not maintainable :(
Jun 05 2017 16:20
[Annaliza Mayor] What is your advise?
[Annaliza Mayor] I am planning to wait for the 3.7.0 bundled version
[David Losada, Ushahidi] ok, so in general, since you are doing your own customised code, it’s best not work with the bundled version
[David Losada, Ushahidi] you should create your own copy (fork) of our repositories:
[David Losada, Ushahidi]
[Annaliza Mayor] Ok I wilk do that
[David Losada, Ushahidi] your modifications to User.php will go to the first one
[David Losada, Ushahidi] your modiciations to register.hml and the javascript will go to the second one
[David Losada, Ushahidi] you have to write those modifications again
[Annaliza Mayor] Ok Noted
[David Losada, Ushahidi] the javascript in platform-client is not obscured, so hopefully this time it will be easier
[Annaliza Mayor] Yes very easy to understand
[David Losada, Ushahidi] and then you need your own local development environment to test the changes you are making
[Annaliza Mayor] I have already cloned the latest version 3.7.0
[David Losada, Ushahidi] the instructions for having your local development environment are here:
Jun 05 2017 16:25
[Annaliza Mayor] But the activity and setting are hidden. Why is that? Even if I logged in as admin
[David Losada, Ushahidi] I’m not sure, I haven’t seen that behaviour before
[David Losada, Ushahidi] any errors in the browser’s javascript console?
[Annaliza Mayor] No permission....I tried to removed the control for the activity view...whenever I will click the icon the view that will appear is " Upgrade plan" etc.....
[Annaliza Mayor] I think this is the template for the paid plan of Ushahidi
Jun 05 2017 16:31
[David Losada, Ushahidi] maybe you would need to check the contents of application/config/features.php
[Annaliza Mayor] Ok I will. Thanks for your advise.
[Annaliza Mayor] David
[David Losada, Ushahidi] you are welcome, good luck!