FEAT: Ignore files and folders with regex option. #1015
FEAT: Ignore files and folders with regex option. #1015distante wants to merge 7 commits intopulsejet:masterfrom
Conversation
|
Thanks for your contribution! There are a couple of issues here:
|
|
Hidden files are addressed in 629f40d |
|
So I have to also add that check (now regex) to the cronjob, correct? Can you point me to where is it? Thank you! |
Actually I forgot we combined both to the service, so that part is fine. In that case the two issues would be: 1/ You're filtering by file basename only, but folders get separately filtered below. So this will actually not ignore the 2/ The first point in my comment. Ignoring folders with a My suggestion: use |
|
@pulsejet I had added some updates, I have added a toggle to enable the pattern if wanted and a link for some checkers. I have also added some logs so errors on wrong patterns are shown and logs for folders/files ignored. I hope it is now Ok. Pd: I still have to configure the container to resolve all nextcloud/symphony types but it doesn't break anything that isn't already so in master. |
pulsejet
left a comment
There was a problem hiding this comment.
I'm gonna cherry pick the two changes separately, probably make some minor changes to the config. We likely don't need two separate config options, just a single one.
| # - apps:/var/www/html/custom_apps | ||
| - ./custom_apps:/var/www/html/custom_apps | ||
| - ../:/var/www/html/custom_apps/memories | ||
| - ./../:/var/www/html/custom_apps/memories |
There was a problem hiding this comment.
Is the ./ at the start required? Seems a bit odd to me.
There was a problem hiding this comment.
Mmm, I think vscode formatter add them. I do not remember that I add it. But I do not remember now to be honest.
| dockerfile: Dockerfile | ||
| volumes: | ||
| # - nextcloud:/var/www/html | ||
| # - apps:/var/www/html/custom_apps |
|
I've updated the dev container setup to start and set up nextcloud with mariadb. Codespaces indicates that everything should be working though I've not tried it locally. |
|
So I should rebase, correct? |
|
Thank you @pulsejet! The last weeks I had almost no time between the work and children to do any changes. |

This PR introduces a control to ignore files and folders using a custom regex when enabled.
I also included a Visual Studio Code Dev Container for people who want to contribute but do not have the environment for it (like me).
The container will install the node modules the first time it is created, and start watch mode on start.
Also, a Nextcloud server with the Memories App as a Custom App is being started with the container, the config and data folders are exposed inside
.devcontainer/configand.devcontainer/databut ignored from git.I haven't done any coding with PHP in a really long time so maybe some tools still need to be added. But I use it to do and test this PR.
On the topic of tests. I have not found how the occ scripts are tested. I tried the playwright test but they do not have anything with indexing (also, it needs more configuration for the dev container, for now, the port has to be manually changed). @pulsejet if tests are needed please point me in the correct direction. Thanks!