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

Feature: Adding "taskId" to AbstractBuilder to allow free order of custom tasks #639

Open
wants to merge 2 commits into
base: v2
Choose a base branch
from

Conversation

kristian
Copy link
Member

@kristian kristian commented Aug 25, 2021

Thank you for your contribution! 🙌

To get it merged faster, kindly review the checklist below:

Pull Request Checklist

Task identifiers (in short taskIds) can now be used in AbstractBuilder to define the order of multiple task executions. So far the name of the task (taskName) was treated the identifier of a task. If the same task was added to the execution multiple times, an ID in form taskName--1 was generated, counting upwards from one. In the task definition there was no way of defining the sub-order of multiple executions.

Now with the introduction of task identifiers, one can define a { id: "taskA", ... } in the task definition or call addTask with both an identifier and the name of the task to call. The old logic of generating an identifier, in case only a name is defined stays in place.

The before/afterTask declarations now no longer refer to task names but to task identifiers instead. However due to task names have previously been treated as task identifiers exclusively and also the old incrementation logic for task names stayed the same, this change is compatible with any old configuration.
@kristian kristian changed the title Feattaskid Feature: Adding "taskId" to AbstractBuilder to allow free order of custom tasks Aug 25, 2021
@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 94.718% when pulling f2b8b57 on kristian:feattaskid into 33db5e5 on SAP:master.

@matz3 matz3 added the enhancement New feature or request label Aug 26, 2021
@RandomByte RandomByte changed the base branch from master to v2 November 3, 2022 13:35
@RandomByte
Copy link
Member

Maybe we can finally realize this idea as part of the "Scheduling of Extension Executions" concept in SAP/ui5-tooling#664

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

Successfully merging this pull request may close these issues.

4 participants