Let Us Make ERPNext a professional workflow alternative for real business use cases, your ideas count

Looks super interesting! Why not bundle it as a separate app rather than trying to get it merged into core. That, I think, will be a tough sell.

2 Likes

Practically impossible (nonwithstanding a theoretical possibility), it requires to become a default-ish column, like owner, idx, docstatus, etc. and hook into insert and map_doc, at the very least. Some things need to grow from the trunk :smile: ā€” This is such one thing.

Hmmā€¦nothing I saw in the proposal canā€™t be done (and done better) encapsulated as an app, but itā€™s certainly possible I missed something.

In any case, if this really can only be done in core, my opinion on this PR shifts from keen interest to hard opposition. No orchestration philosophy this opinionated should be implemented in the framework. If there are hooks you need that donā€™t currently exist, Iā€™d support seeing those merged, but this is too much to force on every user.

Thatā€™s just my opinion, of course, but based on the history of other similar proposals in the past, Iā€™d be very surprised if the maintainers didnā€™t take the same stance. If I were a betting man, Iā€™d wager the chances of something like this ever being merged are extremely low.

1 Like

Youā€™re absolutely right! Thereā€™s a middle ground, that will emerge. :smile:

But please if you have concrete ideas how to implement it as an app (at reasonable cost or beyond), share your ideas in detail with me. I do appreciate them very much!

I probably just canā€™t see it atm, so Iā€™ll need an eye-opener :small_airplane:

In any case, if this really can only be done in core, my opinion on this PR shifts from keen interest to hard opposition.

Hm? ā€” How would you expect me to handle such a position, gracefully?

No orchestration philosophy this opinionated should be implemented in the framework.

I canā€™t see much of an opinion on the PR thus far, though? Maybe the description lays out stuff that is in the realm of possibilities rather than the realm of necessities?

Iā€™m not really sure what barriers you see. You might see barriers I donā€™t, to be sure.

You mention adding fields to the DocType definition schema itself, for example, but why would that be preferable to a simple linked table? What do you gain by polling every table definition rather than just the ones involved in a ā€œFlowā€?

It is a simple linked table. :person_shrugging: ā€” orthogonal to the core schema addition.

Thereā€™s a simple guard (cached, and all) to ensure that only the ones who have flow tracing enabled are eligible for the implementing code path. We are talking about the runtime equivalent cost of the most basic equality check still without pythonā€™s type casting.


You might see barriers I donā€™t, to be sure.

Show me the code! :smile: