Skip to content

Commit e96c9cc

Browse files
committed
Merge pull request #508 from akvo/release/candidate
RSR v2.3.5 Uglyfruit Release/Candidate
2 parents 0cb118a + 66a82ab commit e96c9cc

File tree

61 files changed

+14409
-658
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+14409
-658
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,5 @@ tramp
9898

9999
# Vagrant
100100
.vagrant
101+
102+
*.hp6rKR

AUTHORS.txt

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,35 @@
1-
AUTHORS.txt v1.3, 11 December 2009, pb
1+
AUTHORS.txt v1.4, 9 April 2014, pb, adriancollier
22

33
AUTHORS of Akvo RSR
44

55
The PRIMARY AUTHORS are (and/or have been):
66

77
- Malte Beckmann
8+
- Kasper Brandt
89
- Paul Burt
910
- Thomas Bjelkeman-Pettersson
1011
- Mark Charmer
12+
- Adrian Collier
13+
- Carl Crowder
1114
- Oliver Galloway-Lunn
1215
- Gabriel von Heijne
1316
- Daniel Karlsson
17+
- Stellan Lagerström
1418
- Gino Lee
1519
- Peter van der Linde
20+
- Robert Rochette
21+
- Loïc Sans
22+
- Anna-Marthe Sessink
1623
- Elizabeth Whiteside
1724

1825
Translation support by:
1926

2027
- Malte Beckmann
2128
- Anke van Lenteren
29+
- Isabelle Olivetti
30+
- Isabel Ordonez
31+
- Sergio Atristain
32+
- Jura Khrapunov
2233

2334
Contributors, here is an inevitably incomplete list of MUCH APPRECIATED
2435
CONTRIBUTORS whom without, Akvo RSR would not have been the same:
@@ -29,7 +40,7 @@ CONTRIBUTORS whom without, Akvo RSR would not have been the same:
2940
- Jeroen van der Sommen
3041
- Mark Tiele Westra
3142

32-
Further team members can be found at < http://www.akvo.org/web/team >
43+
Further team members can be found at < http://akvo.org/about-us/team/ >
3344

3445
Funding partners, without them Akvo RSR could not have happened
3546

@@ -43,5 +54,4 @@ Funding partners, without them Akvo RSR could not have happened
4354
- Simavi
4455

4556
Many more partners, who all have greatly contributed to Akvo RSR in
46-
many ways can be found at: < http://www.akvo.org/web/ngo_partners >
47-
and < http://www.akvo.org/web/become_a_project_partner >
57+
many ways can be found at: < http://akvo.org/about-us/partners/ >

LICENSE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
LICENSE.md, v1.1, 29 May 2012 [ogl]
1+
LICENSE.md, v1.2, 9 April 2014 [ogl, adriancollier]
22

3-
Copyright (C) 2007-2012 Stichting Akvo (Akvo Foundation)
3+
Copyright (C) 2007-2014 Stichting Akvo (Akvo Foundation)
44

55
This file is part of Akvo RSR.
66

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
README.md v1.2, 29 May 2012 [ogl]
1+
README.md v1.3, 9 April 2014 [ogl, adriancollier]
22

33
# Akvo Really Simple Reporting (Akvo RSR)
44

5-
Akvo RSR is part of the Akvo Platform. The Akvo Platform is used on Akvo.org to combat poverty through small-scale water and sanitation projects. We believe that Akvo RSR can be used in many other development aid scenarios, in areas such as education, health care, agriculture, etc.
5+
Akvo Foundation is a non-profit foundation that builds open source internet and mobile phone software which is used to make international development cooperation and governance more effective and transparent.
66

