Migrate Event List and Form to vue #296

Merged
hansegucker merged 51 commits from feature/event-list into master 2026-11-13 16:11:33 +01:00
Member

Information and screenshots

No further information have been provided.

Checklist

  • tox -e reformat,lint used
  • Changelog updated/No update necessary
  • Documentation (incl. Screenshots) up-to-date
  • Copyright in apps.py and README.rst up-to-date
  • (Unit) tests for new feature/regression tests for bug fixes (only if useful)
  • Adhere to URL scheme
  • Tested with admin account
  • Tested with normal account (based on permissions)

Backend checklist

  • Use permissions for all GraphQL mutations
  • Use query optimizer for all GraphQL queries
  • Don't use inefficient DB queries

Frontend checklist (mandatory with ~"part::frontend")

## Information and screenshots No further information have been provided. ## Checklist - [x] `tox -e reformat,lint` used - [ ] Changelog updated/No update necessary - [ ] Documentation (incl. Screenshots) up-to-date - [ ] Copyright in `apps.py` and `README.rst` up-to-date - [ ] (Unit) tests for new feature/regression tests for bug fixes (only if useful) - [ ] Adhere to [URL scheme](https://code.teckids.org/aleksis/aleksis/issues/86) - [ ] Tested with admin account - [ ] Tested with normal account (based on permissions) ## Backend checklist - [ ] Use permissions for all GraphQL mutations - [ ] Use query optimizer for all GraphQL queries - [ ] Don't use inefficient DB queries ## Frontend checklist (mandatory with ~"part::frontend") - [ ] Screenshots are attached (mobile and desktop) - [ ] Tested on mobile, tablet, and desktop sizes - [ ] Adhered to [frontend guidelines](hhttps://code.teckids.org/aleksis/AlekSIS/src/branch/master/project/frontend_guidelines.rst) - [ ] Checked with [Firefox Accessibility Checker](https://firefox-source-docs.mozilla.org/devtools-user/accessibility_inspector/)
Migrate event list to crud
All checks were successful
CI / lock (push) Successful in 51s
CI / lint (push) Successful in 1m14s
CI / build (push) Successful in 1m16s
CI / test (push) Successful in 2m0s
CI / tests-done (push) Successful in 2s
CI / publish (push) Successful in 8s
de0007b09c
Merge branch 'refs/heads/master' into feature/event-list
All checks were successful
CI / lock (push) Successful in 43s
CI / lint (push) Successful in 1m12s
CI / build (push) Successful in 1m18s
CI / test (push) Successful in 2m0s
CI / tests-done (push) Successful in 2s
CI / publish (push) Successful in 7s
9ff4499f38
Start implementing support for contact fields
Some checks failed
CI / lock (push) Successful in 44s
CI / lint (push) Failing after 38s
CI / build (push) Successful in 1m17s
CI / test (push) Successful in 1m59s
CI / tests-done (push) Failing after 2s
CI / publish (push) Has been skipped
ff822b4fcf
leuckeju changed title from WIP: Migrate Event List and Form to vue to Migrate Event List and Form to vue 2026-11-09 05:40:12 +01:00
Migrate registration states to vue
Some checks failed
CI / lock (push) Successful in 48s
CI / test (push) Failing after 36s
CI / build (push) Failing after 38s
CI / lint (push) Failing after 44s
CI / tests-done (push) Failing after 2s
CI / publish (push) Has been skipped
2a346124b0
Author
Member

Closes #77
Closes #118

Closes #77 Closes #118
Remove participants list feature
Some checks failed
CI / lock (push) Successful in 33s
CI / test (push) Failing after 37s
CI / build (push) Failing after 39s
CI / lint (push) Failing after 45s
CI / tests-done (push) Failing after 2s
CI / publish (push) Has been skipped
6f4dfc516f
Author
Member

@hansegucker should be done. cannot be used with the newest core though, but this is also true for the existing paweljong.

@hansegucker should be done. cannot be used with the newest core though, but this is also true for the existing paweljong.
Member

@leuckeju wrote in #296 (comment):

@hansegucker should be done. cannot be used with the newest core though, but this is also true for the existing paweljong.

No isn't true. Also heavy merge conflicts.

@leuckeju wrote in https://code.teckids.org/teckids/AlekSIS-App-Paweljong/pulls/296#issuecomment-121231: > @hansegucker should be done. cannot be used with the newest core though, but this is also true for the existing paweljong. No isn't true. Also heavy merge conflicts.
Author
Member

@hansegucker wrote in #296 (comment):

@leuckeju wrote in #296 (Kommentar):

@hansegucker should be done. cannot be used with the newest core though, but this is also true for the existing paweljong.

No isn't true. Also heavy merge conflicts.

It was true at time of writing…
gonna fix them now

