Skip to content

Align use of sendInvalidate request arguments#1402

Merged
WardenGnaw merged 5 commits intomicrosoft:mainfrom
iAbadia:fix-sendinvalidate-req-args
Jun 28, 2023
Merged

Align use of sendInvalidate request arguments#1402
WardenGnaw merged 5 commits intomicrosoft:mainfrom
iAbadia:fix-sendinvalidate-req-args

Conversation

@iAbadia
Copy link
Contributor

@iAbadia iAbadia commented May 21, 2023

Using the sendInvalidate request I realised that I was forced to provide a single Area as an argument. This PR aligns the behaviour of sendInvalidate request with the invalidate event.

Thanks to @sbobko for his original contribution, I only hope this patch doesn't contradict the original intent of the behaviour of sendInvalidate

- sendInvalidate request arguments now behave like invalidate event.
  - Areas is an array of strings.
  - Areas can be empty, in this case client should assume 'all'.
@iAbadia
Copy link
Contributor Author

iAbadia commented May 25, 2023

Tagging @WardenGnaw since they reviewed the original sendInvalidate request pr.

iAbadia and others added 4 commits May 31, 2023 07:41
Allow sending an empty array of Areas.

Co-authored-by: Andrew Wang <waan@microsoft.com>
Use Collection instead of List

Co-authored-by: Andrew Wang <waan@microsoft.com>
@WardenGnaw WardenGnaw merged commit c8c71f3 into microsoft:main Jun 28, 2023
@WardenGnaw
Copy link
Member

@iAbadia Thank you for contributing this PR.

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.

2 participants