Merge lp:~sinzui/launchpad/remove-gmaps-0 into lp:launchpad
Status: | Merged | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Merged at revision: | 11593 | ||||||||||||
Proposed branch: | lp:~sinzui/launchpad/remove-gmaps-0 | ||||||||||||
Merge into: | lp:launchpad | ||||||||||||
Diff against target: |
1262 lines (+42/-826) 20 files modified
lib/canonical/launchpad/doc/location-widget.txt (+2/-6) lib/canonical/launchpad/webapp/servers.py (+1/-5) lib/canonical/widgets/location.py (+7/-3) lib/canonical/widgets/templates/location.pt (+7/-28) lib/lp/app/javascript/mapping.js (+0/-365) lib/lp/app/templates/base-layout-macros.pt (+0/-10) lib/lp/registry/browser/__init__.py (+0/-18) lib/lp/registry/browser/configure.zcml (+1/-6) lib/lp/registry/browser/person.py (+10/-57) lib/lp/registry/browser/team.py (+2/-12) lib/lp/registry/browser/tests/person-views.txt (+0/-107) lib/lp/registry/browser/tests/team-views.txt (+5/-28) lib/lp/registry/doc/personlocation.txt (+4/-2) lib/lp/registry/stories/location/personlocation-edit.txt (+2/-33) lib/lp/registry/stories/location/personlocation.txt (+0/-40) lib/lp/registry/stories/location/team-map.txt (+0/-53) lib/lp/registry/templates/person-editlocation.pt (+0/-23) lib/lp/registry/templates/person-portlet-map.pt (+0/-25) lib/lp/registry/templates/team-index.pt (+0/-3) lib/lp/registry/templates/team-portlet-map.pt (+1/-2) |
||||||||||||
To merge this branch: | bzr merge lp:~sinzui/launchpad/remove-gmaps-0 | ||||||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Māris Fogels (community) | Approve | ||
Review via email: mp+36169@code.launchpad.net |
Description of the change
This is my branch to remove Google maps.
lp:~sinzui/launchpad/remove-gmaps-0
Diff size: 1263 (-846, +62)
Launchpad bug:
https:/
https:/
https:/
Test command: ./bin/test -vv \
-t personlocation -t location-widget -t person-views -t team-views \
-t team-map
Pre-
Target release: 10.10
Remove Google maps
------------------
This branch removes the Google map dependency from Launchpad. Launchpad still
has a concept of location and map, but they are hidden. We may remove the
map concept in October if there is no progress in getting a map tile server.
This branch address 3 specific issues:
https:/
Remove Google maps (deletes)
https:/
Remove the gmap2 feature flag because nothing uses gmaps (deletes)
https:/
Allow users to set their timezone without using a map
This last point requires rewrites of code (adds)
Rules
-----
* Update the location widget to only render the time zone
* Simplify the edit location form because it is not doing anything
special anymore
* Remove the Google map calls from the templates
* Remove the gmap2 calls from the view code
* Remove the mapping library that uses Google maps
* Remove the gmap2 feature flag
QA
--
* Visit your profile page
* Verify a map is not displayed
* Choose to edit your time zone
* Verify a map is not shown and that there is no javascript error.
* Set your timezone and save
* Verify your timezone is set
* Visit https:/
* Verify a map is not shown.
* Assuming someone bookmarked the map page,
visit https:/
* Verify a map is not shown and that there is no JS error.
Lint
----
Linting changed files:
lib/canonical
lib/canonical
lib/canonical
lib/canonical
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
Lint wants me to fix some test format issues. I can do this before I land
the branch.
Test
----
* lib/canonical/
* Removed tests for gmap.
* lib/lp/
* Removed tests that shows how gmaps were used by the view.
* lib/lp/
* Removed tests that showed maps use gmaps.
* The map tests remain because there is a small chance we can use OSM
to provide maps.
* lib/lp/
* Remove the gmap portion of the location object tests.
* lib/lp/
* Removed the gmap portion of the edit location test.
* lib/lp/
* Removed gmap portion of the test.
* lib/lp/
* Removed gmap portion of the test.
* The map tests remain because there is a small chance we can use OSM
to provide maps.
Implementation
--------------
* lib/canonical/
* Removed code and tests to support gmap2 flags in the request.
* lib/canonical/
* Removed gmap2.
* Updated the timezone help text from the template to the field.
* lib/canonical/
* Removed the map, but kept the hidden lat-long fields so that the
widget continues to work.
* Moved the help text to the field.
* lib/lp/
* Removed the gmap2 mapping library and rules to include it in the page.
* lib/lp/
* Removed the MapMixin and the feature flag.
* lib/lp/
* Switched +editlocation to use the generic template.
* Removed the unused team view...teams do not have a link to edit their
location.
* lib/lp/
* Removed the gmap2 setup code.
* Removed the unused TeamEditLocatio
* Simplified the user +editlocation since it does not need gmaps and
we only need to show time zone at this time.
* lib/lp/
* Removed the gmap2 setup code.
* lib/lp/
* Removed the gmap. This template also rendered timezone so it must
remain.
* lib/lp/
* Removed the call to render the small map.
* lib/lp/
* Removed the gmap check.
Hi Curtis,
This is a great change. You really thought of every angle, right down to updating the location page title. Stunning! r=mars
Maris