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

🐛 Prefer Task field kind over addon #1971

Merged
merged 2 commits into from
Jun 20, 2024
Merged

Conversation

sjd78
Copy link
Member

@sjd78 sjd78 commented Jun 20, 2024

Resolves: #1970

  • When creating a new Taskgroup, specify kind instead of addon

  • Process Tasks where kind may be missing and addon is given instead (i.e. tasks created before this change)

  • Make Task.id and Taskgroup.id required, New<> as needed

@sjd78
Copy link
Member Author

sjd78 commented Jun 20, 2024

Replaces #1959

@sjd78 sjd78 added this to the v0.5.0 milestone Jun 20, 2024
Copy link

codecov bot commented Jun 20, 2024

Codecov Report

Attention: Patch coverage is 40.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 42.22%. Comparing base (b654645) to head (8382e22).
Report is 170 commits behind head on main.

Files Patch % Lines
client/src/app/queries/tasks.ts 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1971      +/-   ##
==========================================
+ Coverage   39.20%   42.22%   +3.01%     
==========================================
  Files         146      170      +24     
  Lines        4857     5450     +593     
  Branches     1164     1387     +223     
==========================================
+ Hits         1904     2301     +397     
- Misses       2939     3032      +93     
- Partials       14      117     +103     
Flag Coverage Δ
client 42.22% <40.00%> (+3.01%) ⬆️
server ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

ibolton336 and others added 2 commits June 20, 2024 14:33
Resolves: konveyor#1970

  - When creating a new `Taskgroup`, specify `kind` instead of
    `addon`

  - Process Tasks where `kind` may be missing and `addon` is given
    instead (tasks created before this change)

  - Make `Task.id` and `Taskgroup.id` required, `New<>` as needed

Signed-off-by: Ian Bolton <ibolton@redhat.com>
Signed-off-by: Scott J Dickerson <sdickers@redhat.com>
Signed-off-by: Scott J Dickerson <sdickers@redhat.com>
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.

Update Task creation and handling to prefer the kind field over the addon field
2 participants