nextcloud / nextcloud/workflow_script

Not running the script for directories

Open
#386 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs info
Dominant language
PHP
Stars
89
Forks
19
Avg merge
6h 38m
Merged PRs (30d)
3

Description

Hello, in the following line we are checking if the script is ran for a file(on tagging event)
Why is that check performed?
Why can't we run this script for a directory?

https://github.com/nextcloud/workflow_script/blob/21552a2427c2ee1458d355b29bedaf04f1cb68f1/lib/Operation.php#L116

I need to perform compression on a directory and in the current state it is not possible to trigger it for a directory.

In the logs, I see that workflowengine does run, but does nothing :/

Flow activated by event OCP\SystemTag\ISystemTagObjectMapper::assignTags
Flow handling done for event OCP\SystemTag\ISystemTagObjectMapper::assignTags 

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read lib/Operation.php at line 116 and trace how tagged file paths reach the external script. Reproduce the logged no-op for a directory and inspect the existing workflow event handling. Done means a directory-triggered workflow invokes the configured script as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.