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: add falcon_detection_details datasource #252

Merged
merged 2 commits into from
Oct 23, 2024

Conversation

anasmuhmd
Copy link
Contributor

@anasmuhmd anasmuhmd commented Oct 17, 2024

2/#243

Copy link
Contributor

@Andrew-Morozko Andrew-Morozko left a comment

Choose a reason for hiding this comment

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

LGTM, just a tiny nitpick regarding the "size" argument

Comment on lines 32 to 35
Name: "size",
Type: cty.Number,
Constraints: constraint.Integer | constraint.RequiredNonNull,
Doc: "limit the number of queried items",
Copy link
Contributor

@Andrew-Morozko Andrew-Morozko Oct 17, 2024

Choose a reason for hiding this comment

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

Perhaps the size should have a default value

Suggested change
Name: "size",
Type: cty.Number,
Constraints: constraint.Integer | constraint.RequiredNonNull,
Doc: "limit the number of queried items",
Name: "limit",
Type: cty.Number,
Constraints: constraint.Integer | constraint.NonNull,
Doc: "Maximum number of returned items",
DefaultVal: cty.NumberIntVal(50),
MinInclusive: cty.NumberIntVal(1),

I guess that having a default limit would be a bit neater from the UX standpoint, as well as naming it "limit" rather than "size". @traut what do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree, let me update all prs

@traut traut merged commit b9889ab into blackstork-io:main Oct 23, 2024
7 of 8 checks passed
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