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

Allow to retrieve products which a user has contributed #7

Closed
blazern opened this issue Jan 10, 2022 · 0 comments
Closed

Allow to retrieve products which a user has contributed #7

blazern opened this issue Jan 10, 2022 · 0 comments
Labels
3sp 3 story points
Projects

Comments

@blazern
Copy link
Collaborator

blazern commented Jan 10, 2022

The create_update_product now should accept a parameter edited. The param sill be true when the product is sent from the Init Product Page of the app. Default value should be false.

A new DB table should be created - user_contribution.
Columns:

  • user,
  • time,
  • product_id (nullable),
  • shop_id (nullable),
  • contribution_type (product_edited, product_added_to_shop, product_reported, shop_created)

When product is edited, added to a shop, reported, or a new shop is created (is created in OSM), a new entry should be added to the table.

Add a user_contributions_data cmd, which will:

  • accept a list of contribution types,
  • accept a max param,
  • return a list of user's contributions.
@blazern blazern created this issue from a note in Profile (To do) Jan 10, 2022
@blazern blazern changed the title Add a cmd to retrieve products which the user has contributed Allow to retrieve products which a\ user has contributed Jan 10, 2022
@blazern blazern changed the title Allow to retrieve products which a\ user has contributed Allow to retrieve products which a user has contributed Jan 10, 2022
@blazern blazern added the 3sp 3 story points label Jan 10, 2022
@blazern blazern moved this from To do to In progress in Profile Jan 14, 2022
@blazern blazern closed this as completed Jan 15, 2022
Profile automation moved this from In progress to Done Jan 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3sp 3 story points
Projects
No open projects
Development

No branches or pull requests

1 participant