Assigned
Status Update
Comments
so...@google.com <so...@google.com> #2
Thank you for reporting this issue.
It has been reported internally and is being followed-up by the Firebase engineering team. Please keep in mind there are no ETAs or timeline for a resolution. Any further updates will occur in this thread.
It has been reported internally and is being followed-up by the Firebase engineering team. Please keep in mind there are no ETAs or timeline for a resolution. Any further updates will occur in this thread.
Description
data class Test(
@PropertyName("property_name_not_working") val propertyNameNotWorking: Boolean = true, // fail
@get:PropertyName("sequence_number")
@set:PropertyName("sequence_number")
var sequenceNumber: Int = 0,
var number: Int = 0,
@Exclude val excludeNotWorking: Boolean = true,
@get:Exclude val isLocalFlag: Boolean = true
)
@PropertyName("property_name_not_working") doesn't work, where "propertyNameNotWorking" is stored in the database instead.
Instead, the following is required to make @PropertyName work
@get:PropertyName("sequence_number")
@set:PropertyName("sequence_number")
var sequenceNumber: Int = 0
@Exclude doesn't work, where the field is saved to the database.
@get:Exclude works.
Similar problem reported:
Using:
kotlin_version = '1.3.21'
implementation 'com.google.firebase:firebase-firestore:18.0.1'
What you expected to happen:
Is this the expected usage?
@get:PropertyName("sequence_number")
@set:PropertyName("sequence_number")
var sequenceNumber: Int = 0
or
@PropertyName("sequence_number")
var sequenceNumber: Int = 0
Steps to reproduce:
Other information (workarounds you have tried, documentation consulted, etc):