Migrate Event List and Form to vue #296
No reviewers
Labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
teckids/AlekSIS-App-Paweljong!296
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/event-list"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Information and screenshots
No further information have been provided.
Checklist
tox -e reformat,lintusedapps.pyandREADME.rstup-to-dateBackend checklist
Frontend checklist (mandatory with ~"part::frontend")
WIP: Migrate Event List and Form to vueto Migrate Event List and Form to vueCloses #77
Closes #118
@hansegucker should be done. cannot be used with the newest core though, but this is also true for the existing paweljong.
@leuckeju wrote in #296 (comment):
No isn't true. Also heavy merge conflicts.
@hansegucker wrote in #296 (comment):
It was true at time of writing…
gonna fix them now
@ -138,51 +129,6 @@ class EditEventForm(ExtensibleForm):}class EditVoucherForm(forms.ModelForm):ArrayFieldCheckboxSelectMultiplealso seems unused nowsame with
COMMENT_CHOICESandLICENCE_CHOICESNon-Issue:
Please remove them anyway.
@ -183,4 +132,1 @@)class RegisterEventGuardians(ExtensibleForm):unused, I think, same with
RegisterEventContactDetails,RegisterEventLinkedAdditional,RegisterEventFinancial,RegisterEventConsent,were unused before…
Please remove them anyway.
@ -531,4 +455,1 @@exclude = [] # noqaclass PersonGroupFormPerson(forms.Form):unused, same with
EventCheckpointForm,RegisterAccountFormwere unused before…
Please remove them anyway.
@ -0,0 +1,47 @@<script setup>EventList.vue@ -1,3 +1,60 @@fragment EventCRUDFields on EventType {eventFields@ -0,0 +1,11 @@<script setup>InfoMailingList.vue@ -0,0 +1,75 @@query infoMailings($orderBy: [String], $filters: JSONString) {items: infoMailings(orderBy: $orderBy, filters: $filters) {idcould you please also introduce a fragment for sharing those fields?
@ -0,0 +1,13 @@<script setup>RegistrationStateList.vue@ -0,0 +1,31 @@query registrationStates {items: registrationStates {idfragment, please
@ -0,0 +1,16 @@<script setup>TermsList.vue@ -0,0 +1,42 @@query terms($orderBy: [String], $filters: JSONString) {items: terms(orderBy: $orderBy, filters: $filters) {idPlease introduce a fragment.
@ -0,0 +1,32 @@<script setup>VoucherList.vue@ -0,0 +1,75 @@query vouchers($orderBy: [String], $filters: JSONString) {items: vouchers(orderBy: $orderBy, filters: $filters) {idPlease introduce a fragment.
@ -11,0 +31,4 @@},},{path: "info_mailing/",infomailing@ -11,0 +42,4 @@},},{path: "event_linked_additional_field/",eventlinkedadditionalfield@ -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",Rule doesn't exist.
@ -11,0 +57,4 @@},},{path: "registration_state/",registrationstate@ -43,1 +75,4 @@@staticmethoddef resolve_events(root, info, **kwargs):if not info.context.user.has_perm("paweljong.view_events_rule"):This and the following ignores the actual rules to be used (e. g.
view_event_detail_rule)@ -32,0 +46,4 @@class EventBatchCreateMutation(BaseBatchCreateMutation):class Meta:model = Eventpermissions = ("paweljong.create_events_rule",)Please rename rule to
create_event_rule@ -32,0 +73,4 @@class EventBatchPatchMutation(BaseBatchPatchMutation):class Meta:model = Eventpermissions = ("paweljong.change_event_rule",)edit_event_ruleplease@ -0,0 +39,4 @@"send_to_retracted","send_to_not_checked_in",)permissions = ("paweljong.create_info_mailing_rule",)Rule doesn't exist
@ -0,0 +57,4 @@"send_to_retracted","send_to_not_checked_in",)permissions = ("paweljong.change_info_mailing_rule",)edit_info_mailing_ruleplease@ -0,0 +19,4 @@class RegistrationStateBatchCreateMutation(BaseBatchCreateMutation):class Meta:model = RegistrationStatepermissions = ("paweljong.create_registration_states_rule",)create_registration_state_rule@ -0,0 +29,4 @@class RegistrationStateBatchPatchMutation(BaseBatchPatchMutation):class Meta:model = RegistrationStatepermissions = ("paweljong.change_registration_states_rule",)edit_registration_state_rule@ -11,0 +17,4 @@class Meta:model = Termsonly_fields = ("title", "term", "confirmation_text", "minors_only")permissions = ("paweljong.create_terms_rule",)Please fix the underlying rule (uses
create_term, but should beadd_termsbecause the model name isTerms).Maybe you could use look for other occurrences of misused
createinstead ofadd. Remember:createin rules andaddin permissions@ -11,0 +24,4 @@class Meta:model = Termsonly_fields = ("id", "title", "term", "confirmation_text", "minors_only")permissions = ("paweljong.change_terms_rule",)edit_terms_rule@ -0,0 +27,4 @@class VoucherBatchCreateMutation(BaseBatchCreateMutation):class Meta:model = Voucherpermissions = ("paweljong.create_voucher_rule",)Rule doesn't exist
@ -0,0 +38,4 @@class VoucherBatchPatchMutation(BaseBatchPatchMutation):class Meta:model = Voucherpermissions = ("paweljong.change_voucher_rule",)Please rename:
edit_voucher_rule