@hansegucker wrote in https://code.teckids.org/teckids/AlekSIS-App-Paweljong/pulls/296#issuecomment-121491: > @leuckeju wrote in #296 (Kommentar): > > > @hansegucker should be done. cannot be used with the newest core though, but this is also true for the existing paweljong. > > No isn't true. Also heavy merge conflicts. It was true at time of writing… gonna fix them now
# Conflicts:
#	aleksis/apps/paweljong/frontend/index.js
#	aleksis/apps/paweljong/frontend/messages/en.json
#	aleksis/apps/paweljong/frontend/objectSchemas.js
#	aleksis/apps/paweljong/schema/__init__.py
Rename old occurrences of additionalFields to linkedAdditionalFields
Some checks failed
CI / lock (push) Successful in 54s
CI / lint (push) Failing after 1m5s
CI / build (push) Failing after 1m24s
CI / test (push) Failing after 2m4s
CI / tests-done (push) Failing after 3s
CI / publish (push) Has been skipped
7ad5344dc4
hansegucker requested changes 2026-11-13 13:34:08 +01:00
Dismissed
@ -138,51 +129,6 @@ class EditEventForm(ExtensibleForm):
}
class EditVoucherForm(forms.ModelForm):
Member

ArrayFieldCheckboxSelectMultiple also seems unused now

same with COMMENT_CHOICES and LICENCE_CHOICES

`ArrayFieldCheckboxSelectMultiple` also seems unused now same with `COMMENT_CHOICES` and `LICENCE_CHOICES`
Author
Member

Non-Issue:

  • ArrayFieldCheckboxSelectMultiple is still used in the event edit form (intended to delete once we have crud-based editpages)
  • COMMENT_CHOICES and LICENCE_CHOICES were unused before
Non-Issue: - ArrayFieldCheckboxSelectMultiple is still used in the event edit form (intended to delete once we have crud-based editpages) - COMMENT_CHOICES and LICENCE_CHOICES were unused before
Member

Please remove them anyway.

Please remove them anyway.
leuckeju marked this conversation as resolved
@ -183,4 +132,1 @@
)
class RegisterEventGuardians(ExtensibleForm):
Member

unused, I think, same with RegisterEventContactDetails, RegisterEventLinkedAdditional, RegisterEventFinancial, RegisterEventConsent,

unused, I think, same with `RegisterEventContactDetails`, `RegisterEventLinkedAdditional`, `RegisterEventFinancial`, `RegisterEventConsent`,
Author
Member

were unused before…

were unused before…
Member

Please remove them anyway.

Please remove them anyway.
leuckeju marked this conversation as resolved
@ -531,4 +455,1 @@
exclude = [] # noqa
class PersonGroupFormPerson(forms.Form):
Member

unused, same with EventCheckpointForm, RegisterAccountForm

unused, same with `EventCheckpointForm`, `RegisterAccountForm`
Author
Member

were unused before…

were unused before…
Member

Please remove them anyway.

Please remove them anyway.
leuckeju marked this conversation as resolved
@ -0,0 +1,47 @@
<script setup>
Member

EventList.vue

