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
Copy file name to clipboardExpand all lines: doc/release-notes/6.9-release-notes.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,6 +95,7 @@ See [the guides](https://guides.dataverse.org/en/6.9/developers/workflows.html#c
95
95
- In prior versions of Dataverse, publishing a dataset via the superuser-only update-current-version option would not set the current curation status (if enabled/used) to none/empty and, in v6.7, would not maintain the curation status history. These issues are now resolved and the update-current-version option works the same as normal publication of a new version with regard to curation status. See #11783 and #11784.
96
96
- This release fixes problems with guestbook questions being displayed at download when files are selected from the dataset files table when guestbook-at-request is enabled and not displaying when they should when access is requested from the file page. See #11800, #11808, and #11835.
97
97
- The optional Croissant exporter has been updated to 0.1.6 to prevent variable names, variable descriptions, and variable types from being exposed for restricted files. See https://github.com/gdcc/exporter-croissant/pull/20 and #11752.
98
+
- Manage Gustbooks page was optimized to load much faster for collections with large numbers of downloads recorded.
Copy file name to clipboardExpand all lines: doc/sphinx-guides/source/versions.rst
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@ This list provides a way to refer to the documentation for previous and future v
8
8
9
9
- pre-release `HTML (not final!) <http://preview.guides.gdcc.io/en/develop/>`__ and `PDF (experimental!) <http://preview.guides.gdcc.io/_/downloads/en/develop/pdf/>`__ built from the :doc:`develop </developers/version-control>` branch :doc:`(how to contribute!) </contributor/documentation>`
Copy file name to clipboardExpand all lines: src/main/java/edu/harvard/iq/dataverse/GuestbookResponseServiceBean.java
+17-9Lines changed: 17 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -488,17 +488,25 @@ public Long findCount30Days(Long dataverseId) {
488
488
return (Long) query.getSingleResult();
489
489
}
490
490
491
-
publicLongfindCountAll() {
492
-
returnfindCountAll(null);
493
-
}
494
-
495
491
publicLongfindCountAll(LongdataverseId) {
496
-
StringqueryString;
497
-
if (dataverseId != null) {
498
-
queryString = "select count(o.id) from GuestbookResponse o, DvObject v where o.dataset_id = v.id and v.owner_id = " + dataverseId + " ";
499
-
} else {
500
-
queryString = "select count(o.id) from GuestbookResponse o ";
492
+
493
+
if (dataverseId == null) {
494
+
returnnull;
501
495
}
496
+
497
+
// Note that this method used to support NULL dataverseId,
498
+
// in which case it counted ALL the guestbookresponse rows
499
+
// for the entire instance:
500
+
// queryString = "select count(o.id) from GuestbookResponse o ";
501
+
// I removed this code (it was not being used, thankfully) since
502
+
// the query can be insanely expensive on a large production table.
503
+
// That's why we use a stored procedure to "estimate" its size, in
504
+
// the dedicated getTotalDownloadCount() method further below, for
505
+
// example, when we need to show the total number of downloads on
506
+
// the homepage. (L.A.)
507
+
508
+
StringqueryString = "select count(o.id) from GuestbookResponse o, DvObject v, Dataset d where o.dataset_id = v.id and v.id = d.id and v.owner_id = " + dataverseId + " ";
0 commit comments