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

fix: highlight errors when updating devfile #390

Merged
merged 2 commits into from
Jul 24, 2024
Merged

Conversation

vitaliy-guliy
Copy link
Contributor

@vitaliy-guliy vitaliy-guliy commented Jul 19, 2024

What does this PR do?

  • Improves generating the new devworkspace object from a devfile
  • Improves updating the devworkpace object
  • uses modal messages instead of notifications to avoid the long messages being truncated

Screenshot from 2024-07-22 11-11-24

Screenshot from 2024-07-19 14-26-53

What issues does this PR fix?

eclipse-che/che#23031

How to test this PR?

      env:
        - name: test
          value: false
  • remove the changes above, add the following command and event, restart the workspace from local devfile
commands:

  - id: test
    exec:
      component: dev
      workingDir: ${PROJECTS_ROOT}/che-code
      commandLine: |
        echo test

events:
  preStart:
    - test

Does this PR contain changes that override default upstream Code-OSS behavior?

  • the PR contains changes in the code folder (you can skip it if your changes are placed in a che extension )
  • the corresponding items were added to the CHANGELOG.md file
  • rules for automatic git rebase were added to the .rebase folder

Signed-off-by: vitaliy-guliy <vgulyy@redhat.com>
@vitaliy-guliy vitaliy-guliy added the made-with-che Changes made with Che-Code label Jul 19, 2024
Copy link

github-actions bot commented Jul 19, 2024

Click here to review and test in web IDE: Contribute

Copy link

Signed-off-by: vitaliy-guliy <vgulyy@redhat.com>
Copy link

@vitaliy-guliy vitaliy-guliy marked this pull request as ready for review July 22, 2024 08:37
@vitaliy-guliy
Copy link
Contributor Author

@etsauer could you take a quick look?

Copy link
Member

@azatsarynnyy azatsarynnyy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I chose Open Devfile when this dialog appeared for the first time

image

Then, I changed nothing in the devfile and clicked Restart Workpace from Local Devfile again. It suggested me restarting the workspace:

image

I'm not sure if this is expected behavior.

Copy link
Member

@azatsarynnyy azatsarynnyy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dialog with the devfile validation details is shown as described:

image

👍

@vitaliy-guliy
Copy link
Contributor Author

I chose Open Devfile when this dialog appeared for the first time
Then, I changed nothing in the devfile and clicked Restart Workpace from Local Devfile again. It suggested me restarting the workspace:
I'm not sure if this is expected behavior.

Yes, it is expected behavior. In case of errors you can open the devfile with Open Devfile.
It just open the file in the editor and does nothing else.

@vitaliy-guliy vitaliy-guliy merged commit 5d23847 into main Jul 24, 2024
7 checks passed
@vitaliy-guliy vitaliy-guliy deleted the fix-restart-issues branch July 24, 2024 10:08
@devstudio-release
Copy link

Build 3.16 :: code_3.x/1445: Console, Changes, Git Data

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

Build 3.16 :: get-sources-rhpkg-container-build_3.x/7282: FAILURE

code : 3.x :: Failed in 62859078 : code-rhel8-3.16-14
FAILURE: ==> 62859078:DEFAULT:ppc64le.log: <==atomic_reactor.tasks.binary_container_build.BuildProcessError: Build failed (rc=125): Error: server probably quit: unexpected EOF; copied to quay

@etsauer
Copy link

etsauer commented Jul 24, 2024

@vitaliy-guliy hey was out when you asked me to take a look at this. I see you already got it merged, but I would like to know HOW I would go about testing this so I can be more helpful next time.

Is there an editor.yaml I would use to point to this?

@vitaliy-guliy
Copy link
Contributor Author

@etsauer to test the changes provided by pull request you can create a workspace using pre-built che-code image
like I did on this screenshot
Screenshot from 2024-08-14 12-20-21

So no need to add or edit editor.yaml, it is enough to paste the editor image into the field before workspace creation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
made-with-che Changes made with Che-Code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants