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: Task datasource and fixes #3195

Merged
merged 8 commits into from
Nov 18, 2024

Conversation

sfc-gh-jcieslak
Copy link
Collaborator

@sfc-gh-jcieslak sfc-gh-jcieslak commented Nov 13, 2024

Changes

  • Fixed the need to enclose config with $$
  • Added full datasource support with tests
    • Documentation and examples (v1 candidates; added for resource and datasource)
    • Migration guide (now only for datasource)
    • Extracted schema for regular in filtering
    • Describe wasn't added on purpose, because it seems to mirror values from what we get from the SHOW command (can also add it, but for now it doesn't provide any benefits)

List from previous prs

Copy link

Integration tests failure for ed1251592b98654e893e6603f4492bdfdad5b3c3

@sfc-gh-jcieslak sfc-gh-jcieslak marked this pull request as ready for review November 13, 2024 14:54
Copy link

Integration tests failure for 4ba347973ed7175e8ca566d67653229a1e6619d2

@sfc-gh-asawicki sfc-gh-asawicki self-requested a review November 13, 2024 17:31
MIGRATION_GUIDE.md Show resolved Hide resolved
docs/data-sources/tasks.md Outdated Show resolved Hide resolved
docs/data-sources/tasks.md Outdated Show resolved Hide resolved
docs/resources/task.md Outdated Show resolved Hide resolved
pkg/sdk/tasks_impl_gen.go Show resolved Hide resolved
pkg/datasources/common.go Outdated Show resolved Hide resolved
pkg/datasources/tasks.go Outdated Show resolved Hide resolved
MIGRATION_GUIDE.md Outdated Show resolved Hide resolved
MIGRATION_GUIDE.md Outdated Show resolved Hide resolved
…-fixes

# Conflicts:
#	pkg/datasources/tasks_acceptance_test.go
#	pkg/resources/task_acceptance_test.go
Copy link

Integration tests failure for 584a3ca350378be7ea5893e2bd2aca4ccb89ad88

@sfc-gh-asawicki sfc-gh-asawicki self-requested a review November 18, 2024 10:24
Type: schema.TypeBool,
Optional: true,
Default: true,
Description: "Runs SHOW PARAMETERS FOR TASK for each user returned by SHOW TASK. The output of describe is saved to the parameters field as a map. By default this value is set to true.",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't it be for each task? Also, get rid of describe in the second sentence, as it's confusing with DESCRIBE.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Addressed in: #3202

}
*setField = &sdk.In{Schema: schemaId}
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit (next PR): default return err?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Addressed in: #3202

@sfc-gh-jcieslak sfc-gh-jcieslak merged commit cb27cae into tasks-v1-readiness Nov 18, 2024
8 of 9 checks passed
@sfc-gh-jcieslak sfc-gh-jcieslak deleted the task-datasource-and-fixes branch November 18, 2024 13:24
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.

3 participants