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

Support adding items to cart without logging in #156

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

ks1990cn
Copy link

@ks1990cn ks1990cn commented Jan 11, 2024

closes #27 , changes are related to WebApp.

I want to propose an idea to store cart objects into session untill user log-in. When user log-in, this session cart will be converted into redis cart for user.

@ks1990cn ks1990cn marked this pull request as ready for review January 14, 2024 13:16
@ks1990cn
Copy link
Author

@captainsafia are you going to review this or anyone else will continue with review process? 😕

@captainsafia captainsafia changed the title Issue27 Support adding items to cart without logging in Jan 16, 2024
@captainsafia
Copy link
Member

@ks1990cn Considering the scope of this change, we may want to incorporate other reviewers in here, but I can take a look for now.

Have you verified that this works end-to-end? I'm not able to checkout after adding an item to the cart while being logged out.

@ks1990cn
Copy link
Author

ks1990cn commented Jan 17, 2024

@ks1990cn Considering the scope of this change, we may want to incorporate other reviewers in here, but I can take a look for now.

Have you verified that this works end-to-end? I'm not able to checkout after adding an item to the cart while being logged out.

Correct me if I misunderstood, as per issue #27 , we should be able to add item to cart when user is not logged-in. User need to log-in before check out. On this functionality I have worked on.

Testing27

@captainsafia
Copy link
Member

Correct me if I misunderstood, as per issue #27 , we should be able to add item to cart when user is not logged-in. User need to log-in before check out. On this functionality I have worked on.

Thanks for sharing the recording. For whatever reason, I don't see the same behavior when I repro locally. The "Checkout" button doesn't redirect to the login page...

@ks1990cn
Copy link
Author

Correct me if I misunderstood, as per issue #27 , we should be able to add item to cart when user is not logged-in. User need to log-in before check out. On this functionality I have worked on.

Thanks for sharing the recording. For whatever reason, I don't see the same behavior when I repro locally. The "Checkout" button doesn't redirect to the login page...

I am not sure, can you ask anyone else to try this?

@ks1990cn
Copy link
Author

Correct me if I misunderstood, as per issue #27 , we should be able to add item to cart when user is not logged-in. User need to log-in before check out. On this functionality I have worked on.

Thanks for sharing the recording. For whatever reason, I don't see the same behavior when I repro locally. The "Checkout" button doesn't redirect to the login page...

I am not sure, can you ask anyone else to try this?

Take recent code changes, I have made commits after our last comments!! @captainsafia

@ks1990cn
Copy link
Author

@captainsafia I am waiting for PR review again🥺🥺, is there any luck with running it locally?

Copy link
Member

@captainsafia captainsafia left a comment

Choose a reason for hiding this comment

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

I realized why it was failing to redirect to the login page -- seems to be an issue with my browser and not the code change.

Tagging @mgravell to sanity check the use of distributed caching here.

src/WebApp/Components/Layout/CartMenu.razor Outdated Show resolved Hide resolved
src/WebApp/Components/Pages/Cart/CartPage.razor Outdated Show resolved Hide resolved
src/WebApp/Components/Pages/Item/ItemPage.razor Outdated Show resolved Hide resolved
@ks1990cn
Copy link
Author

ks1990cn commented Jan 24, 2024

@captainsafia can you please review again, made requested changes?

@ks1990cn
Copy link
Author

ks1990cn commented Mar 4, 2024

@jamesmontemagno @adityamandaleeka Looks like you also work on this repo, can you review this if @captainsafia is no more looking in this PR.

Just wanted to know till when I can expect review again? I'm so excited to continue contribution on this!

@ks1990cn
Copy link
Author

Hii @captainsafia , will you gonna see this PR again? It's been long time now

@captainsafia
Copy link
Member

captainsafia commented Apr 23, 2024

@ks1990cn Thanks for your eagerness here, Tanmay! At the moment, we're trying to prioritize bug fixes and quality improvements on eShop before taking new features so we'd like to hold off on merging this change at the moment.

@cwash05
Copy link

cwash05 commented May 20, 2024

@captainsafia any update on this pr? this feature is very much needed for my scenario.

@adityamandaleeka
Copy link
Member

@cwash05 As @captainsafia mentioned above, we're prioritizing quality/fixes in this project for now so we are holding off on adding functionality.

It's not clear what you mean by this being needed for your scenario. This PR has no impact on the product capabilities of ASP.NET Core, Aspire, or any other technology we ship; this repo/project is merely a sample.

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.

Add items to cart without logging in
4 participants