Skip to content

Conversation

@inform880
Copy link
Contributor

What does this PR do ?

This PR converts the security.js to a TypeScript file in order to get autocompletion.

How should this be manually tested?

  • Step 1 :
  • Step 2 :
  • Step 3 :

Other changes

Boyscout

Copy link
Contributor

@Aschen Aschen left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution!

Can you remove the original SecurityController.js file from the repo since it's a generated file now please?

Also, you should add this file to the .eslintignore and .gitignore files.

@codecov
Copy link

codecov bot commented Sep 17, 2021

Codecov Report

Merging #663 (8d64ae2) into master (49288ba) will decrease coverage by 2.53%.
The diff coverage is 52.94%.

❗ Current head 8d64ae2 differs from pull request most recent head 88eb412. Consider uploading reports for the commit 88eb412 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master     #663      +/-   ##
==========================================
- Coverage   85.94%   83.40%   -2.54%     
==========================================
  Files          36       36              
  Lines        1715     1766      +51     
  Branches      314      324      +10     
==========================================
- Hits         1474     1473       -1     
- Misses        179      227      +48     
- Partials       62       66       +4     
Impacted Files Coverage Δ
src/Kuzzle.ts 85.75% <ø> (ø)
src/controllers/Security.ts 69.10% <52.94%> (ø)

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 49288ba...88eb412. Read the comment docs.

@inform880
Copy link
Contributor Author

@Aschen Do I have to worry about some of the checks failing, not sure if I have more changes I have to make?

@Aschen
Copy link
Contributor

Aschen commented Sep 20, 2021

@Aschen Do I have to worry about some of the checks failing, not sure if I have more changes I have to make?

No it's because your PR came from a fork so the of the secrets we are using in our CI are not present.

@Aschen Aschen merged commit bbbad2e into kuzzleio:master Sep 20, 2021
@Aschen Aschen changed the title Added security types Convert Security Controller to Typescript Sep 20, 2021
@inform880 inform880 deleted the feature/convert-security-module-to-typescript branch September 20, 2021 17:04
@Aschen Aschen mentioned this pull request Sep 21, 2021
Aschen added a commit that referenced this pull request Sep 21, 2021
# [7.7.6](https://github.com/kuzzleio/sdk-javascript/releases/tag/7.7.6) (2021-09-21)


#### Enhancements


- [ [#663](#663) ] Convert Security Controller to Typescript   ([inform880](https://github.com/inform880))

#### Bug fixes

- [ [#664](#664) ] Fix reconnectionError not emittend when authenticator is missing   ([Shiranuit](https://github.com/Shiranuit))
---
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