Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add workflow error notification in ui #23404

Merged
merged 8 commits into from
Mar 14, 2023

Conversation

yp05327
Copy link
Contributor

@yp05327 yp05327 commented Mar 10, 2023

image
image

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Mar 10, 2023
@techknowlogick techknowlogick added type/enhancement An improvement of existing functionality topic/ui Change the appearance of the Gitea UI labels Mar 10, 2023
@techknowlogick techknowlogick added this to the 1.20.0 milestone Mar 10, 2023
@lunny
Copy link
Member

lunny commented Mar 10, 2023

Could we display the parse error on the tooltip?

@yp05327
Copy link
Contributor Author

yp05327 commented Mar 10, 2023

Could we display the parse error on the tooltip?

@lunny
I think we can add ErrorType to WorkFlow struct to display the error.
But I have no idea about how to define these parse errors.

type WorkFlow struct {
    Entry     git.TreeEntry
    IsInvalid bool
    ErrorType WorkFlowError
}

type WorkFlowError string

const (
    ParseError1 WorkFlowError = "xxxx"
)

@lunny
Copy link
Member

lunny commented Mar 11, 2023

How about

type WorkFlow struct {
Entry     git.TreeEntry
ErrMsg string
}

@yp05327
Copy link
Contributor Author

yp05327 commented Mar 14, 2023

It looks as following now.
image
image

@codecov-commenter
Copy link

codecov-commenter commented Mar 14, 2023

Codecov Report

Merging #23404 (247b59c) into main (6ff5400) will increase coverage by 47.20%.
The diff coverage is 0.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff            @@
##           main   #23404       +/-   ##
=========================================
+ Coverage      0   47.20%   +47.20%     
=========================================
  Files         0     1151     +1151     
  Lines         0   152006   +152006     
=========================================
+ Hits          0    71753    +71753     
- Misses        0    71787    +71787     
- Partials      0     8466     +8466     
Impacted Files Coverage Δ
modules/actions/workflows.go 0.00% <0.00%> (ø)
routers/web/repo/actions/actions.go 0.00% <0.00%> (ø)

... and 1149 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Mar 14, 2023
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Mar 14, 2023
@lunny lunny added the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Mar 14, 2023
@lunny lunny merged commit aac07d0 into go-gitea:main Mar 14, 2023
@lunny lunny removed the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Mar 14, 2023
zjjhot added a commit to zjjhot/gitea that referenced this pull request Mar 15, 2023
* giteaofficial/main: (33 commits)
  Bump webpack from 5.75.0 to 5.76.0 (go-gitea#23484)
  Replace Less with CSS (go-gitea#23481)
  Fix 'View File' button in code search (go-gitea#23478)
  Use `gitea/test_env` image instead of `golang` (go-gitea#23455)
  Skip DB tests duplicate runs on push to branches (go-gitea#23476)
  Update app.example.ini (go-gitea#23480)
  [skip ci] Updated translations via Crowdin
  Fix due date being wrong on issue list (go-gitea#23475)
  test_env: hardcode major go version in use (go-gitea#23464)
  Push option bonus for PTC docs (go-gitea#23473)
  Lint Markdown pass
  Push to create docs (go-gitea#23458)
  Convert GitHub event on actions and fix some pull_request events. (go-gitea#23037)
  Remove wrongly added column on migration test fixtures (go-gitea#23456)
  Refactor branch/tag selector to Vue SFC (go-gitea#23421)
  add admin API email endpoints (go-gitea#22792)
  add user rename endpoint to admin api (go-gitea#22789)
  Add workflow error notification in ui (go-gitea#23404)
  Make branches list page operations remember current page (go-gitea#23420)
  fix markdown lint issue (go-gitea#23457)
  ...
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. topic/ui Change the appearance of the Gitea UI type/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants