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

plugin-ext: cleanup #8831

Merged
merged 2 commits into from
Dec 14, 2020
Merged

plugin-ext: cleanup #8831

merged 2 commits into from
Dec 14, 2020

Conversation

paul-marechal
Copy link
Member

What it does

While working on a different PR I noticed outdated things and went on to fix those.

See commit messages for more information.

How to test

Everything should work like before.

Review checklist

Reminder for reviewers

@paul-marechal
Copy link
Member Author

@benoitf I was a bit confused as to what the /plugin/:path(*) endpoint is used for, do you know if it is used and if so by what?

@vince-fugnitto vince-fugnitto added dependencies pull requests that update a dependency file plug-in system issues related to the plug-in system quality issues related to code and application quality labels Dec 7, 2020
@benoitf
Copy link
Contributor

benoitf commented Dec 7, 2020

@marechal-p do you have tried theia frontend plug-ins as well ?

@paul-marechal
Copy link
Member Author

paul-marechal commented Dec 7, 2020

@benoitf I tried hello world and it worked.

@paul-marechal
Copy link
Member Author

cc @tsmaeder is the /plugin/... endpoint really a left over? Couldn't find where it is used in Theia's sources.

@azatsarynnyy
Copy link
Member

What I see from the git history, it has been introduced with the initial implementation of Plug-in system
64903a3#diff-0387516bdf4e48bc4fd1ed19d1db0ef827fd98bbff503e7416b0237d952a4892

I suppose it was replaced later with/hostedPlugin endpoint

app.get('/hostedPlugin/:pluginId/:path(*)', async (req, res) => {

but the previous one (/plugin) wasn't removed.

Maybe I'm wrong...

@paul-marechal
Copy link
Member Author

@azatsarynnyy I came to the same conclusion too, thanks!

Copy link
Member

@azatsarynnyy azatsarynnyy left a comment

Choose a reason for hiding this comment

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

I think it's safe to get rid of /plugin/:path(*) endpoint.

Copy link
Contributor

@benoitf benoitf left a comment

Choose a reason for hiding this comment

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

I think it's OK as well to get rid of it, seems to be a leftover

I test it with a couple of plug-ins which is working fine

Removed `connect` and `serve-static`. Those dependencies are not useful
when we are using `express`. Their use only came because they appear in
`vhost`'s documentation which is old.

Signed-off-by: Paul Maréchal <paul.marechal@ericsson.com>
It looks like this endpoint is no longer used.

Signed-off-by: Paul Maréchal <paul.marechal@ericsson.com>
@paul-marechal
Copy link
Member Author

I fixed the conflicts, thanks!

@paul-marechal paul-marechal merged commit ae35f9c into master Dec 14, 2020
@paul-marechal paul-marechal deleted the mp/plugin-service branch December 14, 2020 18:21
@github-actions github-actions bot added this to the 1.9.0 milestone Dec 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies pull requests that update a dependency file plug-in system issues related to the plug-in system quality issues related to code and application quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants