Dandelion is a fair source project. View the code on Github

Commits on Nov 15, 2024
6ac4df2

🐛 Remove redundant check for GeoLite2-City.mmdb file existence

This commit simplifies the condition for determining the time zone based on the IP address from Cloudflare. The redundant check for the existence of the GeoLite2-City.mmdb file is removed, as it's already handled in the subsequent condition for production environment.

399550d

♻️ Refactor account creation and association logic

This commit improves the readability and maintainability of the code by:

  1. Renaming 'account' to 'existing_account' for clarity
  2. Simplifying the creation of associations in Organisationship
  3. Removing unnecessary error handling in Organisationship

These changes make the code more consistent and easier to understand, reducing the likelihood of bugs and improving overall code quality.

f8a966a

🐛 Move error handling to cover entire method in organisationship.rb

This commit moves the error handling block to encompass the entire method, ensuring that any Mongo operation failures are caught and reported. This change improves the robustness of the code by providing broader error coverage.

19edfd0

🐛 Fix account lookup in facilitators view

This commit fixes a bug in the account lookup process within the facilitators view. The comparison between account IDs is now done using string representation to ensure correct matching.

b8d2bbc

🚀 Optimize facilitator feedback counts retrieval and add caching

This commit improves the performance of the facilitator feedback counts feature by introducing a caching mechanism. It replaces the direct database query with a pre-computed and cached result, reducing database load and improving response times for the facilitators view.

a652673

🔒️ Exclude sensitive form data from environment YAML output

cf01671

📝 Add Stripe user ID to organisation views for better identification

This commit adds the Stripe user ID to the organisation views, improving the ability to identify and manage Stripe connections. The ID is now displayed alongside the account name in both the _buttons partial and the build view.

4cc2544

✨ Add ticket price to the displayed information in event orders

This commit enhances the user experience by including the ticket price alongside the ticket type name in the event orders view. The price is displayed using the discounted price and currency of the ticket, providing more comprehensive information at a glance.

bca269c

♻️ Simplify resale logic in payment_completed! method

Remove unnecessary order check and refactor condition for ticket refund and destruction during resale process to improve code clarity and efficiency.

d2a522f

✨ Introduce payment completion logic for individual tickets

This commit introduces a new method payment_completed! in the Ticket model to handle post-payment actions for each ticket. The method is called for each ticket when an order's payment is completed, ensuring that all necessary actions are performed on a per-ticket basis.

Commits on Nov 14, 2024
4187058

✨ Add ticket resale functionality for events

This commit introduces a new feature allowing event organizers to enable ticket resales. The changes include:

  1. New 'enable_resales' field for events
  2. Toggle resale endpoint for individual tickets
  3. UI updates to display resale status and actions
  4. Logic to handle resale purchases and refunds

These changes improve the flexibility of ticket management for both organizers and attendees, allowing for better event participation.

1555041

🍱 Add advisor images and update contact page with advisor section

58e51c1

♻️ Refactor local group assignment in Organisationship after_create hook

This commit improves the robustness of the local group assignment process in the Organisationship model. It replaces the create method with find_or_create_by to prevent duplicate entries, and adds error handling to catch and report any database operation failures.

782faa6

⚙️ Add process_timeout option to Cuprite driver configuration

509666b

🚀 Add OpenAI integration and optimize video creation process

This commit introduces OpenAI integration and improves the video creation process. Here's a breakdown of the changes:

  1. Add 'ruby-openai' gem to Gemfile
  2. Configure OpenAI in boot.rb
  3. Optimize Pace.js usage in app.js and _head.erb
  4. Refine narration in gathering creation test
  5. Streamline video generation process in test_config.rb
3bb8274

🚨 Add error logging for MaxMind download failures

Commits on Nov 13, 2024
5f18bd9

💰 Increase contribution requested per event from £20 to £25

This change updates the standard contribution amount requested for each event from £20 to £25. This adjustment likely reflects a need to cover increasing costs or to better support the organization's activities.

946d63e

🐛 Fix waitlist addition check in events controller

This commit improves the reliability of the waitlist addition process by changing the condition that checks if a user was successfully added to the waitlist. Instead of checking if the newly created waitship is persisted, we now verify if the waitship exists in the database by querying for it directly. This change ensures a more accurate confirmation of the waitlist addition.

03f0613

🐛 Increase sleep duration in Squarespace account creation task

This commit increases the sleep duration from 10 to 30 seconds in the Squarespace account creation task. This change is made to allow more time for the account creation process to complete, reducing the likelihood of false negatives when checking for the newly created account.

Commits on Nov 12, 2024
75b8d8d

🐛 Fix access to deleted events and related data

This commit addresses an issue where deleted events and their associated data (orders, tickets, donations) were not accessible in certain views. The changes ensure that administrators can view and manage this data even for deleted events, improving data accessibility and management.