Skip to content
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

[ch38605]: limit export access log to the last access #381

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
4.7.13
----
* ExportAccessLog usage has been simplified by keeping the last access as the sole purpose
it to see if an export is in use at all.

4.7.12
----
Formula for SpotCheckFindings.pending_unsupported_amount has been updated as below;
* Formula for SpotCheckFindings.pending_unsupported_amount has been updated as below;
= audit_spotcheck.total_amount_of_ineligible_expenditure
audit_engagement.additional_supporting_documentation_provided
audit_engagement.justification_provided_and_accepted
Expand All @@ -9,19 +14,19 @@ Formula for SpotCheckFindings.pending_unsupported_amount has been updated as bel

4.7.11
----
CI pipline improvements for version tagging.
* CI pipline improvements for version tagging.

4.7.10
----
Further improve Celery task failure error report
* Further improve Celery task failure error report

4.7.9
----
Make groups parameter name consistent
* Make groups parameter name consistent


----
Hotfix for export access log to handle non-standard date format
* Hotfix for export access log to handle non-standard date format

4.7.6
----
Expand Down
2 changes: 1 addition & 1 deletion src/etools_datamart/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
NAME = "etools-datamart"
VERSION = __version__ = "4.7.12"
VERSION = __version__ = "4.7.13"
__author__ = ""
2 changes: 1 addition & 1 deletion src/unicef_rest_framework/models/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def log_access(cls, export, username):

try:
access_log = cls.objects.get(export=export)
access_log.access_history.append(log_entry)
access_log.access_history = [log_entry]
access_log.save()
except cls.DoesNotExist:
cls.objects.create(export=export, access_history=[log_entry])