7-
Read more about the [Akvo Platform](http://www.akvo.org/web/akvo_platform_overview).
7+
Akvo RSR is part of the Akvo platform. Akvo RSR is a web and Android-based system that makes it easy for international development teams to bring complex networks of projects online and instantly share progress with everyone involved and interested.
8+
9+
We believe that Akvo RSR can be used in many other scenarios, including environmental programs and monitoring.
10+
11+
Read more about [Akvo Products](http://akvo.org/products/).
812

913
More information in these files:
1014

RELEASE_NOTES.md

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,133 @@ We provide Akvo RSR as a service on your own URL and with your own branding, as
55
Check out [Introducing Akvo Really Simple Reporting](http://akvo.org/products/rsr/).
66
Read more about [Akvo Products](http://akvo.org/products/).
77

8+
Akvo RSR ver 2.3.5 Uglyfruit
9+
---
10+
11+
Wednesday 9th April 2014, adriancollier
12+
13+
New Features
14+
---
15+
16+
### IATI Export
17+
18+
On popular demand we have created the first installment of the IATI Export functionality. This feature will allow us to create an IATI XML file based on the projects that an organisation has within RSR to publish within the IATI Registry.
19+
20+
There will be further improvements to this functionality including visibility of files within the website, automatic publishing and historical file access over the coming weeks.
21+
22+
Github issue [#334](https://github.com/akvo/akvo-rsr/issues/334)
23+
24+
### Donate Buttons on Projects and Widgets
25+
26+
We have had a couple of requests from partners to prevent the donate button from appearing on their projects. Primarily this is due to the organisation not wishing to accomodate donations on specific projects. We have now added the functionality for partners to be able to turn on/off the visibility of the Donate button from the Project Admin per project.
27+
28+
This setting affects where the project is visible on Akvo.org, Akvo Pages and within Widgets.
29+
30+
Github issue [#310](https://github.com/akvo/akvo-rsr/issues/310) & [#491](https://github.com/akvo/akvo-rsr/issues/491)
31+
32+
33+
### Image Upload Recommendations
34+
35+
We noticed that many users were unaware of the right size or dimentions of images to use when uploading to RSR projects or updates. To help guide users to have the best quality of images on their projects we have added some recommendations including the limits related to file sizes that the system imposes.
36+
37+
Github issue [#219](https://github.com/akvo/akvo-rsr/issues/219)
38+
39+
### Update warning on empty content
40+
41+
If a user wants to post an update without any content and only a title, then we think they should be allowed to do this. However we also think it's great if users do add content and not just the title. So we have added a reminder to the form to advise users to include content in case this is a mistake. Just like if you send an email without a subject.
42+
43+
Github issue [#304](https://github.com/akvo/akvo-rsr/issues/304)
44+
45+
### Registrations via Akvo Pages (aka Partnersites)
46+
47+
When users want to register directly from Akvo Pages they used to have to select the organisation that they want to register under. To improve integration we have now pre-selected this, so that users now automatically are registering under the organisation that owns the Akvo Pages.
48+
49+
Github issue [#309](https://github.com/akvo/akvo-rsr/issues/309)
50+
51+
### Organisation input guidelines
52+
53+
We've made some small improvements in the documentation available for organisations wishing to import organisations using the API.
54+
55+
Github issue [#425](https://github.com/akvo/akvo-rsr/issues/425)
56+
57+
### Improved 404 page
58+
59+
We'd prefer it if no-one sees a 404 error page, but when they do, we want it to be a nice 404 error page, so we've now added the same one we use on Akvo.org as we like it.
60+
61+
Github issue [#450](https://github.com/akvo/akvo-rsr/issues/450)
62+
63+
### Partner Types
64+
65+
We made a change a while back to only allow partners to be added to projects where they are enabled for that particular role, e.g. Support Partner. This has created some processing issues affecting Admin users and causing a bit of a long process for maintaining projects. As a workaround for this, we have now enabled all organisations to be either Field or Funding partners on projects. As before if organisations need to be added as a Support or Sponsor partner then this will need to be approved by the Akvo Partner Team, but this small change should help a lot of project admins have a simpler time with their work.
66+
67+
Github issue [#462](https://github.com/akvo/akvo-rsr/issues/462)
68+
69+
### Improved API resource for Project Updates
70+
71+
As we would like to display more information about project updates in different places, and as this information is stored in multiple different tables within the database, we have created a common single resource to be able to collect all this information with a single API call.
72+
73+
Github issue [#463](https://github.com/akvo/akvo-rsr/issues/463)
74+
75+
### Widget Improvements
76+
77+
We have made several visual improvements on the Widget templates in this release based on some partner feedback from CommonSites to make them clearer and look that little bit more impressive.
78+
79+
Github issue [#479](https://github.com/akvo/akvo-rsr/issues/479)
80+
81+
### Better documentation on Github Process
82+
83+
We've improved the developer documentation for our Github process internally to make things clearer for everyone in the team.
84+
85+
Github issue [#422](https://github.com/akvo/akvo-rsr/issues/422) & [#481](https://github.com/akvo/akvo-rsr/issues/481)
86+
87+
Bug Fixes
88+
---
89+
90+
### Error in maps for Internet Explorer 8 (IE8)
91+
92+
There was an issue with displaying maps in IE8 within RSR. While IE8 is being discontinued by Microsoft soon, we still notice some traffic to RSR via this browser so we have made an update to the maps code to render these maps correctly when viewed there.
93+
94+
Github issue [#474](https://github.com/akvo/akvo-rsr/issues/474)
95+
96+
### Links wrapping on Akvo Pages (aka Partnersites)
97+
98+
Links that are added to projects to connect information from Akvopedia or other external sources were not wrapping within the field correctly. This has now been resolved.
99+
100+
Github issue [#179](https://github.com/akvo/akvo-rsr/issues/179)
101+
102+
### Akvo Pages (aka Partnersites) organisation Lists not paginated
103+
104+
All organisations that were participating in projects in the Akvo Pages were being listed in a single page, we have now corrected this to ensure that the organisations are listed in pages containing 10 at a time.
105+
106+
Github issue [#285](https://github.com/akvo/akvo-rsr/issues/285)
107+
108+
### Sign In fields alignment
109+
110+
Sign In fields were being displayed as too large for the box they were sitting in. We have fixed this visual bug.
111+
112+
Github issue [#322](https://github.com/akvo/akvo-rsr/issues/322)
113+
114+
### Donation email in Gmail
115+
116+
There was a styling issue in Gmail when viewing the donation email we send to users who have completed a donation in RSR. This template now uses a table rather than floating div elements so the visuals always match what is expected of them.
117+
118+
Github issue [#460](https://github.com/akvo/akvo-rsr/issues/460)
119+
120+
121+
### External links tab use
122+
123+
When opening multiple external links from a project page, the same tab or window was being used again, so only the most recent link was being displayed to you. We've resolved this to create a new tab or window for each link selected.
124+
125+
Github issue [#323](https://github.com/akvo/akvo-rsr/issues/323)
126+
127+
### Header Sign In & Register options in browser
128+
129+
When a browser was not maximised, the Sign In and Register options were no longer visible in the header, and the scrollbar didn't allow for them to be pulled into view. This has been resolved.
130+
131+
Github issue [#408](https://github.com/akvo/akvo-rsr/issues/408)
132+
133+
134+
8135
Akvo RSR ver 2.3.4 Tamarine
9136
---
10137

akvo/api/resources/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from .partnership import PartnershipResource, IATIPartnershipResource
2323
from .project import ProjectResource, IATIProjectResource
2424
from .project_comment import ProjectCommentResource
25-
from .project_update import ProjectUpdateResource
25+
from .project_update import ProjectUpdateResource, ProjectUpdateResourceExtra
2626
from .right_now_in_akvo import RightNowInAkvoResource
2727
from .user import UserResource
2828
from .user_profile import UserProfileResource
@@ -56,6 +56,7 @@
5656
'ProjectMapLocationResource',
5757
'ProjectMapResource',
5858
'ProjectUpdateResource',
59+
'ProjectUpdateResourceExtra',
5960
'RightNowInAkvoResource',
6061
'UserResource',
6162
'UserProfileResource',

akvo/api/resources/project_update.py

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Akvo RSR is covered by the GNU Affero General Public License.
44
# See more details in the license.txt file located at the root folder of the Akvo RSR module.
55
# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.
6-
6+
from django.core.urlresolvers import reverse
77

88
from django.forms.models import ModelForm
99

@@ -62,3 +62,55 @@ def dehydrate(self, bundle):
6262
del bundle.data['created_at']
6363
del bundle.data['last_modified_at']
6464
return bundle
65+
66+
67+
class ProjectUpdateResourceExtra(ProjectUpdateResource):
68+
class Meta(ProjectUpdateResource.Meta):
69+
allowed_methods = ['get',]
70+
resource_name = 'project_update_extra'
71+
72+
def dehydrate(self, bundle):
73+
def org_data_for_update(update):
74+
""" return relevant data for the organisation that is linked to an update through the user that created the update
75+
"""
76+
update_org = update.user.get_profile().organisation
77+
return dict(
78+
absolute_url=update_org.get_absolute_url(),
79+
long_name=update_org.long_name,
80+
name=update_org.name,
81+
resource_uri=reverse(
82+
'api_dispatch_detail', kwargs={
83+
'resource_name':'organisation', 'api_name': 'v1', 'pk': update_org.pk
84+
}
85+
),
86+
)
87+
88+
def user_data_for_update(user):
89+
if user.first_name or user.last_name:
90+
return dict(
91+
full_name=u"{} {}".format(user.first_name, user.last_name)
92+
)
93+
return {}
94+
95+
bundle = super(ProjectUpdateResourceExtra, self).dehydrate(bundle)
96+
org = org_data_for_update(bundle.obj)
97+
user_resource_uri = bundle.data['user']
98+
bundle.data['user'] = user_data_for_update(bundle.obj.user)
99+
bundle.data['user'].update(resource_uri=user_resource_uri)
100+
bundle.data['user']['organisation'] = org
101+
return bundle
102+
103+
def build_schema(self):
104+
data = super(ProjectUpdateResourceExtra, self).build_schema()
105+
data['fields']['user'] = {
106+
'default': "No default provided.",
107+
'type': "to_one",
108+
'nullable': False,
109+
'blank': False,
110+
'readonly': True,
111+
'help_text': "A custom related resource with parts of data from user and the organisation the user belongs to. "
112+
"Includes the fields full_name, organisation and resource_uri of user and absolute_url, long_name, name and resource_uri "
113+
"of organisation.",
114+
'unique': False,
115+
}
116+
return data

akvo/api/xml/iati-xslt.xsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="ISO-8859-1"?>
22
<!-- Edited by XMLSpy® -->
3-
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:akvo="http://akvo.org/api/v1/iati-activities">
3+
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:akvo="http://akvo.org/iati-activities">
44

55
<xsl:template match="iati-activities">
66
<xsl:apply-templates select="iati-activity" />

akvo/mediaroot/akvo/css/build/akvo_style_min_2c3dc0aaee91dfb33c6dd2c282d6e3ea1b260cab.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

akvo/mediaroot/akvo/css/build/akvo_style_min_7f20add620589ac8a9b5166302143c8d8829fab2.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)