climbnz.org.nz issueshttps://gitlab.com/kayakr/climbnz.org.nz/-/issues2024-03-17T07:41:10Zhttps://gitlab.com/kayakr/climbnz.org.nz/-/issues/156Changing child order2024-03-17T07:41:10ZFelix CollinsChanging child orderI can't figure out how to change the child order of Sectors under a Crag.I can't figure out how to change the child order of Sectors under a Crag.https://gitlab.com/kayakr/climbnz.org.nz/-/issues/155Rock/Alpine mode is unclear2023-10-08T23:28:29ZSamRock/Alpine mode is unclearChanging mode displays a new screen indicating the status has changed, and then to actually see the homepage or route index again in the different mode you need to click the heading for home or route index again (refreshing the page does...Changing mode displays a new screen indicating the status has changed, and then to actually see the homepage or route index again in the different mode you need to click the heading for home or route index again (refreshing the page does nothing). Suggest some kind of redirect to the page you are currently on so clicking this toggle doesn't leave the user stranded.
In addition - it seems like the only sections that changing the mode actually has an impact on is the home page and the route index. Perhaps this toggle should just be displayed in these sections - having it globally is a bit confusing since it doesn't actually change the display for any individual route/peak/crag pages.https://gitlab.com/kayakr/climbnz.org.nz/-/issues/154Destroyed routes no longer identified2023-10-08T23:28:57ZSamDestroyed routes no longer identifiedOn the old verison, routes that had fallen down would still be present on the page for each crag but shown faded out (e.g. for places like castle rock and the sisters).
In the new version they aren't faded out and are shown equally alon...On the old verison, routes that had fallen down would still be present on the page for each crag but shown faded out (e.g. for places like castle rock and the sisters).
In the new version they aren't faded out and are shown equally alongside current routes.
Suggest adding some kind of visual flag to identify these climbs in the list for each crag.https://gitlab.com/kayakr/climbnz.org.nz/-/issues/140Geo - inconsistent typing2023-04-20T02:02:36ZRichard GrahamGeo - inconsistent typingHey Team,
Was just playing with the API and noticed some inconsistencies with the geo attribute. It looks like in comes cases the geo attribute is sent through as an empty array. Unsure if this in intentional but thought it might be wor...Hey Team,
Was just playing with the API and noticed some inconsistencies with the geo attribute. It looks like in comes cases the geo attribute is sent through as an empty array. Unsure if this in intentional but thought it might be worth flagging either way :).
`"data": {
"id": "bc2ce9f4-bd70-487c-b736-29fc506dffbf",
"type": "place",
"attributes": {
"name": "Golden Bay",
"_id": "889",
"uuid": "bc2ce9f4-bd70-487c-b736-29fc506dffbf",
"placeType": "area",
"url": "https://climbnz.org.nz/nz/si/golden-bay",
"description": "<p>Includes Paines Ford, Pohara, Sandhill Creek, Lake Sylvester.</p>\n",
"altitude": null,
"altitudeUnit": "m",
"access": "",
"accessPrivate": "null",
"walktime": null,
"aspect": null,
"attribution": "Information Collated by Simon Middlemass, and also http://paynesford.blogspot.com/",
"geo": []
},
}`
versus:
`"data": {
"id": "7658553c-3dfa-48f9-ae68-d9ffe05b3063",
"type": "place",
"attributes": {
"name": "Paines Ford",
"_id": "1498",
"uuid": "7658553c-3dfa-48f9-ae68-d9ffe05b3063",
"placeType": "crag",
"url": "https://climbnz.org.nz/nz/si/golden-bay/paines-ford",
"description": "<p>Paines Ford is probably New Zealand’s most ...",
"altitude": null,
"altitudeUnit": "m",
"access": "<p>Lets look after the place. Please!</p>\n<p>Paines Ford is ...",
"accessPrivate": "redacted",
"walktime": "5-15 min",
"aspect": "west",
"attribution": "Climbs have been collated by Simon Middlemass",
"geo": {
"point": {
"latitude": "-40.883923000000",
"longitude": "172.810672000000"
},
"attributes": {
"topo50": "BP24 840 741",
"nzms260": "N26 940 358"
}
}
}`
`https://gitlab.com/kayakr/climbnz.org.nz/-/issues/133Move hosting to SiteHost Cloud Container2023-04-20T01:38:09ZJ HuntMove hosting to SiteHost Cloud Container- [x] Snapshot current db
- [x] rsync public files to local
- [x] Standup cloud container
- [x] Generate deployment key to push code to server
- [x] ssh into container
- [x] `cd /container/application`
- [x] `git clone git@gitlab...- [x] Snapshot current db
- [x] rsync public files to local
- [x] Standup cloud container
- [x] Generate deployment key to push code to server
- [x] ssh into container
- [x] `cd /container/application`
- [x] `git clone git@gitlab.com:kayakr/climbnz.org.nz.git`
- [x] link public to site directory: `mv public public-old; ln -s climbnz.org.nz public`
- [x] `cd public/sites/default; cp default.settings.php settings.php`
- [x] `nano settings.php`, configure database credentials
- [x] Standup database
- [x] copy database to SiteHost `scp ~/Sites/sql/drupal-site-climbnz_20230305.sql climbnz@223.165.64.10:~`
- [x] Inject database snapshot to new database `cd ~/container/application/climbnz.org.nz; $(drush sql-connect) <~/drupal-site-climbnz_20230305.sql`
- [x] Assign temporary domain, e.g. `staging-d7.climbnz.org.nz`
- [x] On Sitehost, enable SSL
- [x] Configure nginx? to serve Drupal, incl. https
- [x] `nano /home/climbnz/container/config/nginx/sites-available/default`
- [x] Update to PHP 8.1.16
- [x] rsync files from local to SiteHost
- [x] `mkdir sites/default/files`
- [x] `rsync -rv --ignore-existing /Users/jonathan/Sites/climbnz7.local/sites/default/files/ climbnz@{ip}:/home/climbnz/container/application/public/sites/default/files`
- [ ] Edit `sites/default/settings.common.php` to set file system etc.
## Provision Staging instance
- [ ] Allow anonymous to access securesite, set securesite username and password
- [ ] Install drush 8
- [x] `composer require "drush/drush:^8"`
- [ ] `nano ~/.bashrc` to add `export
- [ ] Convert database to utf8mb4
- [ ] `drush sqlq "TRUNCATE TABLE search_index"`
- [ ] `drush sqlq "TRUNCATE TABLE search_total"`
- [ ] `drush dl utf8mb4_convert`
- [ ] `drush utf8mb4-convert-databases --charset=utf8mb4 --collation=utf8mb4_unicode_ci -y`
- [ ] specify collation in `settings.php`
- [ ]
## Provision Production instance
- [x] `cd public/sites/default; cp default.settings.php settings.php`
- [x] `nano settings.php`, configure database credentials
- [x] Install drush 8
- [x] `composer require "drush/drush:^8"`
- [x] `nano ~/.bashrc` to add `export PATH="/home/climbnz7/container/application/vendor/bin:$PATH"`
- [x] Convert database to utf8mb4
- [x] `drush dl utf8mb4_convert`
- [x] `drush utf8mb4-convert-databases --charset=utf8mb4 --collation=utf8mb4_unicode_ci -y`
- [x] specify collation in `settings.php`J HuntJ Hunthttps://gitlab.com/kayakr/climbnz.org.nz/-/issues/132Update PHP to 8.12023-03-25T01:56:12ZJ HuntUpdate PHP to 8.1Will do this during move to SiteHost. This issue is to track PHP deprecations, notices, warnings, errors. Initially launched on PHP 8.2 container but dropping back to PHP 8.1.16(?) causes less deprecation drama.
- [x] PHP 8.2 `Deprecated...Will do this during move to SiteHost. This issue is to track PHP deprecations, notices, warnings, errors. Initially launched on PHP 8.2 container but dropping back to PHP 8.1.16(?) causes less deprecation drama.
- [x] PHP 8.2 `Deprecated function: Creation of dynamic property Drupal\xautoload\Adapter\ClassFinderAdapter::$defaultBehavior is deprecated in Drupal\xautoload\Adapter\ClassFinderAdapter->__construct() (line 61 of /container/application/{website}/sites/all/modules/contrib/xautoload/src/Adapter/ClassFinderAdapter.php).` [#3346040](https://www.drupal.org/project/xautoload/issues/3346040)
- [x] #134 Update XAutoload to 7.x-5.9
- [x] PHP 8.2 `Deprecated function: Creation of dynamic property Drupal\xautoload\Adapter\ClassFinderAdapter::$psr0Behavior is deprecated in Drupal\xautoload\Adapter\ClassFinderAdapter->__construct() (line 62 of /container/application/{website}/sites/all/modules/contrib/xautoload/src/Adapter/ClassFinderAdapter.php).` [#3346040](https://www.drupal.org/project/xautoload/issues/3346040)
- [x] #134 Update XAutoload to 7.x-5.9
- [x] Deprecated function: Return type of XMLSitemapWriter::openUri($uri) should either be compatible with XMLWriter::openUri(string $uri): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in require_once() (line 342 of /container/application/public/includes/module.inc).
- Update XML Sitemap to 7.x-2.x-dev
- [ ] `Warning: Trying to access array offset on value of type null in bootstrap_pager() (line 47 of /container/application/public/sites/all/themes/bootstrap/templates/system/pager.func.php).`
- `Warning: Trying to access array offset on value of type null in bootstrap_pager() (line 53 of /container/application/public/sites/all/themes/bootstrap/templates/system/pager.func.php).`
- `Warning: Trying to access array offset on value of type null in bootstrap_pager() (line 95 of /container/application/public/sites/all/themes/bootstrap/templates/system/pager.func.php).`
- [ ] `Warning: Trying to access array offset on value of type bool in oauth2_server_init() (line 15 of /container/application/public/sites/all/modules/contrib/oauth2_server/oauth2_server.module`
- _Do we still need oauth?_
- [ ] `Deprecated function: unserialize(): Passing null to parameter #1 ($data) of type string is deprecated in http_auth_settings_form() (line 46 of /container/application/public/sites/all/modules/contrib/http_auth/http_auth.module).`J HuntJ Hunthttps://gitlab.com/kayakr/climbnz.org.nz/-/issues/88Update header with logo etc. to match alpineclub.org.nz2021-04-10T02:10:34ZJ HuntUpdate header with logo etc. to match alpineclub.org.nzhttps://gitlab.com/kayakr/climbnz.org.nz/-/issues/79Notifications: Watch for comments2021-03-17T23:54:20ZFelix CollinsNotifications: Watch for commentsThis should be an email when a comment is added to a node being watched or any child node.This should be an email when a comment is added to a node being watched or any child node.https://gitlab.com/kayakr/climbnz.org.nz/-/issues/71Support ads2020-04-16T08:38:31ZJ HuntSupport adsProposal to enable advertising to bring in revenue to support the site.Proposal to enable advertising to bring in revenue to support the site.J HuntJ Hunthttps://gitlab.com/kayakr/climbnz.org.nz/-/issues/70Add parent to Mountains list to assist disambiguation2020-03-05T04:54:44ZJ HuntAdd parent to Mountains list to assist disambiguationhttps://climbnz.org.nz/mountains
e.g. Mt Guinevere vs Guineverehttps://climbnz.org.nz/mountains
e.g. Mt Guinevere vs Guineverehttps://gitlab.com/kayakr/climbnz.org.nz/-/issues/69Add Same As (owl:sameAs) field for Places2020-04-16T08:35:37ZJ HuntAdd Same As (owl:sameAs) field for PlacesLink ClimbNZ to external authorities, e.g. LINZ, Wikidata, etc.
e.g
https://climbnz.org.nz/nz/si/aoraki/mt-cook-range/aoraki-mt-cook sameAs
* https://gazetteer.linz.govt.nz/place/7297
* https://www.wikidata.org/wiki/Q5059Link ClimbNZ to external authorities, e.g. LINZ, Wikidata, etc.
e.g
https://climbnz.org.nz/nz/si/aoraki/mt-cook-range/aoraki-mt-cook sameAs
* https://gazetteer.linz.govt.nz/place/7297
* https://www.wikidata.org/wiki/Q5059J HuntJ Hunthttps://gitlab.com/kayakr/climbnz.org.nz/-/issues/66Route grade should always be an array2020-01-14T20:30:23ZJ HuntRoute grade should always be an arrayVia Wim Coosemans:
The grade attribute sometimes returns a string (for example "932a8a75-8279-4297-b8d2-bef19d0b0e00" for route Klingon is grade "20"), and in other cases it returns an array (example "30ed2452-89ac-4dc2-bee4-b5ee2699f8b6...Via Wim Coosemans:
The grade attribute sometimes returns a string (for example "932a8a75-8279-4297-b8d2-bef19d0b0e00" for route Klingon is grade "20"), and in other cases it returns an array (example "30ed2452-89ac-4dc2-bee4-b5ee2699f8b6" has grades [{"Ewbank": 22}, {"Aid": "A1"}]). Dealing with multiple types is not ideal, would it be possible to stick to the latter and always return an array?J HuntJ Hunthttps://gitlab.com/kayakr/climbnz.org.nz/-/issues/65Reorder grade table2019-12-26T19:58:11ZRichard ThomsonReorder grade tableCurrent order of table on edit page is:
Ewbank Alpine (Technical) Alpine (Commitment) Alpine (Mt Cook) Aid Water Ice Mixed Boulder (Hueco)
Change order to:
Alpine (Commitment) Alpine (Technical) Alpine (Mt Cook) Ewbank Aid Water Ice Mix...Current order of table on edit page is:
Ewbank Alpine (Technical) Alpine (Commitment) Alpine (Mt Cook) Aid Water Ice Mixed Boulder (Hueco)
Change order to:
Alpine (Commitment) Alpine (Technical) Alpine (Mt Cook) Ewbank Aid Water Ice Mixed Boulder (Hueco)
(per Simon Middlemass suggestion to follow order in Aoraki Tai Poutini guidebook)https://gitlab.com/kayakr/climbnz.org.nz/-/issues/62Return Place and Route created, updated timestamps2019-11-10T05:17:38ZJ HuntReturn Place and Route created, updated timestampsc/- Wim Coosemans, see versioning, vuuid etc.c/- Wim Coosemans, see versioning, vuuid etc.https://gitlab.com/kayakr/climbnz.org.nz/-/issues/61CORS - No Access-Control-Allow-Origin header2019-10-17T01:38:30Zderek thatcherCORS - No Access-Control-Allow-Origin headerBrowser requests are being blocked by CORS - No 'Access-Control-Allow-Origin' header is present on the requested resource.
Testing on docs page works and through curl. Not via ajax without a CORS proxy.
![Screen_Shot_2019-10-16_at_9.12...Browser requests are being blocked by CORS - No 'Access-Control-Allow-Origin' header is present on the requested resource.
Testing on docs page works and through curl. Not via ajax without a CORS proxy.
![Screen_Shot_2019-10-16_at_9.12.40_PM](/uploads/9e26c2857c24c7d471f3ef51676bc924/Screen_Shot_2019-10-16_at_9.12.40_PM.png)derek thatcherderek thatcherhttps://gitlab.com/kayakr/climbnz.org.nz/-/issues/57Record fixed anchor data2020-08-11T00:23:37ZRichard ThomsonRecord fixed anchor dataAbility to record date of installation of fixed anchors, and type of anchor for Routes.Ability to record date of installation of fixed anchors, and type of anchor for Routes.https://gitlab.com/kayakr/climbnz.org.nz/-/issues/56Map views2022-07-05T02:09:43ZRichard ThomsonMap viewsEnable map views for Places. See Group 2, item 1h of March 2017 development schedule Google doc: estimate 10-30 hrs.
JB points out https://climbnz.org.nz/nz/si National Park map is missing Paparoa National Park.Enable map views for Places. See Group 2, item 1h of March 2017 development schedule Google doc: estimate 10-30 hrs.
JB points out https://climbnz.org.nz/nz/si National Park map is missing Paparoa National Park.https://gitlab.com/kayakr/climbnz.org.nz/-/issues/54Fantasy Factory2019-02-21T20:42:12ZGrant PiperFantasy FactoryHi
http://climbnz.org.nz/nz/si/canterbury/banks-peninsula/fantasy-factory
2 recent new routes failed to Migrate across to the new site.
Regards GrubbieHi
http://climbnz.org.nz/nz/si/canterbury/banks-peninsula/fantasy-factory
2 recent new routes failed to Migrate across to the new site.
Regards GrubbieJ HuntJ Hunthttps://gitlab.com/kayakr/climbnz.org.nz/-/issues/53REST API2024-01-08T22:39:28ZJ HuntREST API- [x] Endpoint: Place + child Places
- [x] Place ancestors
- [x] Place comments
- [x] Place routes
- [x] Place images
- [x] Pagination: page[offset] and page[limit]
- [x] Filter: placeType
- [x] Endpoint: Routes + parent Plac...- [x] Endpoint: Place + child Places
- [x] Place ancestors
- [x] Place comments
- [x] Place routes
- [x] Place images
- [x] Pagination: page[offset] and page[limit]
- [x] Filter: placeType
- [x] Endpoint: Routes + parent Place
- [x] Route pitches
- [x] Route comments
- [x] Route images
- [ ] Endpoint: Search?
- [x] Endpoint: Guides
- [x] Guide image
- [x] Guide places
- [ ] API versioning, `Accept:application/vnd.climbnz.v1.api+json`?
- [ ] Authentication: OAuth2, password grant?
- [x] API documentation
- [ ] Enumerations, e.g. Place Types, Grades.
Not in scope:
- [ ] Edits to Places, Routes
- [ ] Logbook/ticklist
Will probably be JSONAPI 1.1 (in future also JSON-LD).J HuntJ Hunthttps://gitlab.com/kayakr/climbnz.org.nz/-/issues/52Reinstate Geo conversions for Place2018-12-08T23:04:52ZJ HuntReinstate Geo conversions for Placee.g. between lat/lon, NZMS260, Topo50.e.g. between lat/lon, NZMS260, Topo50.