Skip to content

Add workshop type to data_for_plan - #699

Open
mhorod wants to merge 2 commits into
masterfrom
mh/data-for-plan
Open

Add workshop type to data_for_plan#699
mhorod wants to merge 2 commits into
masterfrom
mh/data-for-plan

Conversation

@mhorod

@mhorod mhorod commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

This change is Reviewable

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request extends the JSON payload returned by data_for_plan_view to include each workshop’s type, enabling downstream planning tooling to distinguish workshops by type.

Changes:

  • Add type (from workshop.type.name) to each workshop entry in data_for_plan_view’s exported data.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread wwwapp/views.py Outdated
Comment on lines +976 to +982
@@ -977,7 +977,9 @@ def data_for_plan_view(request, year: int) -> HttpResponse:
workshop_data = {'wid': workshop.id,
'name': workshop.title,
'lecturers': [lect.id for lect in
workshop.lecturer.all()]}
workshop.lecturer.all()],
'type': workshop.type.name
}
@krzys-h
krzys-h requested a review from Copilot July 7, 2026 18:25
@mhorod
mhorod removed the request for review from Copilot July 7, 2026 18:25
@krzys-h
krzys-h requested a review from Copilot July 7, 2026 18:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread wwwapp/views.py
Comment on lines +983 to +987
workshop_data = {
'wid': workshop.id,
'name': workshop.title,
'lecturers': [lect.id for lect in workshop.lecturer.all()],
'type': workshop.type.name
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.

3 participants