`EventList.vue`
leuckeju marked this conversation as resolved
@ -1,3 +1,60 @@
fragment EventCRUDFields on EventType {
Member

eventFields

`eventFields`
leuckeju marked this conversation as resolved
@ -0,0 +1,11 @@
<script setup>
Member

InfoMailingList.vue

`InfoMailingList.vue`
leuckeju marked this conversation as resolved
@ -0,0 +1,75 @@
query infoMailings($orderBy: [String], $filters: JSONString) {
items: infoMailings(orderBy: $orderBy, filters: $filters) {
id
Member

could you please also introduce a fragment for sharing those fields?

could you please also introduce a fragment for sharing those fields?
leuckeju marked this conversation as resolved
@ -0,0 +1,13 @@
<script setup>
Member

RegistrationStateList.vue

`RegistrationStateList.vue`
leuckeju marked this conversation as resolved
@ -0,0 +1,31 @@
query registrationStates {
items: registrationStates {
id
Member

fragment, please

fragment, please
leuckeju marked this conversation as resolved
@ -0,0 +1,16 @@
<script setup>
Member

TermsList.vue

`TermsList.vue`
leuckeju marked this conversation as resolved
@ -0,0 +1,42 @@
query terms($orderBy: [String], $filters: JSONString) {
items: terms(orderBy: $orderBy, filters: $filters) {
id
Member

Please introduce a fragment.

Please introduce a fragment.
leuckeju marked this conversation as resolved
@ -0,0 +1,32 @@
<script setup>
Member

VoucherList.vue

`VoucherList.vue`
leuckeju marked this conversation as resolved
@ -0,0 +1,75 @@
query vouchers($orderBy: [String], $filters: JSONString) {
items: vouchers(orderBy: $orderBy, filters: $filters) {
id
Member

Please introduce a fragment.

Please introduce a fragment.
leuckeju marked this conversation as resolved
@ -11,0 +31,4 @@
},
},
{
path: "info_mailing/",
Member

infomailing

`infomailing`
leuckeju marked this conversation as resolved
@ -11,0 +42,4 @@
},
},
{
path: "event_linked_additional_field/",
Member

eventlinkedadditionalfield

`eventlinkedadditionalfield`
leuckeju marked this conversation as resolved
@ -11,0 +53,4 @@
titleKey: "paweljong.event_linked_additional_field.menu_title",
toolbarTitle: "paweljong.event_linked_additional_field.menu_title",
icon: "mdi-list-status",
permission: "paweljong.view_event_linked_additional_fields_rule",
Member

Rule doesn't exist.

Rule doesn't exist.
leuckeju marked this conversation as resolved
@ -11,0 +57,4 @@
},
},
{
path: "registration_state/",
Member

registrationstate

`registrationstate`
leuckeju marked this conversation as resolved
@ -43,1 +75,4 @@
@staticmethod
def resolve_events(root, info, **kwargs):
if not info.context.user.has_perm("paweljong.view_events_rule"):
Member

This and the following ignores the actual rules to be used (e. g. view_event_detail_rule)

This and the following ignores the actual rules to be used (e. g. `view_event_detail_rule`)
leuckeju marked this conversation as resolved
@ -32,0 +46,4 @@
class EventBatchCreateMutation(BaseBatchCreateMutation):
class Meta:
model = Event
permissions = ("paweljong.create_events_rule",)
Member

Please rename rule to create_event_rule

Please rename rule to `create_event_rule`
leuckeju marked this conversation as resolved
@ -32,0 +73,4 @@
class EventBatchPatchMutation(BaseBatchPatchMutation):
class Meta:
model = Event
permissions = ("paweljong.change_event_rule",)
Member

edit_event_rule please

`edit_event_rule` please
leuckeju marked this conversation as resolved
@ -0,0 +39,4 @@
"send_to_retracted",
"send_to_not_checked_in",
)
permissions = ("paweljong.create_info_mailing_rule",)
Member

Rule doesn't exist

Rule doesn't exist
leuckeju marked this conversation as resolved
@ -0,0 +57,4 @@
"send_to_retracted",
"send_to_not_checked_in",
)
permissions = ("paweljong.change_info_mailing_rule",)
Member

edit_info_mailing_rule please

`edit_info_mailing_rule` please
leuckeju marked this conversation as resolved
@ -0,0 +19,4 @@
class RegistrationStateBatchCreateMutation(BaseBatchCreateMutation):
class Meta:
model = RegistrationState
permissions = ("paweljong.create_registration_states_rule",)
Member

create_registration_state_rule

`create_registration_state_rule`
leuckeju marked this conversation as resolved
@ -0,0 +29,4 @@
class RegistrationStateBatchPatchMutation(BaseBatchPatchMutation):
class Meta:
model = RegistrationState
permissions = ("paweljong.change_registration_states_rule",)
Member

edit_registration_state_rule

`edit_registration_state_rule`
leuckeju marked this conversation as resolved
@ -11,0 +17,4 @@
class Meta:
model = Terms
only_fields = ("title", "term", "confirmation_text", "minors_only")
permissions = ("paweljong.create_terms_rule",)
Member

Please fix the underlying rule (uses create_term, but should be add_terms because the model name is Terms).

Please fix the underlying rule (uses `create_term`, but should be `add_terms` because the model name is `Terms`).
Member

Maybe you could use look for other occurrences of misused create instead of add. Remember: create in rules and add in permissions

Maybe you could use look for other occurrences of misused `create` instead of `add`. Remember: `create` in rules and `add` in permissions
leuckeju marked this conversation as resolved
@ -11,0 +24,4 @@
class Meta:
model = Terms
only_fields = ("id", "title", "term", "confirmation_text", "minors_only")
permissions = ("paweljong.change_terms_rule",)
Member

edit_terms_rule

`edit_terms_rule`
leuckeju marked this conversation as resolved
@ -0,0 +27,4 @@
class VoucherBatchCreateMutation(BaseBatchCreateMutation):
class Meta:
model = Voucher
permissions = ("paweljong.create_voucher_rule",)
Member

Rule doesn't exist

Rule doesn't exist
leuckeju marked this conversation as resolved
@ -0,0 +38,4 @@
class VoucherBatchPatchMutation(BaseBatchPatchMutation):
class Meta:
model = Voucher
permissions = ("paweljong.change_voucher_rule",)
Member

Please rename: edit_voucher_rule

Please rename: `edit_voucher_rule`
leuckeju marked this conversation as resolved
Remove unused forms
All checks were successful
CI / lock (push) Successful in 37s
CI / lint (push) Successful in 1m19s
CI / build (push) Successful in 1m28s
CI / test (push) Successful in 2m19s
CI / tests-done (push) Successful in 3s
CI / publish (push) Successful in 10s
b45b009b7d
Add iconActive fields
All checks were successful
CI / lock (push) Successful in 52s
CI / lint (push) Successful in 1m19s
CI / build (push) Successful in 1m26s
CI / test (push) Successful in 2m18s
CI / tests-done (push) Successful in 3s
CI / publish (push) Successful in 9s
abfb99a354
hansegucker deleted branch feature/event-list 2026-11-13 16:11:33 +01:00
Sign in to join this conversation.
No reviewers
No labels
Doing
To Do
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
teckids/AlekSIS-App-Paweljong!296
No description provided.