Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change execution order of FWActions #430

Open
utf opened this issue Jan 6, 2021 · 0 comments
Open

Change execution order of FWActions #430

utf opened this issue Jan 6, 2021 · 0 comments

Comments

@utf
Copy link
Member

utf commented Jan 6, 2021

As discussed in #407, detours and additions occur after mod_specs or update_specs are applied, meaning that any new Fireworks will not reflect the new specs.

I think it makes more sense to reverse the order of these operations because:

  1. It is very confusing for new users to figure out why detours/additions do not have the modified spec (I've personally had to troubleshoot 4 separate people with this issue).
  2. In the current approach, the Firetask doing the addition/detour has to know exactly what data to update in the spec at the time the Firetask is written. This often isn't known in advance and indeed the data to pass might change between workflows (which requires making a completely new Firetask just to pass different data). If the order was reversed, the Firetask doing the detour doesn't have to worry about what data is passed.

To illustrate point (1), often users try to separate the process into two Firetasks:

  • The first to add the detour.
  • The second to update the spec.

However, because any dynamic FWActions stop the execution of the subsequent Firetasks (this definitely needs better documentation) this approach doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant