-
Notifications
You must be signed in to change notification settings - Fork 22
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Realm doesn't check for optional=false objects, we have to do that in our code. #1142
Comments
Individual profile failing due to missing address lineage. |
@petmongrels yeah the above is because the issue is not that individual doesn't have address. The issue is that, individual in itself should not be there in the user's device since the address levels of the individual are outside of user's catchment. |
@petmongrels if we do this card, for what would we apply the condition saying optional as false? Since I see for an individual both gender and address can be optional and these are the cases we have faced issues. Are there any where u think this condition will be needed on priority? There are cases like IndividualRelationGenderMapping where relation and gender cant be optional but these are more static and wont change frequently and hence change of erroring is low and the priority of this card becomes low. Let me know if u can think of any cases where doing this is important. |
Also, I think in our system address is mandatory on Individual. On server it is mandatory and I think on mobile app also. |
Full List
] Making explicitly optional after checking'Settings --> locale' Not sure how they are used so keeping it as it is, which is that they remain optional.'VisitScheduleInterval --> min', Rest all to become mandatory. |
…e not null during create and update.
I've made my comments on commit 8d70e06. |
…used. ProgramConfig to be removed completed in a different branch.
… Config completely
… to health modules and program config.
@petmongrels I dont see whatever mentioned in Full List(like lowestAddressLevel in Individual), made mandotary. By default, are the properties mandatory? If so I dont see 'VisitScheduleInterval --> min',max having optional |
yes mandatory by default.
cannot find any real usage of VisitScheduleInterval/VisitScheduleConfig.
they are not used.
…On Thu, Nov 2, 2023 at 6:46 PM mahalakshme ***@***.***> wrote:
@petmongrels <https://github.com/petmongrels> I dont see whatever
mentioned in Full List(like lowestAddressLevel in Individual), made
mandotary. By default, are the properties mandatory? If so I dont see
'VisitScheduleInterval --> min',max having optional
—
Reply to this email directly, view it on GitHub
<#1142 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAZ3C7HCGO7WJ4MDBJCBDTYCOMLNAVCNFSM6AAAAAA6B66ZBCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJQG4YDMNRRGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Vivek Singh | +91 98452 32929 | @petmongrels
<https://twitter.com/petmongrels>
|
Testing notes:
|
@mahalakshme : Error screenshot as per you request |
Notes
@mahalakshme we should add cards for 2 and 3 and fix in a later release. |
User-defined object types are always optional except in lists and sets...
How to test:
Out of scope:
Fixing existing bad data - since sometimes as an example, say individual's address is null, it could be because individual should itself not exist within the user's device. So for fixing existing data issues we can do them as and when we face issues since the scope and severity of the same is not clear.
The text was updated successfully, but these errors were encountered: