-
-
Notifications
You must be signed in to change notification settings - Fork 191
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
Change folder architecture for eqsl/qsl folder #2652
Conversation
Procedure to move data : examples : |
Hello @abarrau the idea is great but your PR has some major issues which you should correct first. This one may will work for new installations but Cloudlog will be updated with "git". If a existing installation gets updated it will produce some issues and PHP Errors. You will need to write a migration which Otherwise we will produce a lot of issues with this PR. |
Hello, |
fix error on scan folder (if not exist)
@HB9HIL , correction made to the eqsl.php file. So, do you prefer the migration to be transparent for users? On this type of file which can be imported at the time movement level, I think it is preferable that the action is by the user and not when launching the application via the migration methods; but we can consider it. On the other hand, I cannot systematically trigger migrations at home, is there a procedure? |
Short: Your PR at its actual state requires the user to edit the config.php. As mentioned above we need the migration file to a) add the required parameter to existing config.php and b) move the files to set path Otherwise the user wouldn't be able to view his qsl cards without editing
The user can move the files whereever he wants. But the initial movement should be in a migration file.
create a migration file according to the latest number and set this migration in application/config/migration.php. Then restart the webserver or clear the browser cache. |
Ok, now that I know how to make the "migration" file work, I will be able to carry out these steps. On the other hand, this means that the migration interface is no longer of interest except if you want us to keep it? and that the fields become modifiable by the user (currently they are readonly). |
Since this is only available in the Admin Menu its no bad idea to keep that in there, so an Admin is able to move the storage around. |
ok, but if ultimately the idea of the project was to have centralized logic for external data, the "admin" interface must allow moving the "centralized" directory and not each directory (esql, qsl ...) |
script for migrate eqsl and qsl card folder in centralized folder
change the migration model (only the centralized folder)
Hello,
PS: I did not modify the value to "151" in the migration configuration file; I'll let you do the action on your own (with saving the eqsl/qsl directories before testing ;) |
@magicbug You should take a look about that |
@abarrau There was just another migration for something else. Please rename your migration to |
file 152 was send |
ok, done |
@abarrau I sent you an email (same as on qrz.com) 😄 |
add function down() - move folder esql/qsl from centralized folder to older folder - delete session centralized folder in config.php
Hello,
I now let the team decide what is done with this PR. Benefits: the centralization of data outside the application offers better sealing between evolving data and the core of a product. I understand the risk and the fear. |
I close this PR (not accepted by teams) |
this PR propose a centralized folder for data (out of core of the application)
a folder must be define on the config.php file (like config.sample file)
a tools is create for helping user to move data to the new folder