Repository navigation
Files External: allow dynamic backend registration - #8032
Conversation
…them Moved dependency check to the individual backends instead of the config Conflicts: apps/files_external/appinfo/app.php apps/files_external/lib/config.php
|
Nice one! |
Added check for backend's checkDependencies method to OC_Mount_Config::getBackends() when backend is configured to have some instead of blindly calling it and crashing Conflicts: apps/files_external/lib/config.php apps/files_external/lib/google.php
Added check for duplicate dependency check messages to display only the first
Conflicts: apps/files_external/lib/amazons3.php apps/files_external/lib/swift.php
Dependency messages now appear below the configuration options instead of above Reworked dependency check method to support consolidated messages for multiple backends Conflicts: apps/files_external/lib/google.php apps/files_external/lib/swift.php apps/files_external/templates/settings.php
Conflicts: apps/files_external/templates/settings.php
Nice - I was not aware of this test suite! Awesome! |
|
🚀 Test Passed. 🚀 |
|
🚀 Test Passed. 🚀 |
|
🚀 Test Passed. 🚀 |
|
💣 Test Failed. 💣 |
|
💣 Test Failed. 💣 |
|
🚀 Test Passed. 🚀 |
|
🚀 Test Passed. 🚀 |
|
🚀 Test Passed. 🚀 |
|
@PVince81 can I ask you review this? THX |
|
Is it still in construction ? If not please remove the construction barrier. |
|
Code looks nice. I'll do some tests next. @Xenopathic @icewind1991 can you have a look as well ? |
|
Code looks good 👍 |
|
Had a quick test with SMB and FTP in both admin page and personal page. A unit test would be nice: register a mock backend and check that it calls "checkDependencies" and others. Feel free to merge this PR first though. |
Full ACK |
|
@PVince81 please have a look at the unit tests - THX |
|
The inspection completed: 4 new issues, 24 updated code elements |
|
🚀 Test Passed. 🚀 |
There was a problem hiding this comment.
Are you relying on the test execution order ? I don't see how "Test_Mount_Config_Dummay_Backend" could be already registered here without going through the previous test.
Ideally you'd want to unregister it in tearDown()``to make sure the next tests are clean (if possible), and in every test re-register the backend, or do it insetUp()`.
There was a problem hiding this comment.
Aha, setUp() at the end of the file... got me confused.
Please ignore this comment. I'm used to put these at the beginning of the file.
|
Unit tests looks good. I'd usually prefer having setUp and tearDown at the top of the class like in other tests to make sure it is visible (reading order), devs might think that the method is missing. Anyway, I'm ok to merge this 👍 |
Files External: allow dynamic backend registration
Basic porting from the original pull request is done.