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

RemoveStaticAssetsMetadata#13094

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

Draft
mkurz wants to merge4 commits intoplayframework:main
base:main
Choose a base branch
Loading
frommkurz:rm_staticassetsmetadata

Conversation

mkurz
Copy link
Member

@mkurzmkurz commentedJan 28, 2025
edited
Loading

Currently, we have two approaches for reverse routing public assets, both are describedhere:

This pull requests removes the first one by removingStaticAssetsMetadata. Reason for removal is to remove all static/"global" state.

However I am not sure if we really should merge this pull request.
Reason is, the first approach is a bit easier for people how do not care about a static state in their applications, like when you are working on a single Play instance and not plan to run multiple Play apps within one jvm.

I think if we just keep both approaches documented it should be ok.

Not sure yet.

val path = base + "/" + value.name
StaticAssetsMetadata.finder.findAssetPath(base, path)
}
}
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

This removal could cause problems I guess...

Copy link
Member

Choose a reason for hiding this comment

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

You are absolutely right. This is binder for Assets for generated routes are like

GET            /public/*file                      controllers.Assets.versioned(path = "/public", file: controllers.Assets.Asset)

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Updated the description of the pull request. I could make the PR green by switching everything to assetsfinder.

Copy link
Member

Choose a reason for hiding this comment

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

If we will merge this, we also should remove the methodcontrollers.Assets.versioned(String, Asset) and for that we will should mark it as@Deprecated in2.9.x and3.0.x

@mkurzmkurzforce-pushed therm_staticassetsmetadata branch from3ba91a6 to24d539cCompareJanuary 29, 2025 13:05
@mkurzmkurz changed the titleTry to removeStaticAssetsMetadataRemoveStaticAssetsMetadataJan 30, 2025
@mkurzmkurzforce-pushed therm_staticassetsmetadata branch from24d539c to7de4f1bCompareJanuary 30, 2025 08:44
@mkurzmkurzforce-pushed therm_staticassetsmetadata branch from7de4f1b to138a51fCompareFebruary 12, 2025 11:17
@mkurzmkurzforce-pushed therm_staticassetsmetadata branch from138a51f toda7ebb8CompareFebruary 12, 2025 12:58
@mkurzmkurz linked an issueMar 17, 2025 that may beclosed by this pull request
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ihostageihostageihostage left review comments

At least 1 approving review is required to merge this pull request.

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

Successfully merging this pull request may close these issues.

Remove Play app global state
2 participants
@mkurz@ihostage

[8]ページ先頭

©2009-2025 Movatter.jp