console icon indicating copy to clipboard operation
console copied to clipboard

OCPBUGS-34764: Ensure envs are initted upon first load

Open logonoff opened this issue 8 months ago • 8 comments

Fixes:

Maps with JIRA issue https://issues.redhat.com/browse/OCPBUGS-34764

Analysis / Root cause:

There is a data race between the environment variable editor component (which only takes the initial value) and the knative yaml parser. The env variable component loads first which sets the initial value as blank since the parser is still working. Then the parser is done, updates the prop, but is ignored because the env variable component is already loaded. This also fixes the issue... image

Solution Description:

Block the env selector from loading until the func.yaml is finished fetching and parsing

Screen shots / Gifs for design review:

n/a

Unit test coverage report:

unchanged

Test setup:

Install the Red Hat OpenShift Serverless and setup a Knative service

Then use @Lucifergene 's serverless example https://github.com/Lucifergene/oc-func

Browser conformance:

  • [x] Chrome
  • [x] Firefox
  • [ ] Safari

logonoff avatar Jun 12 '24 19:06 logonoff