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

feat(tasks): add template-id to task list #2621

Merged
merged 6 commits into from
Sep 8, 2021
Merged

Conversation

sranka
Copy link
Contributor

@sranka sranka commented Sep 6, 2021

Closes #2619

This PR adds template-id OOTB to the list of returned tasks. It includes also tests, an updated swagger file, and housekeeping of staticcheck errors on updated files.

Adding template-id to task list helps chronograf with processing and visualization of templated tasks. Details are explained in influxdata/chronograf#5807

Required for all non-trivial PRs
  • Rebased/mergable
  • Tests pass
  • CHANGELOG.md updated

@sranka sranka changed the title 2619/list with template feat(tasks): add template-id to task list Sep 6, 2021
@sranka sranka requested a review from lesam September 6, 2021 05:38
@sranka sranka marked this pull request as ready for review September 6, 2021 05:49
"testing"
"time"

"github.com/google/go-cmp/cmp"
Copy link
Contributor

Choose a reason for hiding this comment

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

Why the library change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

VS.Code linter warned about the usage of reflect.DeepEqual. It was probably a false warning since the reflect.DeepEqual caveats did not apply to the cases used in the test. I appeased the linter, https://pkg.go.dev/github.com/google/go-cmp/cmp should be rather used in tests.

@sranka sranka merged commit cbcd989 into master Sep 8, 2021
@sranka sranka deleted the 2619/list_with_template_id branch September 8, 2021 04:55
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.

GET /kapacitor/v1/tasks does not return task template-id
2 participants