Skip to content

Conversation

Aschen
Copy link
Contributor

@Aschen Aschen commented Oct 2, 2021

What does this PR do ?

Since Kuzzle 2.14.1, the security:searchProfiles action can take a search query.

This PR update the SDK and doc to support this.

Other changes

  • allows custom properties into profile object

@Aschen Aschen self-assigned this Oct 2, 2021
@codecov
Copy link

codecov bot commented Oct 3, 2021

Codecov Report

Merging #667 (a9a8b71) into 7-dev (bbbad2e) will increase coverage by 0.41%.
The diff coverage is 52.15%.

❗ Current head a9a8b71 differs from pull request most recent head 79477c1. Consider uploading reports for the commit 79477c1 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##            7-dev     #667      +/-   ##
==========================================
+ Coverage   83.40%   83.81%   +0.41%     
==========================================
  Files          36       39       +3     
  Lines        1766     1885     +119     
  Branches      324      343      +19     
==========================================
+ Hits         1473     1580     +107     
- Misses        227      237      +10     
- Partials       66       68       +2     
Impacted Files Coverage Δ
src/controllers/Bulk.ts 57.14% <0.00%> (ø)
src/controllers/Index.ts 75.00% <0.00%> (ø)
src/controllers/Document.ts 69.00% <8.69%> (ø)
src/controllers/Security.ts 69.10% <12.72%> (ø)
src/controllers/Collection.ts 75.86% <14.28%> (ø)
src/controllers/Realtime.ts 87.87% <25.00%> (ø)
src/controllers/Auth.ts 78.35% <26.31%> (ø)
src/core/searchResult/RealtimeDocument.ts 76.47% <76.47%> (ø)
src/core/Observer.ts 91.01% <91.01%> (ø)
src/Kuzzle.ts 85.96% <91.66%> (+0.20%) ⬆️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update af1a1aa...79477c1. Read the comment docs.

from: undefined,
size: undefined,
scroll: undefined
opt: 'in'
Copy link
Member

Choose a reason for hiding this comment

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

I personally prefer to add a test than to modify an existing one even if you copy/paste it

@@ -1067,8 +1065,7 @@ describe('Security Controller', () => {
controller: 'security',
action: 'searchRoles',
body: {controllers: ['foo', 'bar']},
from: undefined,
size: undefined
opt: 'in',
Copy link
Member

Choose a reason for hiding this comment

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

I personally prefer to add a test than to modify an existing one even if you copy/paste it

@Aschen Aschen added this to the 7.8.0 milestone Dec 6, 2021
@Aschen Aschen merged commit 3df5d92 into 7-dev Jan 12, 2022
@Aschen Aschen deleted the support-search-profile-new branch January 12, 2022 16:00
@Aschen Aschen mentioned this pull request Jan 27, 2022
Aschen added a commit that referenced this pull request Jan 27, 2022
# [7.8.3](https://github.com/kuzzleio/sdk-javascript/releases/tag/7.8.3) (2022-01-27)


#### Bug fixes

- [ [#683](#683) ] Fix authenticator token verification   ([Shiranuit](https://github.com/Shiranuit))

#### Enhancements

- [ [#680](#680) ] Add debug mode   ([Aschen](https://github.com/Aschen))
- [ [#676](#676) ] Add HTTP protocol support for Observer   ([Aschen](https://github.com/Aschen))
- [ [#667](#667) ] Support entire query for security:searchProfiles   ([Aschen](https://github.com/Aschen))
- [ [#669](#669) ] Add more context to errors   ([clementbolin](https://github.com/clementbolin))

#### Others

- [ [#674](#674) ] Add types for mRequests and mResponses   ([Aschen](https://github.com/Aschen))
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants