Skip to content

enable dataElementGroup validation for modification count and approve action#7

Open
eperedo wants to merge 2 commits intofeature/generic-config-CU-869bd706jfrom
feature/deg-validation-869capvuw
Open

enable dataElementGroup validation for modification count and approve action#7
eperedo wants to merge 2 commits intofeature/generic-config-CU-869bd706jfrom
feature/deg-validation-869capvuw

Conversation

@eperedo
Copy link
Contributor

@eperedo eperedo commented Mar 6, 2026

📌 References

📝 Implementation

  • Add flag "Restrict modification display by Data Element Group sharing" to configuration
  • Apply logic to only check modification count and approve values for dataElements inside dataElementGroups related to the current user
  • If the user is a super admin dataElementGroup validation is ignored
  • If the user has access to dataElementGroups with no dataElements no results will be shown.
  • DataElements inside dataElementGroups but not associated with the dataSet will be ignored.

📹 Screenshots/Screen capture

New flag in dataSet configuration

image

DataElementGroup used for testing

image

Approving only dataElements in dataElementGroups

dataapproval_deg_validation.mp4

🔥 Notes to the tester

If you create a new user to test this validation remember the user also needs access to both the original dataSet and the approval dataSet.

And if you add the dataElements: A, B and C to the dataElementGroup the user will need access to the A-APVD, B-APVD, C-APVD and the approvalDate-APVD dataElements as well so we can clone the dataValue with the "Approval" action.

@eperedo eperedo requested a review from Ramon-Jimenez March 6, 2026 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant