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

Service provider statuses (awaiting confirmation, sent for editing, needs reconfirmation, approved) #955

Open
Lena1708 opened this issue Dec 27, 2022 · 0 comments
Assignees

Comments

@Lena1708
Copy link

Lena1708 commented Dec 27, 2022

As a user I want to be approved by admin so that my workshops are visible on the platform.

Role:
user (service provider)
admin
region admin

Acceptance Criteria
SCENARIO #1 A user registers a new service provider
A user registered a new service provider profile
Users' workshops are not visible on the platform
A users' status is "awaiting confirmation" "очікує підтвердження"
111111

A region admin confirms a registration of a new service provider
The status of a new service provider was changed to "confirmed" "заклад підтверджено"
222222
Users' workshops are now visible on the platform

SCENARIO #2 A users' profile was sent for editing
A user registered a new service provider profile
Users' workshops are not visible on the platform
A users' status is "awaiting confirmation" "очікує підтвердження"
A region admin found mistakes in the users' profile
A users' profile was sent for editing
A users' status is "sent for editing" "потребує редагування"
333333

A user received the notification to edit his profile
Users' workshops are not visible on the platform

SCENARIO #3 A users' profile was resent for editing
A users' status is "confirmed" "заклад підтверджено"
Users' workshops are visible on the platform
A user edited any of the following two fields: "Повна назва організації" or "ЄДРПО"
A users' status is "resent for editing" "потребує повторного підтвердження"
444444

Users' workshops are visible on the platform
A region admin verifies the edited information of the following two fields: "Повна назва організації" or "ЄДРПО"

Epic link
E.g.: Epic #100 Epic

Labels to be added
"User story", Correspondind Functionality (e.g. User), Priority ("pri: "), "Corresponding Epic"

Tasks

    • sample task.
@NazarYavor26 NazarYavor26 self-assigned this Dec 31, 2022
DmyMi pushed a commit that referenced this issue Feb 21, 2023
* Added property ProviderStatus in WorkshopDTO and mapping for it from Workshop model

* Added propperty ProviderStatus to WorkshopES model

* Added term query for ProviderStatus in ESWorkshopProvider

* Added Recheck to ProviderStatus enum

* Added check if the ProbiderStatus is Recheck in PredicateBuild method in WorkshopService

* Added check if the ProviderStatus is Recheck in CreateQueryFromFilter method in ESWorkshopProvider

* Replaced Panding provider status into Recheck in GetNotificationsRecipientIds method in ProviderService. Created and added method GetRegionAdminsIds

* Added mocks of IRegionAdminRepository in integration and unit tests for ProviderService

* Fixed ProviderServiceTests for new enum item Recheck

* Deleted unnecessary comments from method GetNotificationsRecipientIds in ProviderService

* Fixed additional enter before test name

* Fixed WorkshopService after rebase develop

* Moved enum ProviderStatus to Common project

* Changed namespace of ProviderStutus

* Added EnumDataType attribute for ProviderStatus property in WorkshopDTO

* Fixed method GetRegionAdminsIds in ProviderService

* Added synchronization with Elasticsearch for UpdateStatus method in ProviderService

* Added synchronization with Elasticsearch for UpdateProviderWithActionBeforeSavingChanges method in ProviderService if ProviderStatus was changed
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

3 participants