avniproject / avni-server

Backend APIs for Avni
https://avniproject.org
GNU Affero General Public License v3.0
6 stars 25 forks source link

[DEA] Enhance Sync attribute settings #779

Closed mahalakshme closed 1 week ago

mahalakshme commented 2 weeks ago

Need:

When there are many sync attribute values added as on need basis, it is difficult to update the users with the new sync attributes, especially when full access need to be given on DEA.

AC:

User settings on Edit:

Screenshot 2024-08-29 at 11 35 23 AM

User settings on Show:

Screenshot 2024-08-29 at 11 35 32 AM

Old: Ignore

AC:

Analysis:

Why not mentioning any value for sync attribute is not considered as sync everything?

Why only applicable for text and numeric fields:

Can we set any for numeric field:

Yes, the way we store the value of sync attributes - it is allowed to be stored.

Questions:

Inputs:

himeshr commented 2 weeks ago

Sample Screenshots for the User flag

Screenshot 2024-08-29 at 6 24 06 PM Screenshot 2024-08-29 at 6 23 51 PM Screenshot 2024-08-29 at 6 23 41 PM
AchalaBelokar commented 2 weeks ago
himeshr commented 2 weeks ago
  • [ ] I tried with maha@goonj I change the sync concept inventory remove jaipur from but still I am not able to create inventory item.
  • [ ] I login the AchalaB@rwbnitiuat I change sync attribute year changed and checked dea it is showing all the year
AchalaBelokar commented 1 week ago

https://github.com/user-attachments/assets/3cc8fa18-d7de-4218-accf-c98db11710f9

himeshr commented 1 week ago

@AchalaBelokar this is again a valid error, during edit, User is allowed to modify the entity, only if the previous sync attribute was valid for that user. As specified in your comment, the previous value for sync attribute was "goonj", which is not valid for user maha@goonj as it needs it to be "Goonj Thane".

himeshr commented 1 week ago

@AchalaBelokar and @dinesh2096 i see that the card is now in QA Failed, if this was on purpose, specify the issue here.

himeshr commented 1 week ago

@dinesh2096 The errors and app behaviour seen in this video are all valid.. https://drive.google.com/file/d/1Mme0mjT-qHXjLNzHvANQiHp2PIveHAFn/view?usp=drive_link

During create, the new SyncAttribute value and location specified should match the user sync settings and catchment During Edit, the previous value for the SyncAttribute and locations should match the user's catchment and sync settings