Skip to content
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

DEV: rename the "upgrade" route to "update" and change references. #210

Merged
merged 6 commits into from
Apr 3, 2024

Conversation

vinothkannans
Copy link
Contributor

@vinothkannans vinothkannans commented Apr 2, 2024

This PR will rename the route "/admin/upgrade" to "/admin/update" and it will add a redirect for the old route.

Follow-up to the PR: #208

@vinothkannans vinothkannans marked this pull request as ready for review April 2, 2024 20:02
config/routes.rb Outdated
Comment on lines 14 to 15
post "/docker/update" => "admin#update"
delete "/docker/update" => "admin#reset_update"
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see updates to the controller actions, do we need to do that as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch! I now reverted the changes in route methods. I'm not going rename the method names in this PR (only the routes).

@@ -257,9 +257,9 @@ def status(val)
publish("status", val)
end

def log_version_upgrade
def log_version_update
Copy link
Contributor

Choose a reason for hiding this comment

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

We renamed the method, but I don’t see another instance of the method in the list of changes. Do we have more places to update?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't intent to update that method name too. I fixed it now. I doubled checked all other method names again.

@vinothkannans vinothkannans merged commit da49177 into main Apr 3, 2024
4 checks passed
@vinothkannans vinothkannans deleted the upgrade-update-route branch April 3, 2024 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants