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

Remove Paypal plugin #309

Open
wants to merge 42 commits into
base: development
Choose a base branch
from

Conversation

odkhang
Copy link
Collaborator

@odkhang odkhang commented Aug 29, 2024

Implements of this PR:

  1. Remove paypal plugin from the source code.
  2. Add paypal plugin as external plugin for docker deployment

https://github.com/fossasia/eventyay-tickets-paypal

Summary by Sourcery

Remove the PayPal plugin from the source code and configure it as an external plugin for Docker deployment. Update the project dependencies to handle the PayPal plugin externally using a GitHub token.

Deployment:

  • Add PayPal plugin as an external plugin for Docker deployment.

AviGawande and others added 6 commits August 15, 2024 15:42
* Add plugins to autodeployment with docker
* Implement option to add link to privacy policy
* add footer link for event + organizer
* Replace pkg_resources with import importlib_metadata
* Do not repeat questions in form field of ticket form
Copy link

sourcery-ai bot commented Aug 29, 2024

Reviewer's Guide by Sourcery

This pull request removes the PayPal plugin from the source code and prepares it to be used as an external plugin for Docker deployment. The changes primarily involve updating dependency management and removing PayPal-related files from the project structure.

File-Level Changes

Change Details Files
Update dependency management to remove PayPal plugin and prepare for external usage
  • Remove eventyay-paypal dependency when github_token is not provided
  • Add logic to update eventyay-paypal dependency with github_token when present
  • Modify existing eventyay-stripe dependency update logic
src/set_github_token.py
Remove PayPal plugin from the list of installed apps
  • Remove 'pretix.plugins.paypal' from the INSTALLED_APPS list
src/pretix/settings.py
Remove all PayPal plugin related files from the project
  • Delete PayPal plugin Python files (payment.py, views.py, signals.py, apps.py, urls.py, models.py)
  • Remove PayPal plugin migration files
  • Delete PayPal plugin template files
src/pretix/plugins/paypal/payment.py
src/pretix/plugins/paypal/views.py
src/pretix/plugins/paypal/signals.py
src/pretix/plugins/paypal/apps.py
src/pretix/plugins/paypal/urls.py
src/pretix/plugins/paypal/migrations/0002_initial.py
src/pretix/plugins/paypal/migrations/0001_initial.py
src/pretix/plugins/paypal/models.py
src/pretix/plugins/paypal/templates/pretixplugins/paypal/redirect.html
src/pretix/plugins/paypal/templates/pretixplugins/paypal/control.html
src/pretix/plugins/paypal/templates/pretixplugins/paypal/pending.html
src/pretix/plugins/paypal/templates/pretixplugins/paypal/action_overpaid.html
src/pretix/plugins/paypal/templates/pretixplugins/paypal/action_double.html
src/pretix/plugins/paypal/templates/pretixplugins/paypal/action_refund.html
src/pretix/plugins/paypal/templates/pretixplugins/paypal/checkout_payment_confirm.html
src/pretix/plugins/paypal/templates/pretixplugins/paypal/checkout_payment_form.html

Tips
  • Trigger a new Sourcery review by commenting @sourcery-ai review on the pull request.
  • Continue your discussion with Sourcery by replying directly to review comments.
  • You can change your review settings at any time by accessing your dashboard:
    • Enable or disable the Sourcery-generated pull request summary or reviewer's guide;
    • Change the review language;
  • You can always contact us if you have any questions or feedback.

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @odkhang - I've reviewed your changes - here's some feedback:

Overall Comments:

  • Consider refactoring the dependency handling code in set_github_token.py to reduce duplication between Stripe and PayPal logic.
  • The PR description mentions adding PayPal as an external plugin for Docker deployment, but there are no visible changes related to Docker configuration. Could you clarify if additional changes are needed to complete this transition?
Here's what I looked at during the review
  • 🟢 General issues: all looks good
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

lcduong and others added 22 commits September 19, 2024 11:38
* implement customer feature
* implement customer SSO provider & client
* add docs for customer functions
* Use master branch in docker-pr workflow

* Update workflow test postgres version to 12
… before (fossasia#277)

* implement script to create customer account for customer placed order before
* update popup content when user join online event
* update join_online_event placeholder

* update mobile view for ticket layout
fossasia#289)

* add space between notification and header

* update translation for menu bar

* remove duplicate messageid
* update translation for user dropdown menu
* update dummy data and update link to eventyay.com

* update git workflow

* update docs

---------

Co-authored-by: lcduong <[email protected]>
lcduong and others added 11 commits September 19, 2024 11:40
* Unified QR response

* Added EventName to the Unified QR field
* implement sso login feature

* format code

* implement eventyay-common
implement page organizer/team to create/update/delete organizer/team

* implement organizer/team create/update/delete
* set base path using force_script_name

* get base_path from config file

* add slash for media url

* remove hard code url with url template
* implement sso login feature

* format code

* implement eventyay-common
implement page organizer/team to create/update/delete organizer/team

* implement organizer/team create/update/delete

* implement common event create/update

* implement common event create/update

* fix isort
* set base path using force_script_name

* get base_path from config file

* add slash for media url

* remove hard code url with url template

* default base_path is /tickets

* update base_path for account dropdown menu
Copy link
Member

@mariobehling mariobehling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

399 files are changed. Only include the file changes which are related to Paypal, please!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants