Skip to content

fix: event creation with alarm - #8797

Merged
SebastianKrupinski merged 2 commits into
mainfrom
fix/create-event-with-alarm
Aug 28, 2026
Merged

fix: event creation with alarm#8797
SebastianKrupinski merged 2 commits into
mainfrom
fix/create-event-with-alarm

Conversation

@SebastianKrupinski

Copy link
Copy Markdown
Contributor

Summary

  • Fixes modal crash when creating a new event with calendars set
image

SebastianKrupinski and others added 2 commits August 28, 2026 08:40
fix(resources): tidy up the room filter row
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
@codecov

codecov Bot commented Aug 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@SebastianKrupinski

Copy link
Copy Markdown
Contributor Author

/backport to stabler6.6

@backportbot backportbot Bot added the backport-request A backport was requested for this pull request label Aug 28, 2026

@odzhychko odzhychko left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code looks good. Works as expected.

Thx for fixing what I broke...

* @param {boolean=} data.isDefault Whether this is the default alarm
*/
addAlarmToCalendarObjectInstance({
calendarObjectInstance = this.calendarObjectInstance,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

thought(non-blocking): addAlarmToCalendarObjectInstance and removeAlarmFromCalendarObjectInstance should eventually move to util/alarm.js.

util/alarm.js#updateDefaultAlarm should not access the calendarObjectInstanceStore because in general stores can access utils, but utils should never access stores.

Also use of calendarsStore() can be removed by passing calendar as parameter.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

util/alarm.js#updateDefaultAlarm should not access the calendarObjectInstanceStore because in general stores can access utils, but utils should never access stores.

I agree. This will need to be refactored at some point.

And mp, we all miss things... 10 years of spaghetti code to fix.

@SebastianKrupinski
SebastianKrupinski merged commit 9e59d2a into main Aug 28, 2026
38 checks passed
@SebastianKrupinski
SebastianKrupinski deleted the fix/create-event-with-alarm branch August 28, 2026 18:51
@github-project-automation github-project-automation Bot moved this from 🏗️ In progress to ☑️ Done in 💌 📅 👥 Groupware team Aug 28, 2026
@backportbot

backportbot Bot commented Aug 28, 2026

Copy link
Copy Markdown

The backport to stabler6.6 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stabler6.6
git pull origin stabler6.6

# Create the new backport branch
git checkout -b backport/8797/stabler6.6

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 104e4d51

# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/8797/stabler6.6

Error: Failed to clone repository: Failed to create working tree: Preparing worktree (new branch 'backport/8797/stabler6.6')
fatal: not a valid object name: 'origin/stabler6.6'


Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@odzhychko

Copy link
Copy Markdown
Contributor

/backport to stable6.6

@backportbot backportbot Bot removed the backport-request A backport was requested for this pull request label Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

Status: ☑️ Done

Development

Successfully merging this pull request may close these issues.

2 participants