-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cache type changes (OCNA migration) #2087
base: master
Are you sure you want to change the base?
Conversation
Stage 1: graphics resources Reference: opencaching#860 - removed stale and unused files (22x22*, 24x24*, usb*, mystery*) - added graphics for new cache types (benchmark, bitcache, challenge, guestbook) - created icon resources /public/images/cache/res - created icon build script - moved KML build resources and script to /public/images/cache/res (/public/images/cache/kml now contains only production images) - updated KML icons build script From now on it is easy to generate the entire iconset from res/ directory. Just enable each cache type icon in res/__cache_types.txt. Also, KML icons will be generated from the same set.
Stage 2: code additions and changes Reference: opencaching#860 Reference: opencaching#2024 - modified lib/cache.php definitions (old, but still used) - modified GeoCacheCommons.php model - modified translations (en first) - new types are forbidden by default lib/settingsDefault.inc.php - partial modification src/Views/mainMap/mainMapFilters.tpl.php
- removed podcache graphics - created (work in progress) geopath final graphics - updated cache and GeoCacheCommons - created SQL to update database - updated translations
- removed Geopath FINAL / podcache - added BIT cache - added Guestbook - added Benchmark - added Challenge Updated translations, cacheType_1-15 Removed some duplicate translation strings having the same content and purpose. - updated cache.php - updated GeoCacheCommons.php - updated several files referencing cache types - partial update of search pages - updated exporters that export cache_type TODO: - log_cache_multi.php - editcache.php - newcache.tpl.php - GeoCache.php - CacheSetCommon.php - powerTrailBase.php - ajaxGetPowerTrailCaches.php - newcache.php - caches.inc.php - openchecker_classes.php - newcache_beginner.tpl.php
- removed Geopath FINAL / podcache - added BIT cache - added Guestbook - added Benchmark - added Challenge Updated translations, cacheType_1-15 Removed some duplicate translation strings having the same content and purpose. - updated cache.php - updated GeoCacheCommons.php - updated several files referencing cache types - partial update of search pages - updated exporters that export cache_type TODO: - log_cache_multi.php - editcache.php - newcache.tpl.php - GeoCache.php - CacheSetCommon.php - powerTrailBase.php - ajaxGetPowerTrailCaches.php - newcache.php - caches.inc.php - openchecker_classes.php - newcache_beginner.tpl.php
- defined Geopath rules for new types - defined size rules for new types
Just wondering. Is there any progress in this PR? |
Can I call you later?
Rgds, Andy
…On 22 Sep 2019, at 09:21, harrieklomp ***@***.***> wrote:
Just wondering. Is there any progress in this PR?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
|
@kojoty @deg-pl @following5 can this be merged? Let's schedule the merge this week. |
OK, I will try to manage to review it today... |
@andrixnet you made great work - my respect :) I have a few questions: -- 1: I see a few new types from OCNA:
Please explain for me what these types mean - I have a dirty idea: maybe they doesn't need these types as much and we can go other way - just refactor OCNA caches in DB to "our" well defined types... -- 2: have you tested this? |
@kojoty these cache types are explained briefly here: https://wiki.opencaching.eu/index.php?title=Cache_types Additional information (though not fully up to date) can be found here: Also, you can see the ID overlaps in this older version of the wiki page: You can see them in action on one of my dev sites here: http://ocro.dev.andrix.eu/ |
@andrixnet, Your work on unification types and attributes etc. and documentation of all of that is really impressive - I appreciate it (sure!) - many thanks for that. I reviewed the new cache types from OCUS - sorry again that I made it so late (that was something what I was not analyze deeper before - I feel bad with this because you made lot of works and at the end I start discussion on that) - anyway - my thoughts:
My idea for now:
@deg-pl, @harrieklomp @andrixnet @mzylowski PS. |
@kojoty regarding cache types: I will try to relay things as requested by OCNA team:
OCNA also had these cache types:
I have discussed all these in depth with the US team. They requested the former be as types and agreed about the latter to be assimilated with attributes.
That is:
One specific detail would be to allow editing an existing cache (of type not hideable) with the ability to retain the type. |
AFAIK this opencaching/okapi#595 should be fine at OKAPI, several points raised by following5 have been resolved. |
Please review this PR in the light of the code changes this past year. Problems with cache types that persist and significantly affect OCNA are solved. |
A short review (for other purposes) today revealed that there still are many instances where |
This is my work related to cache type changes according to:
CACHE_TYPE_ID changes, TODO list for OCUS, GeoPath FINAL cache type, ErrorException: Undefined offset: 12.
Notes:
PR consists of code changes and database update.
Database backup is recommended before running the SQL file.
SQL file is for manual run by admin and is valid for all member sites.
This code can be seen in action at this devsite: http://ocro.dev.andrix.eu/ until merged.
Between code merge and DB update a few cache types may not work or be displayed incorrectly due to incomplete database definition.