-
Notifications
You must be signed in to change notification settings - Fork 40
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
[UX] Hide "Run Database Updates" / next steps if there are no next steps #3245
Comments
Yeah, thanks for filing this ticket @laryn 👍 ...I don't understand what is the use of the "project_name: Installed project_name successfully" list. I also do not understand why we are listing "Your projects have been downloaded and updated." as a task. It feels like it should be a message, but we already have "Update was completed successfully." in place, so perhaps we should just remove it altogether. If we remove the "Your projects have been downloaded and updated." task, then we are left only with the "Run database updates" task, in which case, why aren't we detecting whether there are any db updates or not and act accordingly (either redirect to Also noting that this step is in |
...yep, the code for this is in
|
Just ran into this again while testing core update via the UI. At a minimum it would be a cleaner experience without the "Run database updates" link under "Next steps" (which takes you through another two pages that are not very friendly) only to then tell you that you didn't need to do anything. |
I totally agree with this ticket, we need to focus on what they need to do. Very related to this workflow is how the UI handles maintenance mode for installs and updates. What it should do, taking into account the above:
Let me know if this needs to be a separate issue. Just had a look at the PR on tugboat and maybe this is covered? Couldn't tell |
What is the easiest way to test this? |
@stpaultim |
I'll have a look at the PR soon, I promise.
Yeah, I just run the recent security update for core and got this: I would suggest a few improvements:
|
I'd like to reiterate my suggestion that the process should handle maintenance mode for the database updates. If we recommend (and I agree with the recommendation) that they put the site into maintenance mode for the database updates, then we should help them with that. |
@klonos I'm still interested in this but won't have time to look at it in the near future. Feel free to take over if you wish! |
@argiepiano - that works for with db update. Will quickly find a suitable case for testing without to cover all bases. |
You can use Entity Plus version 15 and version 16 |
I just realized that there are cases where a submodule may have updates. My PR only loads the install files for the main modules. I think I need to revert to loading the install files for all the enabled modules. I'm going to modify the PR and commit those changes in a minute |
This is going to be trickier than it seemed at first.
So... this is getting complicated. One solution may be to to a Perhaps I'll let @laryn decide whether he wants to pick this up and find another way? |
Well, after further testing it turns out that the PR as it stands now DOES work when there are multiple module updates. My PR only iterates on the successfully updated modules to see if there are any database updates to be run. The original PR from @laryn used However, the issue remains to be tested on whether database updates in submodules (rather than on the main module) will be picked up. |
These PRs will need to be updated after the change from "database updates" to "site updates" landed with #5630. @argiepiano, @laryn, do you have capacity to work on this, or should I take a crack at it? (starting off of your PRs) I also need to check if there's overlap with #512 (or how much overlap) |
@klonos You are welcome to it. I'm not sure when I'd be able to come back to this one. |
Thanks @laryn 🙏🏼 ...I believe that we can close your PR. Can you please do that? @argiepiano I believe that your PR is close. Can you please resolve the conflicts, and have a look at the comments I've left? |
@klonos, I'm on the road for the next 2 weeks, with very little capacity. Feel free to pick up. I'm closing mine. |
Describe your issue or idea
When updating a module via the UI, there is not always a database update to complete, but the "Next Steps" section always shows with the "Run database updates" link:
When you click the link, you are informed that there are no database updates pending (and a warning about backing up before you run updates).
It would be better to just display a "No updates pending" message after the first step.
The text was updated successfully, but these errors were encountered: