Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Remove StaticRoutesGenerator#8049

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

gmethvin
Copy link
Member

Removes the static routes generator, references the removal in the the migration guide, and removes references to the static routes generator in the documentation.

Fixes#8047.

Copy link
Member

@richdoughertyrichdougherty left a comment

Choose a reason for hiding this comment

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

I suggested removing the sbt setting used to choose a different generator, since now there's only one kind. Not sure if that was something you were planning for a future PR or not.

@@ -127,18 +126,12 @@ object RoutesCompiler extends AutoPlugin with RoutesCompilerCompat {
}.value,

namespaceReverseRouter := false,
routesGenerator := InjectedRoutesGenerator, // changed from StaticRoutesGenerator in 2.5.0
routesGenerator := InjectedRoutesGenerator,
Copy link
Member

Choose a reason for hiding this comment

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

Can we get rid of theroutesGenerator setting entirely now that there's only one type of generator?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I was wondering that too, but thinking it doesn't hurt to leave it there just in case someone wants to configure a custom routes generator.

Copy link
Member

Choose a reason for hiding this comment

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

That sounds fair enough. I guess I'm always a fan of reducing API surface if we can. :)

marcospereira reacted with thumbs up emoji
Copy link
Contributor

@schmitchschmitchDec 7, 2017
edited
Loading

Choose a reason for hiding this comment

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

well I think we should let it there. since sird is better and better, people can actually create aNoOpRoutesGenerator, which can be used with sird. This will save a lot of unnecessary IO while looking for route files. (and there are various other way's why people would create their own..)

Copy link
Member

Choose a reason for hiding this comment

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

@schmitch wouldn't it be better to have Play provide aNoOpRoutesGenerator for people in that case?

Copy link
Contributor

Choose a reason for hiding this comment

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

well I'm not sure how many people would actually need it and it's not really that hard to implement.

Copy link
MemberAuthor

@gmethvingmethvinDec 8, 2017
edited
Loading

Choose a reason for hiding this comment

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

Or they could just remove theRoutesCompiler plugin. We have aPlayService plugin in 2.7 that is more minimal and does not include the routes compiler.

I have no problem with leaving the option in, though. The main point of this PR is to avoid having to maintain the static routes compiler. I could also see value in allowing someone to provide a routes generator that uses a completely different mechanism to generate a router or customizes the default generator in some way. It's possible people are already doing that.

Choose a reason for hiding this comment

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

I'm OK with leaving the option in. FYI I just changed my review to 👍 since I'm not requesting changes anymore.

@gmethvin
Copy link
MemberAuthor

Ok sounds good to me!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@richdoughertyrichdoughertyrichdougherty approved these changes

@wsargentwsargentwsargent left review comments

@schmitchschmitchschmitch approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@gmethvin@richdougherty@wsargent@schmitch

[8]ページ先頭

©2009-2025 Movatter.jp