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

feat: storage calls without user session #836

Closed

Conversation

yknl
Copy link
Contributor

@yknl yknl commented Oct 20, 2020

This PR allows storage calls without having a signed in user session.

#802

For details refer to issue #123

Type of Change

  • New feature
  • Bug fix
  • API reference/documentation update
  • Other

Does this introduce a breaking change?

No

Are documentation updates required?

No

Testing information

Checklist

  • Code is commented where needed
  • Unit test coverage for new or modified code paths
  • npm run test passes
  • Changelog is updated
  • Tag 1 of @yknl or @zone117x for review

@codecov
Copy link

codecov bot commented Oct 20, 2020

Codecov Report

Merging #836 into feature/monorepo-refactor will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@                      Coverage Diff                      @@
##           feature/monorepo-refactor     #836      +/-   ##
=============================================================
- Coverage                      77.11%   77.10%   -0.02%     
=============================================================
  Files                             72       72              
  Lines                           4318     4320       +2     
  Branches                         762      763       +1     
=============================================================
+ Hits                            3330     3331       +1     
- Misses                           952      953       +1     
  Partials                          36       36              
Impacted Files Coverage Δ
src/storage.ts 82.74% <0.00%> (-0.24%) ⬇️

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 5a321ae...bb03e90. Read the comment docs.

@yknl yknl linked an issue Oct 20, 2020 that may be closed by this pull request
@yknl yknl requested review from agraebe, aulneau, hstove and markmhendrickson and removed request for agraebe October 22, 2020 00:49
@markmhendrickson
Copy link

This change seems straightforward enough. @yknl do you want me to test this as an integration in my app specifically or are you confident it'll work there?

@yknl
Copy link
Contributor Author

yknl commented Oct 22, 2020

@markmhx Yes, we can wait until you've had a chance to test it with your app, just want to make sure it resolves the issue for you.

Copy link
Contributor

@hstove hstove left a comment

Choose a reason for hiding this comment

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

Would love to see a test here but 👍

@markmhendrickson
Copy link

It appears that the userSession object is always available in this function, even if there's no actual session with related userData available. As such this conditional doesn't catch the lack of user data before reaching the need to retrieve a coreNode value on line 1321:

Screen Shot 2020-11-11 at 21 02 22

Copy link

@markmhendrickson markmhendrickson left a comment

Choose a reason for hiding this comment

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

This conditional doesn't seem to resolve the underlying problem with calling this function when no session user data is available.

@markmhendrickson
Copy link

This appears to be affecting the todos app as well hirosystems/todos#55

@agraebe
Copy link
Contributor

agraebe commented Jan 26, 2021

closing this for now. please re-open if you think this requires attention. if you re-open, please also suggest who could help resolve and carry it to the finish line 🙏🏼

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.

4 participants