-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7b2afa1
commit fb45778
Showing
3 changed files
with
56 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,42 @@ | ||
--- | ||
name: user story | ||
about: this template is for user stories | ||
title: '' | ||
labels: '' | ||
name: Implement Subscribe/Unsubscribe Service | ||
about: Add a subscription/unsubscription service to the project | ||
title: 'Implement Subscribe/Unsubscribe Service for Users' | ||
labels: enhancement, service | ||
assignees: manupanand | ||
|
||
milestone: 'Version 1.0' | ||
estimate: 5 | ||
--- | ||
|
||
**As a** [role] | ||
**I need** [function] | ||
**So that** [benefit] | ||
|
||
### Details and Assumptions | ||
* [document what you know] | ||
|
||
### Acceptance Criteria | ||
|
||
```gherkin | ||
Given [some context] | ||
When [certain action is taken] | ||
Then [the outcome of action is observed] | ||
``` | ||
## Description | ||
The goal is to implement a service that allows users to subscribe and unsubscribe from notifications, newsletters, or other services. This service should handle user actions and maintain their subscription status. | ||
|
||
## Acceptance Criteria | ||
|
||
**Given** a user is logged in, | ||
**When** the user subscribes to a service, | ||
**Then** the user's subscription status is updated to "subscribed". | ||
|
||
**Given** a user is logged in, | ||
**When** the user unsubscribes from a service, | ||
**Then** the user's subscription status is updated to "unsubscribed". | ||
|
||
**Given** a user subscribes, | ||
**When** the subscription action is successful, | ||
**Then** a confirmation notification is sent to the user. | ||
|
||
**Given** a user unsubscribes, | ||
**When** the unsubscription action is successful, | ||
**Then** a confirmation notification is sent to the user. | ||
|
||
## Assumptions: | ||
- The user has already been authenticated in the system. | ||
- The service will use a database to store user subscription statuses. | ||
- The service will be integrated with an email/SMS notification system to notify users on subscription changes. | ||
|
||
## Additional Notes: | ||
- Ensure proper validation for user input (e.g., preventing a user from subscribing multiple times without unsubscribing). | ||
- Consider scalability for handling large numbers of users. | ||
|
||
## Estimated Time: 5 hours | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
echo adding files to staging | ||
git add . | ||
echo what is this commit for ? | ||
read commit | ||
git commit -m "${commit}" | ||
echo staged, pushing to main $commit | ||
git push origin main | ||
git status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters