You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use post-processed query results in query exports #2814
I use the audit log query to gather data for quarterly reports. The query results display nicely in SP7 but when I export the results, much of it is unreadable and I spend a lot of time doing 40-50 find/replace operations to convert table numbers to the table names so that I can see what’s been done over the last 3 months. It would be more useful to export the table names. Likewise with the actions and field names (user-created caption vs, e.g., “text1”).
The rest is because front-end does fancy formatting of the data it received from the back-end. The export is coming from the back-end so it shows you the raw data front-end receives.
A possible solution would be to offload some formatting from the front-end to back-end.
Another solution would generate csv export on the front-end (though that would only work for records that are already loaded)
This is because when the back-end does formatting, it uses pick list item value, rather than the title - not sure how simple that would be to fix (because it constructs a SQL query to do the formatting - it's very performant, but also very feature limited)
In the preview, front-end formatting is used, which supports more features.
Partial work-around:
Caroline added ability to export only selected rows.
That export is done on the front-end - and if I remember correctly, it is done on the formatted data (or if not, won't be hard to change it to work on formatted data)
We are observing an issue in how picklists are handled in labels & reports in the herbarium database in Specify 7. This issue is confined to pick list fields, as displayed in Specify 7. Specify 6 is displaying as intended.
Picklist values are being displayed in Specify 7 output, whereas picket titles are displayed in Specify 6. Here's an example of the reports output and the underlying xml report code.
Activity
specifysoftware commentedon Jan 13, 2023
This issue has been mentioned on Specify Community Forum. There might be relevant details there:
https://discourse.specifysoftware.org/t/audit-log-export-displays-query-result-values/990/3
maxpatiiuk commentedon Jan 13, 2023
The heading issue is fixed in #2769.
The rest is because front-end does fancy formatting of the data it received from the back-end. The export is coming from the back-end so it shows you the raw data front-end receives.
A possible solution would be to offload some formatting from the front-end to back-end.
Another solution would generate csv export on the front-end (though that would only work for records that are already loaded)
[-]Improve Sp Audit Log Export appearance[/-][+]Use post-processed query results in CSV exports[/+][-]Use post-processed query results in CSV exports[/-][+]Use post-processed query results in query exports[/+]maxpatiiuk commentedon Feb 7, 2023
This issue also manifests itself with Agent Type. See #2954
maxpatiiuk commentedon Mar 22, 2023
From @chanulee1:
From @maxpatiiuk:
maxpatiiuk commentedon Mar 22, 2023
Related to #1144 as both concern SQL generation for formatting/aggregating
maxpatiiuk commentedon Mar 27, 2023
Yet another outcome of this issue:
From @grantfitzsimmons:
maxpatiiuk commentedon Mar 27, 2023
Once this is fixed, front-end formatting of query results can be removed (which would also result in slight performance improvements)
grantfitzsimmons commentedon Jun 21, 2023
This has come up again with Willem at SAIAB.
For reference, here are the numbers for each action in the SpAuditLog:
maxpatiiuk commentedon Jun 29, 2023
Partial work-around:
Caroline added ability to export only selected rows.
That export is done on the front-end - and if I remember correctly, it is done on the formatted data (or if not, won't be hard to change it to work on formatted data)
grantfitzsimmons commentedon Jun 17, 2024
From Garth at The University of Michigan: