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

Extend Autocompletion with task and taskrun expressions and the root available variables #3622

Open
12 of 16 tasks
brian-mulier-p opened this issue Apr 26, 2024 · 0 comments
Open
12 of 16 tasks
Labels
backend Need some backend code changes enhancement New feature or request frontend Need some frontend code changes
Milestone

Comments

@brian-mulier-p
Copy link
Member

brian-mulier-p commented Apr 26, 2024

As a follow-up to #3331 we can extend autocompletion.

In the order of priority

Prio 1 - DONE

Add autocompletion for root attributes when in an empty Pebble

you type {{ and then cmd+Space will give you:

  • inputs
  • outputs
  • vars
  • trigger
  • execution
  • taskrun
  • task

Prio 2

  • task.id
  • task.type
  • flow.tenantId
  • envs DONE, not dynamically fetching envs for now
  • globals DONE, note dynamically fetching globals for now
  • for EE, namespace variables e.g. {{ namespace.myvar }}

Out of scope for now

Those can be explored later if time is available

Prio 3

  • Add autocompletion for Pebble functions when we're in Pebble {{...}} and there's a word ahead of the cursor
  • Add autocompletion for Pebble filters when we type "|" inside Pebble
  • Add autocompletion for plugin defaults

Prio 4

Context aware:

  • taskrun.parentId

  • taskrun.value

  • taskrun.iteration

  • taskrun.id NEED TO BE CONTEXT AWARE, POSTPONE TO 0.18

  • taskrun.startDate NEED TO BE CONTEXT AWARE, POSTPONE TO 0.18

  • taskrun.attemptsCount NEED TO BE CONTEXT AWARE, POSTPONE TO 0.18

  • parents NEED TO BE CONTEXT AWARE, POSTPONE TO 0.18

@brian-mulier-p brian-mulier-p added the enhancement New feature or request label Apr 26, 2024
@anna-geller anna-geller added this to the v0.18.0 milestone Apr 26, 2024
@anna-geller anna-geller changed the title Autocompletion - Propose user with Pebble autocompletion and the root available variables Extend Autocompletion with task and taskrun expressions and the root available variables May 29, 2024
@anna-geller anna-geller added frontend Need some frontend code changes backend Need some backend code changes labels Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Need some backend code changes enhancement New feature or request frontend Need some frontend code changes
Projects
Status: Backlog
Development

No branches or pull requests

2 participants