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

Old data is not deleted #42

Closed
zalito12 opened this issue Nov 4, 2024 · 3 comments
Closed

Old data is not deleted #42

zalito12 opened this issue Nov 4, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@zalito12
Copy link

zalito12 commented Nov 4, 2024

Description

When working with test data you can clear all data from dashboard, but the plugin does not clear all the models from db when sync.
It happens with

  • customers
  • invoces

Steps to reproduce

  1. Sync your data from stripe
  2. Clear your test data
  3. Sync again and old (non existing) invoces are not deleted from db

Additional info

  • Craft version: 5.4.9
  • PHP version: 8.2
  • Database driver & version: Mysql
  • Plugins & versions: 1.1.0
@zalito12 zalito12 added the bug Something isn't working label Nov 4, 2024
@zalito12 zalito12 changed the title Old invoces not deleted Old data is not deleted Nov 4, 2024
@i-just i-just self-assigned this Nov 8, 2024
@i-just
Copy link
Contributor

i-just commented Nov 8, 2024

Hi, thanks for reporting! I just raised a PR that adds a CLI command to clear all the plugin's data, which can be used e.g. after deleting the test data in Stripe dashboard.

@zalito12
Copy link
Author

zalito12 commented Nov 8, 2024

Do you think this could happen in a production enviroment? Having duplicated subs it's very confusing

@i-just
Copy link
Contributor

i-just commented Nov 20, 2024

Stripe 1.3.0 is out with the new stripe/data/reset command.

@i-just i-just closed this as completed Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants