EDM-4888: Enable the restart action on success - #762
Merged
celdrake merged 1 commit intoAug 10, 2026
Merged
Conversation
WalkthroughThe lifecycle utilities now define restart timeout handling and recognize completed start actions. The lifecycle hook clears pending restart state after 500 ms. The lifecycle error alert title now states that the requested action failed. ChangesApplication lifecycle action handling
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 14 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (14 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
jgyselov
approved these changes
Aug 10, 2026
Made-with: Cursor
celdrake
force-pushed
the
EDM-4888-enable-restart-action-after-success
branch
from
August 10, 2026 14:03
bce14e8 to
6ebe4c6
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@libs/ui-components/src/utils/applicationLifecycle.ts`:
- Around line 161-166: Prevent duplicate restart requests in the lifecycle
restart flow by keeping an in-flight guard active until the application restart
actually completes, rather than allowing the 500 ms RESTART_PENDING_TIMEOUT_MS
cleanup to clear pendingAction while isSubmitting is false. Update the relevant
restart action state handling, and add a test that issues a second restart
request after the timeout but before completion and verifies it is rejected.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Enterprise
Run ID: d3d50e57-c466-4668-8639-d9eced856a25
⛔ Files ignored due to path filters (1)
libs/i18n/locales/en/translation.jsonis excluded by!libs/i18n/locales/en/translation.json
📒 Files selected for processing (2)
libs/ui-components/src/components/DetailsPage/Tables/ApplicationLifecycleActions.tsxlibs/ui-components/src/utils/applicationLifecycle.ts
celdrake
added a commit
to celdrake/flightctl-ui
that referenced
this pull request
Aug 11, 2026
Made-with: Cursor (cherry picked from commit 0e19b12)
celdrake
added a commit
that referenced
this pull request
Aug 11, 2026
* Bump fast-uri from 3.1.4 to 3.1.5 (#759) Bumps [fast-uri](https://github.com/fastify/fast-uri) from 3.1.4 to 3.1.5. - [Release notes](https://github.com/fastify/fast-uri/releases) - [Commits](fastify/fast-uri@v3.1.4...v3.1.5) Made-with: Cursor --- updated-dependencies: - dependency-name: fast-uri dependency-version: 3.1.5 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (cherry picked from commit e17bc30) * EDM-4999: Redefine which statuses allow start/stop actions (#763) Made-with: Cursor (cherry picked from commit a5959d8) * EDM-4987: Do not send wrong frame that causes the session logout (#760) Made-with: Cursor (cherry picked from commit ae99129) * EDM-5034: Show restart app loop warnings (#764) Made-with: Cursor (cherry picked from commit 51bac50) * EDM-4888: Enable the restart action on success (#762) Made-with: Cursor (cherry picked from commit 0e19b12) * EDM-4726: Explain updated behaviour for VM apps (#766) Made-with: Cursor --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When the user attempts to "Restart" an already started application, the Backend just signals the intent with a new annotation called
restartGeneration, and there is no observable field in status (or the annotation itself) that can be used to understand when the action is in progress or finished.Given this, we clear the action after an arbitrary timeout to signal that the action has been received and was triggered.
Summary
libs/ui-components/.RESTART_PENDING_TIMEOUT_MSwhen the backend provides no completion status.Completed.libs/types/,libs/i18n/,libs/cypress/, app-specific code, the Go auth proxy, container builds, E2E tests, or CI configuration.