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

[Cases] limit number of attachments that can be created using the bulk create API #161451

Merged

Conversation

js-jankisalvi
Copy link
Contributor

Connected to #146945

Summary

Description Limit Done? Documented?
Total number of attachments that can be created using the bulk create API 100 No

Checklist

Delete any items that are not applicable to this PR.

@js-jankisalvi js-jankisalvi added release_note:breaking Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) Feature:Cases Cases feature v8.10.0 labels Jul 7, 2023
@js-jankisalvi js-jankisalvi requested a review from a team as a code owner July 7, 2023 11:03
@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops (Team:ResponseOps)

@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops-cases (Feature:Cases)

@js-jankisalvi js-jankisalvi self-assigned this Jul 7, 2023
@cnasikas cnasikas added release_note:skip Skip the PR/issue when compiling release notes and removed release_note:breaking labels Jul 7, 2023
owner: 'securitySolutionFixture',
};

const attachments = Array(101).fill(comment);
Copy link
Contributor

Choose a reason for hiding this comment

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

In these integration tests I never know if I wanna just put the value or import the constant(MAX_BULK_CREATE_ATTACHMENTS)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, but I thought it's good that integration tests fail when constant is changed, reminds us what all places we have put this check 😄

Copy link
Contributor

Choose a reason for hiding this comment

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

Keeps us on edge 😆

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Genau 😆

Copy link
Member

Choose a reason for hiding this comment

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

😆 I tend to user the value for the reasons Janki mentioned.

comment: 'Solve this fast!',
type: CommentType.user,
owner: 'cases',
foo: 'bar',
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you remove the foo: 'bar' field that is related to a different error? (I did the same mistake 😄 )

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
cases 146.1KB 146.1KB +84.0B
Unknown metric groups

ESLint disabled line counts

id before after diff
enterpriseSearch 14 16 +2
securitySolution 408 412 +4
total +6

Total ESLint disabled count

id before after diff
enterpriseSearch 15 17 +2
securitySolution 487 491 +4
total +6

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @js-jankisalvi

Copy link
Member

@cnasikas cnasikas left a comment

Choose a reason for hiding this comment

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

LGTM!

@js-jankisalvi js-jankisalvi merged commit cd24dc2 into elastic:main Jul 7, 2023
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Jul 7, 2023
@js-jankisalvi js-jankisalvi deleted the total-attachements-bulk-create branch February 19, 2024 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting Feature:Cases Cases feature release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v8.10.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants