Redirect deprecated SSE to Web IDE
What does this MR do and why?
Redirects deprecated Static Site Editor (SSE) to Web IDE.
See #349729 (closed) for details
Note it does not remove any deprecated SSE code other than the feature spec, that will be done in a follow-on issue/MR: #352505 (closed)
How to set up and validate locally
- Create a project in GDK, e.g.
sse-testing
, with a repo andREADME.md
file. - Go to the SSE route, e.g.: http://gdk.test:3000/testgroup/sse-testing/-/sse/main%2FREADME.md for dev, or https://gitlab.com/gitlab-com/www-gitlab-com/-/sse/master%2FREADME.md for production.
- See that the file is opened in the Web IDE instead of the SSE.
Example log entry from redirect
2022-05-21_23:48:09.13165 gitlab-workhorse
:
{"content_type":"text/html; charset=utf-8","correlation_id":"01G3MGAV9226VNGCSXQ1PHCXKQ","duration_ms":520,"host":"gdk.test:3000","level":"info","method":"GET","msg":"access","proto":"HTTP/1.1","referrer":"","remote_addr":"127.0.0.1:56131","remote_ip":"127.0.0.1","route":"","status":302,"system":"http","time":"2022-05-21T16:48:09-07:00","ttfb_ms":520,"uri":"/testgroup/sse-testing/-/sse/main%2FREADME.md","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36","written_bytes":144}
So, the uri
field will contain -/sse
.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Deployment
This should be deployed at the beginning of %14.9
Edited by Chad Woolley