-
Notifications
You must be signed in to change notification settings - Fork 6
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
Project status / update UI improvements #1233
Comments
In the case outlined above, the result of clicking "update" will be that the line
in the |
I do not completely understand the information being returned from the core service and how that squares with the requested message. Here is the response from the core service:
I do not see how that leads to a message: "The version of Renku installed in your interactive sessions can be automatically updated." Given the information in the response, it looks like the version of renku is current. Or am I misunderstanding the response? |
@ciyer This is related to the conversation on top, what needs to be updated, or can be updated here is the renku version inside the dockerfile. This is why docker_update_possible is true migration_required is related to the metadata i think. |
@ciyer there are two renku versions - one which was used to commit (meta)data to git and another which is installed in the docker image. These are usually the same but not always, because the user may have run renku commands outside of the docker container that was built for the project. In the case of the response above, my guess is that they are not the same, i.e. the Dockerfile has something like
My point is just that in this case, the update will only change this single line and not the Dockerfile itself and the message should reflect that. |
for the case where the Dockerfile does not support automatic updating, the ideal would be to inform the user about this (regardless of the Renku version) and give/point to clear instructions about how to enable this manually. |
Feedback for the table of different combinations above:
Case 2 + case 10: This can't happen, if the Dockerfile doesn't support automated updating (i.e. it lacks the Case 4 + case 12: In a similar vein, we don't know if the Dockerfile is up to date, just that it can't be updated I think a flowchart would be more readable:
|
That looks great. I'm still not sure if a manual template update is possible. We keep checksums of the files as they were in the template when the project was created/last updated. Then we can do a three-way check of the checksums per file, to see if a file changed in the template and/or if a user changed a template file, and then act accordingly (overwriting with new version or leaving it as is if it was edited, with some additional logic to handle files that are marked as "User should not change these" on the template). Now a user could set the checksums to:
A user might be able to checkout the original renku-init commit and get checksums for files in that state, but that wouldn't account for the case where renku-init was run on top of an existing repository. Plus a user would have to know how to calculate sha256 hashes of files. |
I see. So if there is a newer template, but automated template update is not possible, we will show the message:
|
I've updated the original post a bit.
|
Fixed in #1422 |
Description
The project status / update UI needs to be made more robust and better handle all the cases.
Implementation
Pre-req: Improve the information returned by the
check_migrations
endpoint. See SwissDataScienceCenter/renku-python#2048.The new information should be structured like:
Given that information, the UI should be restructured a bit. Currently we have two sections:
Renku Version
andTemplate Version
(ignoring KG version, which is fine as is). This should become 3 sections.RenkuLab UI Compatibility
Renku Version
Project Template
Table
Status
Historical
Two situations can happen:
The first is explained below, the second still needs a design.
Details
In a project like this:
https://virginia.dev.renku.ch/projects/virginiafriedrich/my-test-project-vir/overview/status
We see a message like this:
Mockup
2021-03-30 Update
From @Panaetius:
So you now get back
on the
migrations_check endpoint
.automated_template_update
is set on a template and determines if that template supports updating or not. if it's false, the service will only update if passed the "force_template_update" flag.The text was updated successfully, but these errors were encountered: