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

👻 Tasking find refs #673

Merged
merged 9 commits into from
Jun 27, 2024
Merged

👻 Tasking find refs #673

merged 9 commits into from
Jun 27, 2024

Conversation

jortel
Copy link
Contributor

@jortel jortel commented Jun 21, 2024

No description provided.

…odel.

Signed-off-by: Jeff Ortel <jortel@redhat.com>
Signed-off-by: Jeff Ortel <jortel@redhat.com>
task/manager.go Outdated
}
kind, found := m.cluster.tasks[task.Kind]
if !found {
err = &ExtensionNotFound{Name: task.Kind}
Copy link
Collaborator

Choose a reason for hiding this comment

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

should be KindNotFound

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@@ -356,19 +356,12 @@ func (m *Manager) createApplication(imp *model.Import) (ok bool) {

func (m *Manager) discover(application *model.Application) (err error) {
for _, kind := range Settings.Hub.Discovery.Tasks {
t := api.Task{}
t := &tasking.Task{}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Underlying model.Task needs to be initialized

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@jortel jortel marked this pull request as ready for review June 21, 2024 16:29
Signed-off-by: Jeff Ortel <jortel@redhat.com>
Signed-off-by: Jeff Ortel <jortel@redhat.com>
@jortel jortel force-pushed the tasking-findRefs branch 2 times, most recently from b0a265f to c9bdc1c Compare June 25, 2024 12:07
Signed-off-by: Jeff Ortel <jortel@redhat.com>
Signed-off-by: Jeff Ortel <jortel@redhat.com>
Signed-off-by: Jeff Ortel <jortel@redhat.com>
Signed-off-by: Jeff Ortel <jortel@redhat.com>
@@ -336,7 +327,7 @@ func (h TaskHandler) Delete(ctx *gin.Context) {
// @description Update a task.
// @tags tasks
// @accept json
// @success 202
Copy link
Collaborator

Choose a reason for hiding this comment

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

This and patch probably should go back to being a 204

Copy link
Collaborator

@mansam mansam left a comment

Choose a reason for hiding this comment

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

LGTM, seems to work well and the performance problem is resolved. Just minor nit about put/patch return codes.

@mansam
Copy link
Collaborator

mansam commented Jun 26, 2024

Looks like the tests might need to be adjusted to deal with delete/cancel being fully aync.

Signed-off-by: Jeff Ortel <jortel@redhat.com>
@aufi
Copy link
Member

aufi commented Jun 27, 2024

E2E Test checkout is currently broken by my recent PR fixing diverged branches failures konveyor/go-konveyor-tests#132

The error looks to be caused by just using main branch API tests in E2E test suite, instead of updated tests in this PR. I will update CI scripts, meanwhile in this case, feel free go ahead with merging.

@jortel jortel merged commit 9b4cc38 into konveyor:main Jun 27, 2024
10 of 11 checks passed
shawn-hurley added a commit that referenced this pull request Jul 3, 2024
dymurray pushed a commit that referenced this pull request Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants