GoogleCloudPlatform / GoogleCloudPlatform/spring-cloud-gcp

Dynamic collection name

Open
#1,385 3 comments 0 reactions 0 assignees View on GitHub
firestore priority: p2 type: enhancement
Dominant language
Java
Stars
551
Forks
349
Avg merge
1d 13h
Merged PRs (30d)
14

Description

I would like to prefix our collections by the environment name
- dev
- staging
- etc..

I would like the annotation `@Document(collecionName = "test")` to be dynamic
We could either use [spring expression language](https://docs.spring.io/spring-framework/docs/3.0.x/reference/expressions.html) for that.

Is this something you would consider to add?

Do you know if there is another way to set the collection name dynamically?

Contributor guide

Open the contributing guide

Research direction

Start by locating how the @Document collectionName value is read and how collection names are tested. Review whether Spring Expression Language can be supported for this annotation, then define completion as environment-dependent collection names working reliably with coverage for the proposed syntax.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.