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

Customer plan gets auto updated in the Self Care portal #22

Open
ashendes opened this issue May 22, 2023 · 1 comment
Open

Customer plan gets auto updated in the Self Care portal #22

ashendes opened this issue May 22, 2023 · 1 comment

Comments

@ashendes
Copy link
Contributor

Description:
In the Customer Self Care Portal, the user's mobile plan should only get updated if they decide to switch to a different plan manually. But currently, the mobile plan gets auto updated depending on the Usage data.

Steps to reproduce:

  1. Create user and login to self care portal.
  2. Observe user's mobile plan on the Home page
  3. (Manually add usage data by invoking the Usage data API)
  4. Observe user's mobile plan on the Home page
@chaminjay
Copy link

This issue occurs as a result of following reasons.

  1. Upon registration with Kfone, users are not automatically granted a subscription to a plan, hence no usage data is provided as well.
  2. Therefore, /getUsageData API call gives an error.
image
  1. To resolve this issue, in the UI level there is a fallback data object to populate usage data and subscription details.
    MyPlan.jsx#L92

  2. That's the reason Kfone Lite is displayed initially.

  3. This gets changed once /createUsageData API is called as it allocates a subscription plan and usage data for the user.

  4. Therefore, the subscription plan will be displayed in the UI accordingly after that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants