-
Notifications
You must be signed in to change notification settings - Fork 51
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
Revert "Eventyay Common: Create an event dashboard" #503
Conversation
This reverts commit 3ddbd09.
Reviewer's Guide by SourceryThis PR reverts the changes introduced in #484, which implemented an event dashboard. The revert removes the dashboard view and associated logic, including widgets, permissions checks, and context processors. It also simplifies the base template and removes styling related to the dashboard. Class diagram showing removed EventIndexView and related componentsclassDiagram
class EventIndexView {
-template_name: str
-rearrange(widgets)
-_get_user_permissions()
-_collect_dashboard_widgets()
-_filter_log_entries()
-_check_event_statuses()
+get_context_data()
}
class Event {
+talk_schedule_url
+talk_session_url
+talk_speaker_url
-talk_dashboard_url
-talk_settings_url
}
note for Event "Removed dashboard and settings URLs"
note for EventIndexView "Entire class removed"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @mariobehling - I've reviewed your changes and they look great!
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
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
url = urljoin(talk_host, f"{self.slug}/schedule") | ||
return url |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion (code-quality): Inline variable that is immediately returned (inline-immediately-returned-variable
)
url = urljoin(talk_host, f"{self.slug}/schedule") | |
return url | |
return urljoin(talk_host, f"{self.slug}/schedule") |
url = urljoin(talk_host, f"{self.slug}/talk") | ||
return url |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion (code-quality): Inline variable that is immediately returned (inline-immediately-returned-variable
)
url = urljoin(talk_host, f"{self.slug}/talk") | |
return url | |
return urljoin(talk_host, f"{self.slug}/talk") |
url = urljoin(talk_host, f"{self.slug}/speaker") | ||
return url |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion (code-quality): Inline variable that is immediately returned (inline-immediately-returned-variable
)
url = urljoin(talk_host, f"{self.slug}/speaker") | |
return url | |
return urljoin(talk_host, f"{self.slug}/speaker") |
try: | ||
url = resolve(request.path_info) | ||
except Resolver404: | ||
return {} | ||
|
||
if not request.path.startswith(f"{get_script_prefix()}common"): | ||
if not request.path.startswith(get_script_prefix() + 'common'): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion (code-quality): Use f-string instead of string concatenation (use-fstring-for-concatenation
)
if not request.path.startswith(get_script_prefix() + 'common'): | |
if not request.path.startswith(f'{get_script_prefix()}common'): |
'ticket_component': settings.SITE_URL + '/control', | ||
'talk_component': settings.TALK_HOSTNAME + '/orga', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion (code-quality): Use f-string instead of string concatenation [×2] (use-fstring-for-concatenation
)
'ticket_component': settings.SITE_URL + '/control', | |
'talk_component': settings.TALK_HOSTNAME + '/orga', | |
'ticket_component': f'{settings.SITE_URL}/control', | |
'talk_component': f'{settings.TALK_HOSTNAME}/orga', |
Reverts #484
Summary by Sourcery
Remove the event dashboard.