Skip to content

Added new function to edit events#76

Open
HenrikEngen wants to merge 4 commits intofeature/createEventfrom
feature/editEvent
Open

Added new function to edit events#76
HenrikEngen wants to merge 4 commits intofeature/createEventfrom
feature/editEvent

Conversation

@HenrikEngen
Copy link
Member

@HenrikEngen HenrikEngen commented Jan 24, 2026

About this pull request

This pull request will add functionality to edit events

Dependencies:

@HenrikEngen HenrikEngen self-assigned this Jan 24, 2026
@HenrikEngen HenrikEngen added the enhancement New feature or request label Jan 24, 2026
'data': error
}

if update_name is True: context.eventInstance.name = request.json_body['name']
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't need these oneliners, so please have normal if sentences where the code to be executed is on the next line

Copy link
Contributor

@petterroea petterroea left a comment

Choose a reason for hiding this comment

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

More tests, and some formatting stuff, otherwise good.

assert privileged_entry.json_body['uuid'] != None No newline at end of file
assert privileged_entry.json_body['uuid'] != None

def test_edit_event(testapp, upcoming_event):
Copy link
Contributor

Choose a reason for hiding this comment

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

I would like tests that verify that the editing works as well. That is, edit each field and verify that the field was actually edited.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants