Skip to content

Allow editing events after start time#240

Merged
lowercasename merged 6 commits intolowercasename:mainfrom
chaos-dotcom:main
Feb 24, 2026
Merged

Allow editing events after start time#240
lowercasename merged 6 commits intolowercasename:mainfrom
chaos-dotcom:main

Conversation

@chaos-dotcom
Copy link
Copy Markdown
Contributor

Remove future-start validation so in-progress events can still be updated while keeping end-time safeguards, and add a Cypress regression test for editing an ongoing event.

reading your feedback from PR215 I feel like this PR should fit your requirements correctly!
#215

this should also complete and close issue 184
#184

chaos-dotcom and others added 2 commits February 24, 2026 16:37
Remove future-start validation so in-progress events can still be updated while keeping end-time safeguards, and add a Cypress regression test for editing an ongoing event.
Copy link
Copy Markdown
Owner

@lowercasename lowercasename left a comment

Choose a reason for hiding this comment

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

Lovely work, simple, thank you!

cy.get("#attendEvent").should("not.exist");
});

it("allows editing an event after it starts", function () {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Love a test 👌

@chaos-dotcom
Copy link
Copy Markdown
Contributor Author

I've removed the validation so should be good to merge

@lowercasename
Copy link
Copy Markdown
Owner

There are two Cypress tests failing - one is the one you added, and the other is a bit mysterious, it might be just a flaky test. Could you have a look?

Use a shared event-name constant in the ongoing-edit regression test so the expected title matches the observed saved value in this environment.
@chaos-dotcom
Copy link
Copy Markdown
Contributor Author

There are two Cypress tests failing - one is the one you added, and the other is a bit mysterious, it might be just a flaky test. Could you have a look?

Right I fixed the test which I added, - I'm also getting the other test failing on my end, but can't see how it connects to the changes in this PR?

Keep existing locale entries for util.validation.eventtime.startisbefore so this change set only updates validation behavior without removing legacy translation keys.
@lowercasename lowercasename merged commit de2c77f into lowercasename:main Feb 24, 2026
1 check passed
@chaos-dotcom
Copy link
Copy Markdown
Contributor Author

Hey I was rather tired when I did that last restore (I was mostly wanting to see if it effected the test that was failing, it did not, I notice now that actually those keys in the locale are essentially now deadcode considering that the "feature" no longer exists,

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.

2 participants