-
Notifications
You must be signed in to change notification settings - Fork 352
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
DHIS2-8065:Require a specific authority to attribute data values #16494
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## 2.39 #16494 +/- ##
============================================
+ Coverage 58.58% 65.13% +6.54%
- Complexity 25817 28916 +3099
============================================
Files 3207 3218 +11
Lines 121397 122261 +864
Branches 14158 14257 +99
============================================
+ Hits 71118 79630 +8512
+ Misses 44340 36126 -8214
- Partials 5939 6505 +566
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 610 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Quality Gate passedIssues Measures |
Thinking more about this, it would seem we should introduce a separate authority "Allow data value attribution". This would allow users which have this authority to attribute either via the It is worth pointing out however that overriding the data value attribution is not possible via the |
Quality Gate failedFailed conditions See analysis details on SonarCloud Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
As detailed in DHIS2-8065, the current behavior of the system allows for
storedBy
,created
andlastUpdated
fields to be overridden by values contained in the data value set payload. This creates significant issues for accountability, auditing and debugging in systems who receive data via thedataValueSets
endpoint.This change in the API behavior will respect the current behavior for superusers who need to import data on behalf of other users or for other purposes. However, for non-superusers, the values specified for these fields in the payload will be ignored. The
storedBy
will be set to the current user name of the user importing the data. Thecreated
value will not be able to be be overridden. If the value is an existing value, thecreated
date will be maintained, otherwise it will default to the current date.For
lastUpdated
this will always default to the current time regardless of what is specified in the payload for non-superusers.