spring-projects / spring-projects/spring-data-mongodb
@Meta does not support property resolution
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.7k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
The annotation org.springframework.data.mongodb.repository.Meta is used, among other things, to define a max execution time for the query:
interface MyRepository extends MongoRepository<MyDocument, String> {
@Meta(maxExecutionTimeMs = 10)
Page<MyDocument> findBySomeProperty(String someProperty);
}
However there is currently no attribute that supports spring placeholders and SpEL expressions. As such the execution time limit is not configurable for spring repositories and one must manually write the query with MongoTemplate if configurability is required.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the org.springframework.data.mongodb.repository.Meta annotation and trace how its maxExecutionTimeMs value reaches repository queries; compare this with the MongoTemplate path mentioned in the issue. Done means repository metadata can resolve Spring placeholders and SpEL expressions for the execution-time limit, with behavior verified by appropriate repository tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, mongodb
- Domain
- database
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100