-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Add Deprecation headers for legacy rest endpoints #7686
Merged
Merged
Changes from 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift click to select a range
923ad0a
add deprecation headers for legacy rest endpoints
clevinson f2e4a8a
add deprecation headers for missing tx routes
clevinson 17c4cf9
rm handler-level deprecation headers
clevinson abd6170
switch to middleware Route.Use method for setting deprecation Headers
clevinson b7e828d
set deprecation headers using subrouter
clevinson abccbb2
cleanup gofmt
clevinson 7d509fd
goimports
clevinson 3e39d45
Update client/rest/rest.go
clevinson abe10d8
update deprecation headers to be set on each module individually
clevinson 2791a54
Merge branch 'master' into clevinson/legacy-deprecation-headers-7636
mergify[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
cleanup gofmt
- Loading branch information
commit abccbb246ecc9c47c492e78f897291fbd742641d
There are no files selected for viewing
This file contains 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
This file contains 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
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.
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.
Actually shouldn't be be doing this module by module? Putting this in
BasicManager
means that other projects with other modules will have their REST routes auto-deprecated. That's not really what we want right?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.
I thought this was what we wanted, as this entire process for generating REST routes will be deprecated at the SDK level in future releases, no?
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.
You're probably right... That would make SDK maintenance easier. Still this deprecation goes to clients.
RegisterRESTRoutes
should be deprecated for module developers. Module developers may decide not to deprecate their own REST routes for clients and instead do that wiring on their own.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.
Sorry- i'm not following exactly what you mean. Is this still something you are wanting changed? Or do you now think the current implementation is correct in the context of this PR?
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.
Yes It still should be their decision. So I would prefer we do module by module.
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 should be on by default to let the developers and users to know and prepare for that.
At some point we will remove the REST API.
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.
If we need to coustomze it at the SDK level, then we can add a parameter to the
RegisterRESTRoutes
function: