fix: restrict mime type list depending on check operator#50259
Conversation
|
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
|
@susnux may I kindly ask you for a review, please? |
|
The more I think about this the more I think we should simply only allow matches/!matches operator for mime types. If the custom value is only possible for regex anyway, we should require a regex always. It’s the most powerful thing and it will be less confusing. |
Would need repair steps however, and might be more confusing to those not knowing regex. Also end user might be using this. |
Maybe we could combine both approaches:
Of course repair steps would be needed in any case but I guess it would be worth it. To me this sound like the cleanest solution. What do you think? |
|
@R0Wi Can we directly show "Custom mimetype" and "Custom regex" as 2 separates options in the drop down? |
I think this should be possible, yes 👍 Pretty good idea. Do you want me to change the PR accordingly or are we waiting for further feedback first? |
If you can change it that’s great, yeah. |
Hey @R0Wi, do you have any updates on implementing the custom regex change? |
|
@salmart-dev unfortunately, at present my time is pretty limited. Will try to circle back on this as soon as I find some time. But if there's anyone else in the community willing to take over, please feel free 👍 |
Summary
Checklist