Skip to content

Next few changes - see commit messages#2109

Merged
kojoty merged 8 commits into
opencaching:masterfrom
kojoty:fast_fixes
Feb 17, 2020
Merged

Next few changes - see commit messages#2109
kojoty merged 8 commits into
opencaching:masterfrom
kojoty:fast_fixes

Conversation

@kojoty

@kojoty kojoty commented Sep 28, 2019

Copy link
Copy Markdown
Member

No description provided.

@kojoty

kojoty commented Sep 29, 2019

Copy link
Copy Markdown
Member Author

@deg-pl, @harrieklomp, @andrixnet

Please check if in your nodes settings.inc.php all calls to class "cache" (/lib/cache.php) are removed:

all things like: cache::TYPE_TRADITIONAL should be replaced to GeoCacheCommons::TYPE_TRADITIONAL

After merge this PR there will not be /lib/cache.php anymore.

@deg-pl

deg-pl commented Sep 29, 2019

Copy link
Copy Markdown
Member

@kojoty It produces error "ErrorException: ClassPathDictionary::getClassPath: ERROR: Trying to load unknown class: GeoCacheCommons" (in settings.inc.php)

@kojoty

kojoty commented Sep 29, 2019

Copy link
Copy Markdown
Member Author

@kojoty It produces error "ErrorException: ClassPathDictionary::getClassPath: ERROR: Trying to load unknown class: GeoCacheCommons" (in settings.inc.php)

Just add:
use src\Models\GeoCache\GeoCacheCommons to settings.inc.php - it should work then without any issue. That's why I wrote comment above.

@harrieklomp

Copy link
Copy Markdown
Member

Done at OCNL

@harrieklomp

Copy link
Copy Markdown
Member

Done on OCUS

@deg-pl

deg-pl commented Sep 30, 2019

Copy link
Copy Markdown
Member

Done on OC PL and OC UK.

@kojoty Tak to jest, jeśli się zmienia konfigurację OC o północy między układaniem paneli a układaniem paneli ;). Dzięki.

@kojoty

kojoty commented Sep 30, 2019

Copy link
Copy Markdown
Member Author

Done on OC PL and OC UK.

@kojoty Tak to jest, jeśli się zmienia konfigurację OC o północy między układaniem paneli a układaniem paneli ;). Dzięki.

bo jest stara zasada przodków którą znano już prawdopodobnie w XVIw.: niedziela dzień święty - w niedzielę nie trzeba paneli układać - trzeba wtedy kod OC refaktorować!

@andrixnet

Copy link
Copy Markdown
Contributor

OCRO and OCUS pending.
Does this PR influence this: #2087 ?

@kojoty

kojoty commented Sep 30, 2019

Copy link
Copy Markdown
Member Author

OCRO and OCUS pending.
Does this PR influence this: #2087 ?

I afraid the answer must be: YES
andrixnet: #2087 is huge, and it seems to be much more important - what is a way to merge it?
Is this ready in your opinion? If yes, I can sit and review it today evening (250+ files - it will be cool I guess) - my smaller PR can wait...

@andrixnet

Copy link
Copy Markdown
Contributor

IMO it is ready, at least according to my experience and knowledge of the code and all the research I did. There still is however a chance I might have missed something.

See it live here: http://ocro.dev.andrix.eu/

@andrixnet

Copy link
Copy Markdown
Contributor

I will try to be around the computer in the evening, 22:00 - 24:00 EET

@kojoty

kojoty commented Oct 1, 2019

Copy link
Copy Markdown
Member Author

OK, I've checked and can confirm that the conficts with BIG PR #2087 (with new types) are quite easy to resolve - if OCUS and OCRO are ready (no cache:: use in settings.inc.php) we can merge this.

@kojoty

kojoty commented Oct 15, 2019

Copy link
Copy Markdown
Member Author

@andrixnet Can you confirm that OCRo and OCUs are read for this commit - I mean no references to cache:: in settings.inc.php

I would like to merge this - and next I will resolve conflicts in #2087 when we decide to merge it.

@andrixnet

Copy link
Copy Markdown
Contributor

OCRO has

    $config['forbidenCacheTypes'] = array(
        cache::TYPE_GEOPATHFINAL
    );

I droppped it.
(anyway, with #2087 it becomes invalid anyway).

Beware that settingsDefault.inc.php still contains references:

    /**
     * not allowed cache types (user cannot create caches of this types).
     *
     * Cachetypes must be lib/cache.php constant TYPE_*
     */
    'forbidenCacheTypes' => array(
        cache::TYPE_VIRTUAL,
        cache::TYPE_WEBCAM,
        cache::TYPE_GEOPATHFINAL
    ),
    /**
     * cache limits for user. If user is allowed to place limited nomber of spec
     * place cachetype and limit here.
     *
     * Cachetypes must be lib/cache.php constant TYPE_*
     */
    'cacheLimitByTypePerUser' => array(
        cache::TYPE_OWNCACHE => 1,
    ),

@kojoty

kojoty commented Oct 23, 2019

Copy link
Copy Markdown
Member Author

@andrixnet Thanks,

don't worry about settingsDefault.inc.php - this is a part of the code so I can control it by repo modification - opposite to settings.inc.php where I don't have an access

@kojoty kojoty merged commit a9c83b5 into opencaching:master Feb 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants