Skip to content

[refactor-5602]: Remove support for Zentao products#5604

Merged
klesh merged 3 commits into
apache:mainfrom
merico-ai:issues/5602
Jul 4, 2023
Merged

[refactor-5602]: Remove support for Zentao products#5604
klesh merged 3 commits into
apache:mainfrom
merico-ai:issues/5602

Conversation

@keon94
Copy link
Copy Markdown
Contributor

@keon94 keon94 commented Jun 29, 2023

Summary

Remove/Comment-out code related to Zentao products for now.
ZentaoId now only takes the format "id" instead of "projects/id"

Does this close any open issues?

Closes #5602

Screenshots

Include any relevant screenshots here.

Other Information

Any other information that is important to this PR.

@keon94 keon94 force-pushed the issues/5602 branch 3 times, most recently from d69c1f3 to 8a39408 Compare June 30, 2023 00:40
@keon94 keon94 requested a review from mappjzc June 30, 2023 00:42
@keon94 keon94 force-pushed the issues/5602 branch 2 times, most recently from ad704ad to dc2a4f9 Compare June 30, 2023 00:49
@@ -37,7 +37,7 @@ func TestZentaoTaskDataFlow(t *testing.T) {
Options: &tasks.ZentaoOptions{
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@mappjzc I need your help with fixing this test as I can't figure out the issue, and it looks like you might have context based on the git history.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Interestingly, the test failure happens on my machine, but it's passing here

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

try TZ=UTC make test

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No, it's a different problem
image

Comment thread backend/helpers/e2ehelper/data_flow_tester.go Outdated
// @Success 200 {object} models.ZentaoProject
// @Failure 400 {object} shared.ApiBody "Bad Request"
// @Failure 500 {object} shared.ApiBody "Internal Error"
// @Router /plugins/zentao/connections/{connectionId}/scopes/project/{scopeId} [PATCH]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

the projects need to be removed from all routes

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It has been. It's just left here, commented out

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

image

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

oh. I mistook it with products. Ok, give me a minute

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

@keon94 keon94 added this to the v0.18.0 milestone Jun 30, 2023
@keon94 keon94 added the type/refactor This issue is to refactor existing code label Jun 30, 2023
klesh
klesh previously approved these changes Jul 4, 2023
@klesh klesh merged commit 3f0068c into apache:main Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/refactor This issue is to refactor existing code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug][Zentao] Support only the Project as scope

3 participants