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

Tink CLI now flags an error if template ID does not exist, while creating a workflow #286

Merged
merged 2 commits into from
Sep 10, 2020

Conversation

gauravgahlot
Copy link
Contributor

@gauravgahlot gauravgahlot commented Sep 9, 2020

Description

Return error if no template is found for the provided template ID.

Why is this needed

Fixes: #282

How Has This Been Tested?

By attempting to create a workflow with non-existing and existing workflow ID.

How are existing users impacted? What migration steps/scripts do we need?

Fixes a bug.

Checklist:

I have:

  • updated the documentation and/or roadmap (if required)
  • added unit or e2e tests
  • provided instructions on how to upgrade

@gauravgahlot gauravgahlot added kind/bug Categorizes issue or PR as related to a bug. added-tests labels Sep 9, 2020
@gauravgahlot gauravgahlot self-assigned this Sep 9, 2020
@gauravgahlot gauravgahlot marked this pull request as draft September 9, 2020 12:44
@codecov
Copy link

codecov bot commented Sep 9, 2020

Codecov Report

Merging #286 into master will increase coverage by 3.22%.
The diff coverage is 33.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #286      +/-   ##
==========================================
+ Coverage   20.78%   24.01%   +3.22%     
==========================================
  Files          15       15              
  Lines        1342     1345       +3     
==========================================
+ Hits          279      323      +44     
+ Misses       1049     1003      -46     
- Partials       14       19       +5     
Impacted Files Coverage Δ
grpc-server/workflow.go 21.25% <33.33%> (+21.25%) ⬆️

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 87e74b9...a35bf29. Read the comment docs.

@gauravgahlot gauravgahlot marked this pull request as ready for review September 9, 2020 12:46
@gauravgahlot gauravgahlot added needs-tests Needs supporting unit tests do-not-merge Signal to Mergify to block merging of the PR. and removed added-tests labels Sep 9, 2020
Signed-off-by: Gaurav Gahlot <[email protected]>
Signed-off-by: Gaurav Gahlot <[email protected]>
@gauravgahlot gauravgahlot added added-tests and removed do-not-merge Signal to Mergify to block merging of the PR. needs-tests Needs supporting unit tests labels Sep 10, 2020
@gauravgahlot gauravgahlot added the priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. label Sep 10, 2020
Copy link
Contributor

@gianarb gianarb left a comment

Choose a reason for hiding this comment

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

Great work! :D

@gauravgahlot gauravgahlot added ready-to-merge Signal to Mergify to merge the PR. and removed added-tests labels Sep 10, 2020
@mergify mergify bot merged commit 1117a1b into tinkerbell:master Sep 10, 2020
@gauravgahlot gauravgahlot deleted the invalid-template branch September 10, 2020 08:48
@mmlb mmlb removed the ready-to-merge Signal to Mergify to merge the PR. label Jan 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tink-cli creates workflow with the template Id which doesnot exists
3 participants