Repository navigation
Move static data from config to resources/config/ - #18893
Conversation
|
A new inspection was created. |
|
We should keep the mimetypealiases.json and mimetypemapping.json in config/, since those files are supposed to be edited by the admin. The .dist.json files can go in resources/ though |
|
I disagree. People will forget to add the mimetypemapping.json the same way the miss the cert. We have to move this over too. |
|
Can we move it to core/ressources? I think we shold have less crap in the root directory. Maybe sometime we can cleanup more stuff like moving the db_structure.xml and other to /core too. |
|
@karlitschek Note, the file doesn't exist by default. It's for admins that wish to add custom mimetype aliases or mappings. ownCloud distributes a standard set of mimetype aliases/mappings, which currently go in cc @rullzer |
|
@karlitschek basically what @Xenopathic said. I think the dist one should go into Just to be clear. The file in |
|
Got it. But why should an admin extend this list in the first place? What is the usecase? |
|
@karlitschek well if the default mapping is not good enough. Lets say I want all my .cpp files to have a custom icon because I'm a huge C++ fanboy. Or if a hospital has some obscure format to store large medical images in. Then they might want to map the correct extensions to that mimetype. And at the same time map that mimetype to a generic image icon. |
|
So how would you actually add the mimetype icons? In a theme? |
|
Yes if you have specific icons you would add them in a theme. Most of the admins will not create those custom mappings or aliases. And that is totally fine. But there are legit use cases where we should not limit them and make them patch core. A config file is a lot cleaner. But I think this really is besides the point. If there is user configured stuff it should go into |
|
Fair enough… Then let's for whatever reason somebody might want to modify mimetypes keep these manual edits in config 🙈 |
30801ea to
5c2f90d
Compare
5c2f90d to
4201f59
Compare
|
@Xenopathic @rullzer Happier now? - If so please review 🙊 |
There was a problem hiding this comment.
We can probably drop the .dist part now that it's not in config/. That was only there to differentiate between the distributed file and the one that the admin can change.
|
Code looks good 👍 Now it's a race between this and #19272 for the merge conflict 😆 |
|
THIS THIS THIS THIS THIS! ;-) |
|
@LukasReschke But you like merge conflicts, right? I wouldn't want to take that away from you 😆 Think of it as an early Christmas present |
Move static data from config to resources/config/
This moves the static data from config into resources/config/ to prevent further update problems.
@rullzer Please review with regard to the mimetype stuff
@karlitschek FYI