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

add-video-link #140

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

AviGawande
Copy link
Contributor

@AviGawande AviGawande commented Jul 22, 2024

This PR closes/references issue #133 . It does so by providing an URL in the events general settings

How has this been tested?

Checklist

  • [ x] I have added tests to cover my changes.

Summary by Sourcery

This pull request introduces a new feature allowing users to add an online video URL to the event settings. The event header will display a 'Videos' button linking to this URL if provided. Tests have been added to ensure the new functionality works as expected.

  • New Features:
    • Added a new 'video_link' field to the event settings form, allowing users to specify an online video URL.
  • Enhancements:
    • Updated the event header template to display a 'Videos' button if a video link is provided in the event settings.
  • Tests:
    • Included tests to cover the new 'video_link' field functionality.

Copy link

sourcery-ai bot commented Jul 22, 2024

Reviewer's Guide by Sourcery

This pull request adds a new feature to include an online video URL in the event settings. The changes involve adding a new field to the event form, updating the event settings template to include this new field, and modifying the event header template to display the video link if it is set.

File-Level Changes

Files Changes
src/pretalx/orga/forms/event.py
src/pretalx/orga/templates/orga/settings/form.html
Added a new 'video_link' field to the event form and updated the settings form template to include this new field.
src/pretalx/agenda/templates/agenda/header_row.html Updated the event header template to display the video link if it is set in the event settings.

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 @AviGawande - I've reviewed your changes - here's some feedback:

Overall Comments:

  • Please add tests for the new video_link feature to ensure its functionality and prevent regressions.
  • Consider adding a comment in the code explaining that additional URL validation is not necessary due to Django's URLField providing basic validation.
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.

@mariobehling
Copy link
Member

Please add screenshots.

@AviGawande
Copy link
Contributor Author

image

@AviGawande
Copy link
Contributor Author

image
@mariobehling added the screenshots here

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.

2 participants