-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add message: Prebuilds have been paused #14081
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
/werft run 👍 started the job as gitpod-build-alex-warn-users-that-prebuilds-9232.1 |
be2436f
to
2f2f5f0
Compare
started the job as gitpod-build-alex-warn-users-that-prebuilds-9232.3 because the annotations in the pull request description changed |
2f2f5f0
to
ec4e003
Compare
Wow, many thanks @AlexTugarev for implementing this! This will be a huge improvement in the UX of "inactive projects". I'll take a look at this now. 👀 |
@@ -2649,6 +2649,11 @@ export class GitpodServerEEImpl extends GitpodServerImpl { | |||
|
|||
const context = (await this.contextParser.handle(ctx, user, contextURL)) as CommitContext; | |||
|
|||
// HACK: treat manual triggered prebuild as a reset for the inactivity state |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't seem like a hack to me 👍 (especially if we rename lastWorkspaceStart
to something more accurate like lastUserActivity
)
// HACK: treat manual triggered prebuild as a reset for the inactivity state | |
// Treat manual triggered prebuild as a reset for the inactivity state |
Preview env died over the weekend, let's make a new one: /werft run 👍 started the job as gitpod-build-alex-warn-users-that-prebuilds-9232.5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many thanks for providing test instructions! The UX works as advertised. ✨ I agree with @gtsiolis that this is super nice to see. 😁
Also, for the future, I wonder if maybe we'll want to show the same warning on other pages as well?
if (project) { | ||
getGitpodService() | ||
.server.triggerPrebuild(project.id, null) | ||
.then(() => setIsConsideredInactive(false)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two possible UX improvements:
-
When the user clicks, disable the link & show a spinner, so that users know that something is actually happening (i.e. clicking worked) and to prevent them from triggering multiple duplicate prebuilds?
-
Once the action is successful, auto-redirect to the new prebuild that is in progress? (As opposed to just hiding the warning and otherwise nothing seems to have changed)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jankeromnes I'm adding below some comments regarding the other pages and future iterations:
- Project Overview: I'd keep the alert close to the most relevant page for now, but I agree this could be useful to surface here as this is the project homepage.
- List of Prebuilds: I remember being also confused by this, see relevant discussion (internal), Show prebuild failure error message in UI #8637 (Cc @easyCZ), and Improve prebuild status messages including errors on the prebuild page #9111.
- Specific Cancelled Prebuild: Makes sense! +1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for opening this, @AlexTugarev!
Left one minor comment around copy. 🏓
ec4e003
to
2dbcc67
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many thanks @AlexTugarev!
Code looks good, and works (almost) perfectly fine! ✨
/hold due to the nit about setting isResuming
to true
somewhere
2dbcc67
to
7d45fa0
Compare
/hold cancel |
Description
With this PR we introduce a warning message on the Project overview when it is considered inactive. A
Resume prebuilds
action allows to trigger a new prebuild on the default branch.Related Issue(s)
Fixes #9232
How to test
update d_b_project_usage set lastWorkspaceStart = '2021-10-21T13:02:40.674Z';
Release Notes
Documentation
Werft options:
If enabled this will build
install/preview
Valid options are
all
,workspace
,webapp
,ide