Skip to content

Setup IDE terminal store for environment checks

Paul Slaughter requested to merge 5426-fe-web-terminal-init-store into master

(CE Port https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/23575)

(This is an iteration towards #5426 (closed). The feature is already implemented in !7727 (closed), but I am breaking it out into smaller MR's to ease the review process.)

What does this MR do?

This MR setups up the Vuex store for the IDE terminal which is used for environment checks. On loading the IDE, the terminal will:

  1. Ping the BE to check if the current environment (i.e. user, branch, project) can run the web terminal.
  2. Poll the BE to check if runners are available for the terminal.

Based on the result of these checks:

  • A Vuex getter allCheck, which aggregates the two checks, will determine what is shown in the empty state.
  • The tab will never be activated if the check returns a 403.

Please note:

Screenshots

20181205_web_terminal_checks

What are the relevant issue numbers?

Part of #5426 (closed)

Does this MR meet the acceptance criteria?

Edited by Paul Slaughter

Merge request reports

Loading