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

[maintenance]: optimize token for Postgre #35

Merged
merged 2 commits into from
Jun 1, 2022
Merged

[maintenance]: optimize token for Postgre #35

merged 2 commits into from
Jun 1, 2022

Conversation

Eugentis
Copy link

In current state you can use getPayload method for Token only once - stream exists only for first call.

It is not correct. It is possible to use optimized structure

@butschster butschster requested a review from roxblnfk May 31, 2022 11:34
@codecov
Copy link

codecov bot commented May 31, 2022

Codecov Report

Merging #35 (ca54647) into master (4fe2dab) will increase coverage by 0.27%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master      #35      +/-   ##
============================================
+ Coverage     66.90%   67.18%   +0.27%     
- Complexity      420      423       +3     
============================================
  Files            51       51              
  Lines          1097     1103       +6     
============================================
+ Hits            734      741       +7     
+ Misses          363      362       -1     
Impacted Files Coverage Δ
src/Auth/Token.php 92.59% <100.00%> (+6.87%) ⬆️

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 4fe2dab...ca54647. Read the comment docs.

@butschster
Copy link
Member

Hi @Eugentis !

Thank you for PR. Could you please cover it with unit tests?

@Eugentis
Copy link
Author

I am not sure I can provide tests for bytea fields (Postgre)....

@butschster butschster merged commit fa8e11d into spiral:master Jun 1, 2022
@butschster butschster added bug Something isn't working enhancement New feature or request labels Jun 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants