Skip to content

Conversation

@Sak1012
Copy link
Member

@Sak1012 Sak1012 commented Dec 9, 2025

This PR adds a missing migration file.

Summary by Sourcery

Bug Fixes:

  • Add a missing schema migration to align the Question.type field choices with the current model definition.

@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Dec 9, 2025

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Adds a missing Django migration that updates the question.type field choices and max_length in the base app.

Entity relationship diagram for updated question.type field migration

erDiagram
    Question {
        string id
        string text
        string type "choices: N, S, T, B, C, M, F, D, H, W, CC, TEL, DES; max_length=5"
    }
Loading

File-Level Changes

Change Details Files
Introduce a new Django migration to alter the question.type field definition to match the current model choices and constraints.
  • Create migration 0003_alter_question_type depending on migration 0002_alter_event_header_image_alter_event_locale_and_more in the base app.
  • Alter the type field on the question model to be a CharField with max_length=5.
  • Update the type field choices to include various question types such as number, text, multiline text, checkbox, radio, file upload, date/time variants, country code, phone number, and description text.
app/eventyay/base/migrations/0003_alter_question_type.py

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Contributor

@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 there - I've reviewed your changes and they look great!


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 and I'll use the feedback to improve your reviews.

@norbusan norbusan merged commit bdc1f4c into fossasia:enext Dec 9, 2025
2 checks passed
@github-project-automation github-project-automation bot moved this from Backlog to Done in Eventyay Next Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants