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

Move API Keys to Admin from settings file. #1993

Open
wants to merge 92 commits into
base: master
Choose a base branch
from

Commits on Aug 8, 2023

  1. Delete current migrations

    jleclanche committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    37f83f0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ef97824 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6d803ff View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2023

  1. Fix error creating WebhookEndpoint in admin panel

    sqlite3.IntegrityError: NOT NULL constraint failed: djstripe_webhookendpoint.tolerance
    
    Fixes #1955
    PabloCastellano authored and jleclanche committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    470924b View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2023

  1. Configuration menu
    Copy the full SHA
    6021f91 View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2023

  1. Use for default tolerance stripe.Webhook.DEFAULT_TOLERANCE

    Instead djstripe_settings.WEBHOOK_TOLERANCE, since it was removed (#1967)
    KvyatkovskyAleksey committed Aug 13, 2023
    Configuration menu
    Copy the full SHA
    07b1b73 View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2023

  1. Pass down kwargs to Invoice.pay() (#1968)

    * Updated BaseInvoice.retry to accept kwargs
    
    This was done so that kwargs can be passed down to
    Invoice.pay()
    
    * Updated Customer.send_invoice method
    
    This was done so that kwargs could be passed down to
    Invoice.pay().
    
    * Formatting fix
    
    * Updated docs
    arnav13081994 authored and jleclanche committed Aug 15, 2023
    Configuration menu
    Copy the full SHA
    e9c55b5 View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2023

  1. Configuration menu
    Copy the full SHA
    ee04b2e View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2023

  1. Configuration menu
    Copy the full SHA
    71d6064 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ac1cc35 View commit details
    Browse the repository at this point in the history
  3. Update decimal places and max digits

    Supercedes #1786
    jleclanche committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    8f2f30c View commit details
    Browse the repository at this point in the history
  4. Make admin read-only by default

    Closes #1947
    jleclanche committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    0c29bd7 View commit details
    Browse the repository at this point in the history
  5. Fix minor typing errors

    jleclanche committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    bfab770 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5b4621b View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a3a33ed View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    2296c77 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    0acf98e View commit details
    Browse the repository at this point in the history
  10. 3 Configuration menu
    Copy the full SHA
    36f463d View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    c9698c2 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    d2c2615 View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2023

  1. Fix typing error

    arnav13081994 committed Sep 2, 2023
    Configuration menu
    Copy the full SHA
    9588706 View commit details
    Browse the repository at this point in the history
  2. Formatting fixes

    arnav13081994 committed Sep 2, 2023
    Configuration menu
    Copy the full SHA
    4606de9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    080434c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1bd157c View commit details
    Browse the repository at this point in the history
  5. Remove incorrect tests

    arnav13081994 committed Sep 2, 2023
    Configuration menu
    Copy the full SHA
    edbc910 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0382277 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    91e899a View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    281eb5d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    e65bfdf View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    41cd066 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    1bf0645 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    a04f2ba View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    6d90c2d View commit details
    Browse the repository at this point in the history
  14. Remove support for non-id foreign keys

    Closes #512
    jleclanche committed Sep 2, 2023
    Configuration menu
    Copy the full SHA
    d87f609 View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2023

  1. Configuration menu
    Copy the full SHA
    647bd60 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    317ee92 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d1fbb87 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    81e35b9 View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2023

  1. Removed old style webhooks (#1980)

    * Removed old style webhooks without uuid
    
    * Updated ProcessWebhookView.post to make uuid required
    
    * Made WebhookEndpoint.djstripe_uuid field non nullable
    
    * Updated WebhookEventTrigger.from_request to always get a WebhookEndpoint
    
    * Updated changelog
    arnav13081994 committed Sep 5, 2023
    Configuration menu
    Copy the full SHA
    eb0f269 View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2023

  1. Configuration menu
    Copy the full SHA
    a2bcce2 View commit details
    Browse the repository at this point in the history
  2. Added WebhookEndpointAdminBaseForm.add_endpoint_tolerance

    This was done because tolerance was not getting populated from
    either the Create or Edit forms as it is not a Stripe field but
    a Dj-stripe field.
    arnav13081994 committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    9f70923 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    598a986 View commit details
    Browse the repository at this point in the history
  4. Updated webhooks module to use webhookendpoint's tolerance

    Earlier it was using the global default.
    arnav13081994 committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    d5b09f7 View commit details
    Browse the repository at this point in the history
  5. Minor Refactoring

    arnav13081994 committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    5ccd32b View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2023

  1. Configuration menu
    Copy the full SHA
    4518f11 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    448f891 View commit details
    Browse the repository at this point in the history
  3. Added djstripe_data JSON field

    arnav13081994 authored and jleclanche committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    e00acf9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4f3908c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f9d2f40 View commit details
    Browse the repository at this point in the history
  6. Updated changelog

    arnav13081994 authored and jleclanche committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    938b321 View commit details
    Browse the repository at this point in the history
  7. Updated changelog

    arnav13081994 authored and jleclanche committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    bda5e20 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    b0a4981 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    09ec0f8 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    5446a86 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    6b8eae5 View commit details
    Browse the repository at this point in the history
  12. Removed unnecessary test

    arnav13081994 authored and jleclanche committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    23f7177 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    a92cb9f View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    0dee624 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    d5a47e3 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    3a5ba79 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    7d66705 View commit details
    Browse the repository at this point in the history
  18. Added WebhookEndpointAdminBaseForm.add_endpoint_validation_method to …

    …populate method during create and edit operations
    arnav13081994 authored and jleclanche committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    242c36f View commit details
    Browse the repository at this point in the history
  19. Updated WebhookEventTrigger.validate to use endpoint validation metho…

    …d instead of global setting
    arnav13081994 authored and jleclanche committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    32d557d View commit details
    Browse the repository at this point in the history
  20. Updated WebhookEndpoint._attach_objects_hook to correctly update the …

    …djstripe_validation_method field
    arnav13081994 authored and jleclanche committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    fefe269 View commit details
    Browse the repository at this point in the history
  21. Updated changelog

    arnav13081994 authored and jleclanche committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    8b8f601 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2023

  1. Configuration menu
    Copy the full SHA
    74b3d20 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2023

  1. Minor code refactoring

    arnav13081994 committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    f4f930f View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2023

  1. Formatting Fixes

    arnav13081994 committed Sep 29, 2023
    Configuration menu
    Copy the full SHA
    71f6d8f View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2023

  1. Configuration menu
    Copy the full SHA
    5eca33e View commit details
    Browse the repository at this point in the history
  2. Updated admin to use .get to access dictionary values instead of [] w…

    …ith sensible defaults
    arnav13081994 authored and jleclanche committed Oct 1, 2023
    Configuration menu
    Copy the full SHA
    c54fc32 View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2023

  1. Configuration menu
    Copy the full SHA
    e1fcf90 View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2023

  1. Added system check to warn the user if they have set stripe.api_key i…

    …n addition to API keys in the DB.
    arnav13081994 committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    34717a1 View commit details
    Browse the repository at this point in the history
  2. Added djstripe_is_account_default to the APIKey model

    This was done so that it can be deduced in an unambguous
    way the default `api_key` for a given key `type`, `livemode`,
    `djstripe_owner_account` when `djstripe_is_account_default` is `True`.
    arnav13081994 committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    bf3b7e9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2df3982 View commit details
    Browse the repository at this point in the history
  4. Added setting GET_DEFAULT_STRIPE_SECRET_KEY

    GET_DEFAULT_STRIPE_SECRET_KEY will retrieve at run time
    the default Secret API Key for the given `livemode` and `djstripe_owner_account`
    arnav13081994 committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    e142d20 View commit details
    Browse the repository at this point in the history
  5. Updated setting get_default_api_key to reuse the newly added GET_DEFA…

    …ULT_STRIPE_SECRET_KEY setting
    arnav13081994 committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    3f0e9f2 View commit details
    Browse the repository at this point in the history
  6. Moved api_key param with default to inside the function body

    This was done because python evaluates function argument defaults
    at import time and not run-time whereas once the keys are in the DB,
    the user can change the default key at run time.
    arnav13081994 committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    da9dc9d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e29978c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a5eb9b6 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    c856b46 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    f87314c View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    594facb View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    b2ac50c View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    196ca39 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    13f77af View commit details
    Browse the repository at this point in the history
  15. Updated APIKeyAdminCreateForm._post_clean to handle violation of uniq…

    …ue_account_api_key_default_per_key_type constraint
    arnav13081994 committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    ec57708 View commit details
    Browse the repository at this point in the history
  16. Updated APIKeyAdminCreateForm._post_clean to handle violation of djst…

    …ripe_apikey_secret_key constraint
    
    This constraint is created to handle violations of duplicate secret keys. This happens in case of
    adding an api key for non existent Platform accounts.
    arnav13081994 committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    24437be View commit details
    Browse the repository at this point in the history
  17. Updated APIKeyAdmin.save_model() to correctly populate key name

    In case the key was added before the account was created, we end
    up creating the key before the Admin form gets created due to how
    the sync algorithm works. This commit will not correctly handle
    creation of APIKeys.
    arnav13081994 committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    ffbd7ea View commit details
    Browse the repository at this point in the history
  18. Updated APIKeyAdmin.save_model() to correctly djstripe_is_account_def…

    …ault
    
    In case the key was added before the account was created, we end
    up creating the key before the Admin form gets created due to how
    the sync algorithm works. This commit will not correctly handle
    creation of APIKeys.
    arnav13081994 committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    6391f12 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    916a86e View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    5b8b9e5 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    b986116 View commit details
    Browse the repository at this point in the history