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

Implement Edit Free Subscription Plan Functionality in Superadmin (Backend) #1433

Open
OluwatimileyinO opened this issue Aug 24, 2024 · 0 comments

Comments

@OluwatimileyinO
Copy link

Description

Implement the backend functionality to support the editing of free plan subscription by the Superadmin. This includes creating endpoints that allow the Superadmin to modify free plan details such as the name, price, project size, file uploads, user accounts, and teams. The backend must ensure that changes are correctly stored and validated.

User Story

As a Superadmin, I want to be able to edit free subscription plans, so I can update the plan details as needed.

Requirements

  • Create a dedicated API endpoint that handles the update of free subscription plan details. This endpoint should accept input for fields such as plan name, price, project size, file uploads, user accounts, and teams.
  • Implement validation logic to ensure that the modified details meet all necessary criteria before updating the subscription plan. This includes checking for correct data types, required fields, and any business rules.
  • Ensure that the updated plan details are correctly stored in the database, reflecting the changes made by the Superadmin.
  • Implement error handling to manage any issues that may arise during the update process. This includes returning appropriate error messages if the update fails due to validation errors or other issues.

Acceptance Criteria

  • The API endpoint correctly updates the subscription plan details in the database when valid input is provided.
  • Validation logic is in place to ensure that all fields are correctly formatted and meet required criteria.
  • The backend returns a success response when the plan is successfully updated.
  • If an error occurs during the update, an appropriate error message is returned to the frontend.

Expected Outcome

The backend supports the editing of subscription plans, allowing the Superadmin to modify plan details with changes correctly reflected in the system. Errors during the update process are properly managed and communicated.

Link - https://www.figma.com/design/VEItfX6St5NSAqqNHImcxD/HNG-Boilerplate-Designs?node-id=34424-32314&t=BRT0B1hhCgta0BxE-4

Picture -
Screenshot (111)

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

No branches or pull requests

1 participant