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(controller): clean up before insert into argo_archived_workflows_labels #5568

Merged
merged 1 commit into from
Apr 1, 2021

Conversation

book987
Copy link
Contributor

@book987 book987 commented Apr 1, 2021

fix #5567

Checklist:

…labels

Signed-off-by: BOOK <book78987book@gmail.com>
@codecov
Copy link

codecov bot commented Apr 1, 2021

Codecov Report

Merging #5568 (a276945) into master (2b3655e) will increase coverage by 0.09%.
The diff coverage is 0.00%.

❗ Current head a276945 differs from pull request most recent head 5db8b77. Consider uploading reports for the commit 5db8b77 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5568      +/-   ##
==========================================
+ Coverage   46.94%   47.04%   +0.09%     
==========================================
  Files         240      240              
  Lines       15016    15002      -14     
==========================================
+ Hits         7050     7057       +7     
+ Misses       7070     7046      -24     
- Partials      896      899       +3     
Impacted Files Coverage Δ
persist/sqldb/workflow_archive.go 0.00% <0.00%> (ø)
workflow/controller/operator.go 70.69% <0.00%> (-0.28%) ⬇️
pkg/apiclient/http1/event-watch-client.go 0.00% <0.00%> (ø)
...kg/apiclient/http1/cron-workflow-service-client.go 0.00% <0.00%> (ø)
...piclient/argo-kube-cron-workflow-service-client.go 0.00% <0.00%> (ø)
...lient/error-translating-workflow-service-client.go 0.00% <0.00%> (ø)
...ient/argo-kube-workflow-template-service-client.go 0.00% <0.00%> (ø)
.../error-translating-cron-workflow-service-client.go 0.00% <0.00%> (ø)
...o-kube-cluster-workflow-template-service-client.go 0.00% <0.00%> (ø)
cmd/argo/commands/get.go 56.66% <0.00%> (+0.66%) ⬆️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2b3655e...5db8b77. Read the comment docs.

@alexec
Copy link
Contributor

alexec commented Apr 1, 2021

This should not be needed. There should be cascade delete when record is deleted.

Copy link
Contributor

@alexec alexec left a comment

Choose a reason for hiding this comment

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

after some spinning around - I realise this is the correct solution

@alexec alexec merged commit ed54f15 into argoproj:master Apr 1, 2021
@alexec alexec added this to the v2.12 milestone Apr 1, 2021
@alexec
Copy link
Contributor

alexec commented Apr 1, 2021

Needs to be back-port to v2.12 and v3.0

@alexec
Copy link
Contributor

alexec commented Apr 1, 2021

#5551

@simster7 simster7 mentioned this pull request Apr 1, 2021
14 tasks
simster7 pushed a commit that referenced this pull request Apr 1, 2021
…labels (#5568)

Signed-off-by: BOOK <book78987book@gmail.com>
@simster7 simster7 mentioned this pull request Apr 19, 2021
50 tasks
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.

archive workflow got duplicate entry error
2 participants