Repository navigation
Deprecated \OCP\IAppConfig - add missing methods to IConfig - #13938
Conversation
|
Once this is accepted I will add it to the list in http://doc.owncloud.org/server/8.0/developer_manual/app/changelog.html |
|
+1 from my PoV – 2 year deprecation policy seems sensible. |
9100349 to
f7f25f2
Compare
|
I rebased, because of the merge conflicts |
There was a problem hiding this comment.
hmm - we shall move this code logic over to use insertIfNotExists - or even enhance it to insertOrUpdate
There was a problem hiding this comment.
This is just a whitespace change. Better to fix this in a separate PR
There was a problem hiding this comment.
This is just a whitespace change. Better to fix this in a separate PR
sure nothing for this pr - tech dept opened? pr opened? Just to make sure we do not forget @MorrisJobke
|
Rebase required. |
f7f25f2 to
c1d383e
Compare
333e95e to
9c246e4
Compare
|
I rebased and added the |
bba7204 to
b336c0e
Compare
|
I rebased and removed the whitespace only (and unrelated) changes. |
|
Tests? 🙊 |
The AppConfig itself has tests. https://github.com/owncloud/core/blob/c3ae01d66f46321ab79fa0a69597068e12ae72cb/tests/lib/appconfig.php Once I move these code parts over to the allconfig I will migrate the tests too. |
|
Retesting only helps when the tests pass 🙊 |
|
@nickvergessen These are the same as on the CSS-only branches 🙈 but I will debug them locally. |
b336c0e to
fbea83d
Compare
There was a problem hiding this comment.
I assume this already makes problems?
|
@DeepDiver1975 @Raydiation We had a discussion about the removal of the IAppConfig in #12260 . Can we come to a decision? Do we want to remove the IAppConfig or do we want to drop the app related methods from IConfig and keep IAppConfig? I would rate for the first approach, because then we have a single entrypoint for all the config related stuff. cc @PVince81 @rullzer @Xenopathic @nickvergessen Maybe join the discussion and write down what you think about this? |
@DeepDiver1975 Is this how jenkins should work? ;) |
|
@MorrisJobke single config interface is fine for me, so I vote for solution 1 |
|
@MorrisJobke I agree, a single interface sounds much cleaner. Also avoids new code duplication in the future. |
|
The inspection completed: 4 new issues, 6 updated code elements |
|
@MorrisJobke Single interface makes more sense to me. |
|
Refer to this link for build results (access rights to CI server needed): |
|
This is ready for review :) cc @Xenopathic @rullzer @Raydiation @nickvergessen @LukasReschke @DeepDiver1975 |
There was a problem hiding this comment.
Why again do we need this :D? cant we put these things into the constructor?
There was a problem hiding this comment.
Because currently we don't setup all paths with the DI container. And therefore we use the system config in some places (especially base.php) in a very early state of the request (and also during the installation). These places should be properly set up (i.e. with just usage of the SystemConfig - they are in core and there the usage is fine).
But unwrangling this wasn't successful yet, because it was a cyclic dependency. As we now dropped the autoconfig I can give it another try, because that was the most trickiest part. For now this will just delay the object init in the DI to a later point and the database credentials can be loaded correct.
There was a problem hiding this comment.
Do we have a tech debt ticket for this?
There was a problem hiding this comment.
I don't think so, because this involves the whole base.php :(
There was a problem hiding this comment.
Please create one :)
This is definitely possible because basically we dont have cyclic dependencies, there is always a starting point (that is reading the config.php)
|
@PVince81 @nickvergessen @LukasReschke @DeepDiver1975 @rullzer @Raydiation @icewind1991 Some review would be really nice |
|
👍 |
Deprecated \OCP\IAppConfig - add missing methods to IConfig
|
This PR broke the unit tests on master, maybe because the results were outdated. I have raised a revert PR here: #15284 @MorrisJobke you'll need to resubmit the changes from this PR and fix the unit test. |
ref #12260
@karlitschek @DeepDiver1975 I added a deprecation note into the header. In here I added a 2 year time frame, because it involves a interface of the public namespace \OCP. This is meant to be discussed.
I added all the missing methods to our central config interface and added a deprecation note to each method.
Is this the way we want to deal with deprecations?
Opinions @PVince81 @icewind1991 @nickvergessen @LukasReschke ?