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

Add own workflow model #1784

Merged
merged 43 commits into from
Jun 27, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
683e657
Add own workflow model
qwerty287 May 29, 2023
c85fe84
Merge branch 'master' into workflow-model
qwerty287 May 29, 2023
11d79d1
fix tests
qwerty287 May 29, 2023
473175c
Fix lint
qwerty287 May 29, 2023
a2feac8
Fix lint
qwerty287 May 29, 2023
5ad86a5
Remove file
qwerty287 May 29, 2023
b43c5bc
Merge branch 'master' into workflow-model
qwerty287 May 30, 2023
a0ec798
use `Sync`
qwerty287 May 30, 2023
ab01351
some small improvements
qwerty287 May 30, 2023
783f337
Merge branch 'master' into workflow-model
qwerty287 May 31, 2023
10d2904
Merge branch 'master' into workflow-model
qwerty287 May 31, 2023
1b86518
Merge branch 'master' into workflow-model
qwerty287 Jun 1, 2023
d688878
Merge branch 'master' into workflow-model
qwerty287 Jun 3, 2023
e655110
Merge branch 'master' into workflow-model
qwerty287 Jun 4, 2023
6bdb5a5
Merge branch 'master' into workflow-model
qwerty287 Jun 5, 2023
1a21c9d
Merge branch 'master' into workflow-model
qwerty287 Jun 6, 2023
757c075
Fix pipeline
qwerty287 Jun 6, 2023
1c9a36b
Fix missing table
qwerty287 Jun 6, 2023
79417f1
Fix api client and ui
qwerty287 Jun 6, 2023
915fca3
Merge branch 'master' into workflow-model
qwerty287 Jun 6, 2023
c51149d
Fix tests
qwerty287 Jun 6, 2023
f6f056b
Review suggestions
qwerty287 Jun 6, 2023
be82d4c
Better naming
qwerty287 Jun 6, 2023
d6b9383
Merge branch 'master' into workflow-model
qwerty287 Jun 7, 2023
a439541
Merge branch 'master' into workflow-model
qwerty287 Jun 7, 2023
49619c1
gen swagger
qwerty287 Jun 9, 2023
7e6d840
Merge branch 'master' into workflow-model
qwerty287 Jun 9, 2023
2fd7326
Merge branch 'master' into workflow-model
6543 Jun 10, 2023
9cfc331
codformat & nits
6543 Jun 10, 2023
180a8be
rename to workflow
6543 Jun 10, 2023
06da1c3
refactor
6543 Jun 10, 2023
9c53119
fix session
6543 Jun 10, 2023
0bec66e
Merge branch 'master' into workflow-model
qwerty287 Jun 16, 2023
2b2887a
Merge branch 'master' into workflow-model
qwerty287 Jun 19, 2023
2198e6c
Merge branch 'master' into workflow-model
6543 Jun 19, 2023
af20d2b
Add GetTree test
qwerty287 Jun 19, 2023
3e0bb3d
Add Update and Load tests
qwerty287 Jun 19, 2023
dbd0aff
mv server/store/datastore/migration/0{19,20}_parent_steps_to_workflow…
6543 Jun 19, 2023
7a4a5f0
close transaction in any case
6543 Jun 19, 2023
f6aa0ee
Update server/forge/gitea/gitea_test.go
6543 Jun 20, 2023
1917a91
format
qwerty287 Jun 21, 2023
c0dcaf2
Merge branch 'master' into workflow-model
6543 Jun 21, 2023
fffe780
Merge branch 'master' into workflow-model
6543 Jun 27, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix session
  • Loading branch information
6543 committed Jun 10, 2023
commit 9c53119fb64347de97b9d753a17d7376a1367825
2 changes: 1 addition & 1 deletion server/forge/mocks/forge.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions server/store/datastore/step.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,13 @@ func (s storage) stepListWorkflow(sess *xorm.Session, workflow *model.Workflow)
}

func (s storage) stepCreate(sess *xorm.Session, steps []*model.Step) error {
if err := sess.Begin(); err != nil {
return err
}

for i := range steps {
// only Insert on single object ref set auto created ID back to object
if _, err := sess.Insert(steps[i]); err != nil {
return err
}
}

return sess.Commit()
return nil
}

func (s storage) StepUpdate(step *model.Step) error {
Expand Down