gsd5 icon indicating copy to clipboard operation
gsd5 copied to clipboard

No dependency when in realm

Open rolfdeenen opened this issue 8 years ago • 3 comments

Helllo. i recently (re-)discovered mgsd in the form of gsd5. After some getting used to I really appreciate the simplicity of the tool. I think however that I have encountered a bug. When I have two tiddlers I can make one dependent on the other. I have noticed that when I make both actions enter a realm this is no longer possible. Even when they enter the same realm. When one of both enters a realm I can still make them dependent. It seems to me it should only be possible to make actions dependent when the both are in the same (or none) realm. Is my assumption correct? Should I file a bug report? Regards, Rolf

rolfdeenen avatar Sep 04 '16 17:09 rolfdeenen

So, I 've tried to look into the code. I don know JavaScript but I feel the "problem" lies within the following (partial) rule:

...Depends on: <br/>\n<$prereq default=\"\">\n <option value=\"\">--</option>\n <$set name=\"currentTitle\" value=<<currentTiddler>> >\n <$list filter=\"[field:gsd_type[action]!field:gsd_complete[true]!field:gsd_complete[true]field:gsd_realm{$:/currentRealm!!text}!has[gsd_project]!title<currentTitle>]\">\n...

It seems to say to filter the list of actions, depending on to be in the current realm. Problem seems to be that at the moment of creation the current realm is empty. Making the current action part of a realm doesn't change this. Selecting a realm in the right column changes this. So, as a workaround I can change the "active" realm and select the dependent action.

rolfdeenen avatar Sep 12 '16 19:09 rolfdeenen

Thanks you for your input, Rolf.

This really isn't a bug, per se, but an oversight by myself. The widget looks to the status of a 'global' tiddler to decide which tiddlers to show and not the realm of the Action tiddler in question. I shall look into correcting this. Thank you.

https://groups.google.com/forum/#!topic/tiddlywiki-gtd/LxflmgtBuz8

roma0104 avatar Sep 26 '16 21:09 roma0104

Hi, I just make my first steps in GTD itself and GSD5 as a tool. First of all Thank you very much roma0104 for this useful TW plugin! I like it! I also experienced the problem described above. But before asking for a fix I wonder what effect a dependency setup will have.

  • Will dependencies be enforced in the workflow?
  • Do you plan to visualize dependencies in any way?

Regards, Matzerich

MaeSiuS avatar Sep 30 '16 16:09 MaeSiuS