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

QR code validation #677

Draft
wants to merge 46 commits into
base: master
Choose a base branch
from
Draft

QR code validation #677

wants to merge 46 commits into from

Commits on Nov 12, 2022

  1. Ticket model

    cphalen authored and rohangpta committed Nov 12, 2022
    Configuration menu
    Copy the full SHA
    074fda5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4171a61 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ef872be View commit details
    Browse the repository at this point in the history
  4. lint

    rohangpta committed Nov 12, 2022
    Configuration menu
    Copy the full SHA
    c55fd75 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2d0db0d View commit details
    Browse the repository at this point in the history
  6. remove commented stuff

    rohangpta committed Nov 12, 2022
    Configuration menu
    Copy the full SHA
    7240a11 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ae99446 View commit details
    Browse the repository at this point in the history
  8. added holding expiration functionality, holding is initiated at check…

    …out and updated when any cart is validated before checkout
    Dfeng6789 authored and rohangpta committed Nov 12, 2022
    Configuration menu
    Copy the full SHA
    0a975fb View commit details
    Browse the repository at this point in the history
  9. lint and tests

    Dfeng6789 authored and rohangpta committed Nov 12, 2022
    Configuration menu
    Copy the full SHA
    7fe194d View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    ac0975a View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    c69254a View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    5382f48 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    6508a97 View commit details
    Browse the repository at this point in the history
  14. some docstring stuff

    rohangpta committed Nov 12, 2022
    Configuration menu
    Copy the full SHA
    9610747 View commit details
    Browse the repository at this point in the history
  15. rebase + pipfile lock

    rohangpta committed Nov 12, 2022
    Configuration menu
    Copy the full SHA
    c9fb115 View commit details
    Browse the repository at this point in the history
  16. use master pipfile.lock

    rohangpta committed Nov 12, 2022
    Configuration menu
    Copy the full SHA
    1b0bda8 View commit details
    Browse the repository at this point in the history
  17. lint and pre-commit fixes

    rohangpta committed Nov 12, 2022
    Configuration menu
    Copy the full SHA
    094ad42 View commit details
    Browse the repository at this point in the history
  18. minor bugs

    rohangpta committed Nov 12, 2022
    Configuration menu
    Copy the full SHA
    d67a3a6 View commit details
    Browse the repository at this point in the history
  19. add to populate script

    rohangpta committed Nov 12, 2022
    Configuration menu
    Copy the full SHA
    a352b01 View commit details
    Browse the repository at this point in the history
  20. lint

    rohangpta committed Nov 12, 2022
    Configuration menu
    Copy the full SHA
    7367db1 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    7f650dc View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2024

  1. Update ticketing (backend) branch (#612)

    * Merge master into ticketing
    
    * Move ticketing migration to end
    aviupadhyayula committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    03214af View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2024

  1. Revert "Update ticketing (backend) branch (#612)"

    This reverts commit 03214af.
    julianweng committed Feb 16, 2024
    Configuration menu
    Copy the full SHA
    50b9c0b View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2024

  1. Merge ticketing branches (#615)

    Merge frontend ticketing branch into main ticketing feature branch.
    
    ---------
    
    Co-authored-by: Rohan Gupta <[email protected]>
    Co-authored-by: dfeng678 <[email protected]>
    Co-authored-by: alnasir7 <[email protected]>
    Co-authored-by: Mohamed Abaker <[email protected]>
    Co-authored-by: DiiZyy <[email protected]>
    Co-authored-by: printer83mph <[email protected]>
    Co-authored-by: Avi Upadhyayula <[email protected]>
    Co-authored-by: cphalen <[email protected]>
    Co-authored-by: Alexander Kyimpopkin <[email protected]>
    Co-authored-by: Joy Liu <[email protected]>
    Co-authored-by: Rohan Moniz <[email protected]>
    Co-authored-by: joel8019 <[email protected]>
    Co-authored-by: Eunsoo Shin <[email protected]>
    14 people committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    80e8201 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    22968db View commit details
    Browse the repository at this point in the history
  3. Fix TS errors

    julianweng committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    91b1df9 View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2024

  1. Update Links to new Next.js behavior

    Make TicketsTab not crash
    anli5005 committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    580be09 View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2024

  1. Configuration menu
    Copy the full SHA
    6151c4f View commit details
    Browse the repository at this point in the history
  2. missed merge conflict

    esinx committed Apr 13, 2024
    Configuration menu
    Copy the full SHA
    a40e469 View commit details
    Browse the repository at this point in the history
  3. migrations

    esinx committed Apr 13, 2024
    Configuration menu
    Copy the full SHA
    20d250d View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2024

  1. Ticketing integrate cybersource -> ticketing (#652)

    * Add check on event deletion
    
    * add cybersource package
    
    * Capture context generation + local dev setup instructions (#645)
    
    * capture context view
    
    * fix populate
    
    * move capture context generation to checkout view
    
    * Optimize Django ops in cart validation
    
    * Use Q objects in cart validation
    
    * switch out nginx for local-ssl-proxy
    
    ---------
    
    Co-authored-by: aviupadhyayula <[email protected]>
    
    * fix target origin url
    
    * Closes #632 (#648)
    
    * This commit resolves #632:
    
    - Add logic to interact with the CyberSource API to validate
    transaction data and also confirm the payment.
    - Add appropriate error handling for API invocation failures causing
    transaction failure.
    - Store the transaction data in a new model `TicketTransactionRecord`
    for bookkeeping purposes. Each ticket is also associated with an
    instance of this class.
    - On transaction success, assign the ticket to the user, remove holds
    and from cart, and send out confirmation email.
    
    * Address PR comments, query opt, and others
    
    - More judicious use of `select_for_update`: only lock when updating
    holder/owner.
    - Better prefetching/bulk updating throughout the query logic
    - Return HTTP status codes
    - Refactor as per PR comments
    
    * Validate the transient token's signature
    
    - I tested the workflow from `initiate_checkout` to `complete_checkout`
    and was able to get it working.
    - Ironed out a few bugs
    - Add the `reconciliation_id` as a field on the transaction record;
    could be useful to generate reports. We'll need to figure out what else
    to store to interact with their reporting API.
    
    * Make reconciliation_id nullable to support free tickets
    
    * Address nit, refactor ticket count logic to SQL
    
    * merge migrations...
    
    * pipenv lock again
    
    * Pin uwsgi...2.0.25 breaks CI
    
    ---------
    
    Co-authored-by: aviupadhyayula <[email protected]>
    Co-authored-by: Rohan Moniz <[email protected]>
    3 people committed Apr 14, 2024
    Configuration menu
    Copy the full SHA
    428dd7e View commit details
    Browse the repository at this point in the history
  2. Set and enforce order limit on ticket purchases (#654)

    * Set & enforce order limit on ticket purchases
    
    * Add migration
    
    * Default tix order limit to 10
    
    * Consolidate migrations
    
    * Check each carted event's order limit
    
    * Move limit validation to `add_to_cart`
    
    * Fix typo 😔
    
    * Address nits with validation logic
    
    * Minor refactor
    aviupadhyayula committed Apr 14, 2024
    Configuration menu
    Copy the full SHA
    b911872 View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2024

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

Commits on Apr 16, 2024

  1. Ticketing price integration (#659)

    * Integrate ticket price field into ticket creation/list views, as well into ticket creation frontend.
    
    * Enforce non-negative ticket prices at creation
    
    * Add frontend checks for fractional/negative ticket count and cost.
    
    * Prevent users from entering negative/fractional ticket counts/price for now.
    
    ---------
    
    Co-authored-by: aviupadhyayula <[email protected]>
    julianweng and aviupadhyayula committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    5880d7c View commit details
    Browse the repository at this point in the history
  2. feat(events): new events page

    esinx committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    125905a View commit details
    Browse the repository at this point in the history
  3. todo remove

    esinx committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    a8059d3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c32bbba View commit details
    Browse the repository at this point in the history
  5. Add support for group discounts (#661)

    * Add group discount fields to ticket model
    
    * Ingest group discount info at ticket creation
    
    * Add validator for group size
    
    * Add comments
    
    * Apply discounts when checking out
    
    * Remove model-level validators
    
    * Remove validators from migration
    
    * Improve comments
    
    * Minor refactor
    
    * Default group_discount to 0
    
    * Remove check for discount in cart calculation
    
    * Consolidate validation checks upon ticket creation
    
    * Fix typo in validation upon ticket creation
    aviupadhyayula committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    3a8829d View commit details
    Browse the repository at this point in the history
  6. Owned Tickets Tab in Settings (#663)

    * Owned tickets tab skeleton code.
    
    * 🎉 Functional but suspicious code
    
    * 🧹 Fix some good practice
    
    ---------
    
    Co-authored-by: Julian Weng <[email protected]>
    joyliu-q and julianweng committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    27ac7c6 View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2024

  1. Ticketing backend tests (#666)

    * Add test cases for backend ticketing APIs
    
    Long overdue addition of tests to the ticketing backend.
    
    Tests and fixes all the APIs under the Event and Ticket models.
    
    There are more complex workflows with race conditions etc that are not
    tested, but should be at some point. Unmerged functionality is also
    not tested yet.
    
    * Don't use locked rows to groupby
    
    * Set cybersource settings in CI
    
    * Address feedback
    rohangpta committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    40fb7f7 View commit details
    Browse the repository at this point in the history
  2. Rm console.log on frontend

    rohangpta committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    6f75d48 View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2024

  1. Add Group Discount to Create Ticket Flow and Auto Scroll Down (#669)

    * Add to cart feature (styling is borked)
    
    * 🐛 Broken code
    
    * 🐛 fixed
    
    * 🎨 Readd event preview
    
    * 🧹 Less jank way of doing group discount visibility
    
    * 🎨 Address comments and actually type things
    
    * 🎨 Address nit
    
    ---------
    
    Co-authored-by: Julian Weng <[email protected]>
    Co-authored-by: Eunsoo Shin <[email protected]>
    3 people committed Apr 21, 2024
    Configuration menu
    Copy the full SHA
    20f68ab View commit details
    Browse the repository at this point in the history
  2. Use capture context in cart checkout (#671)

    * Use capture context to verify transient token
    
    * Add migration
    
    * Minor changes to documentation
    
    * Add tests
    
    * Add comment explaining max char length
    aviupadhyayula committed Apr 21, 2024
    Configuration menu
    Copy the full SHA
    78f02fd View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2024

  1. first pass

    rm03 committed Apr 22, 2024
    Configuration menu
    Copy the full SHA
    b83fe1a View commit details
    Browse the repository at this point in the history
  2. fix doc

    rm03 committed Apr 22, 2024
    Configuration menu
    Copy the full SHA
    7cdb450 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2024

  1. remove B2B IPC

    rm03 committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    4bde09e View commit details
    Browse the repository at this point in the history