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

Data model issue in Fulfillment #51

Open
zoyaashik opened this issue Mar 7, 2024 · 3 comments
Open

Data model issue in Fulfillment #51

zoyaashik opened this issue Mar 7, 2024 · 3 comments
Assignees
Labels
architecture Architecture / Design bug Something isn't working strapi-plugins plugins for strapi

Comments

@zoyaashik
Copy link
Contributor

zoyaashik commented Mar 7, 2024

Description
During testing across multiple domains, an issue was discovered where item fulfilment details were not populating. Further investigation revealed that the issue stemmed from the fulfilment's relationship configuration. it was found that assigning a fulfilment to a new provider causes its association with the previous provider to vanish due to the current relationship setup.

Goals
The fulfilment details needs to be populated from Strapi for all providers

Expected Outcome
Provider needs to have fulfilment details

Acceptance Criteria
Make Datamodel to accept fulfilment details for all providers

Implementation Details
N/A

Mockups / Wireframes
N/A


[Please note that the following section of the ticket must adhere to the specified format as it is crucial for proper project listing. Please select only the options mentioned under the headings where applicable.]

Product Name
Strapi plugin

Project Name
Strapi plugin

Tech Skills Needed:
Strapi

Complexity
Medium

Category
Test

Sub Category
Testing

@zoyaashik zoyaashik self-assigned this Mar 7, 2024
@zoyaashik
Copy link
Contributor Author

The existing data model has a "Provider belongs to Many" relationship with fulfilment, which does not allow the same fulfilment to be assigned to multiple providers. Initially, it was suggested to make fulfilment a master table to enable its assignment to various providers, but this approach did not support assigning the same agent to each fulfilment across different providers. To resolve this, it was decided to move the agent ID column from the Fulfilment table to the Item Fulfilment table, linking agents to individual items instead.

CC @vishi24 @em-abee

@zoyaashik zoyaashik added bug Something isn't working strapi-plugins plugins for strapi architecture Architecture / Design labels Mar 7, 2024
@zoyaashik
Copy link
Contributor Author

Following our conversation, we've agreed to establish a new master table for fulfillment, which will include a column for fulfillment type rates. Additionally, a provider fulfillment table will be created and linked to the provider table, allowing each provider to be associated with multiple fulfillment options.

@vishi24
Copy link
Collaborator

vishi24 commented Mar 15, 2024

@zoyaashik , please attach proof of work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
architecture Architecture / Design bug Something isn't working strapi-plugins plugins for strapi
Projects
None yet
Development

No branches or pull requests

2 participants