Skip to content

feat: allow resolving keys in task context#968

Open
bhearsum wants to merge 1 commit into
taskcluster:mainfrom
bhearsum:feat-allow-resolving-keys-in-t
Open

feat: allow resolving keys in task context#968
bhearsum wants to merge 1 commit into
taskcluster:mainfrom
bhearsum:feat-allow-resolving-keys-in-t

Conversation

@bhearsum
Copy link
Copy Markdown
Contributor

@bhearsum bhearsum commented Jun 1, 2026

This extends task-context to allow for calling resolve_keyed_by is a generic way. Combined with task-context's existing support for pulling context from parameters it removes the need for transforms for many usages of resolve_keyed_by (I counted at least a dozen or so in Gecko alone, and there's probably many more.)

Mostly for simplicitly I chose to re-use substitution-fields as a source for what resolve_keyed_by should be called on. I could be convinced to maintain a separate list for that (although it might introduce repetition in certain cases). I'm honestly not sure which is preferable.

This extends task-context to allow for calling `resolve_keyed_by` is a generic way. Combined with `task-context's` existing support for pulling context from parameters it removes the need for transforms for many usages of `resolve_keyed_by` (I counted at least a dozen or so in Gecko alone, and there's probably many more.)

Mostly for simplicitly I chose to re-use `substitution-fields` as a source for what `resolve_keyed_by` should be called on. I could be convinced to maintain a separate list for that (although it might introduce repetition in certain cases). I'm honestly not sure which is preferable.
@bhearsum bhearsum marked this pull request as ready for review June 1, 2026 01:38
@bhearsum bhearsum requested a review from a team as a code owner June 1, 2026 01:38
@bhearsum bhearsum requested a review from hneiva June 1, 2026 01:38
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

Successfully merging this pull request may close these issues.

1 participant