Skip to content
Merged
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
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## Unreleased

### Fixed
- Typos "success" when returning status from API and "occurred" when logging to console.

### Added
- Add "when" parameter in a few GET API endpoints to enable pagination [#266](https://github.com/clowder-framework/clowder/issues/266)


## 1.18.1 - 2021-08-16

This release fixes a critical issue where invalid zip files could result in the files not being uploaded correctly. To check to see if you are affected, please use the following query:
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Following is a list of contributors in alphabetical order:
- Sandeep Puthanveetil Satheesan
- Smruti Padhy
- Theerasit Issaranon
- Tim Yardley
- Todd Nicholson
- Varun Kethineedi
- Ward Poelmans
Expand Down
6 changes: 3 additions & 3 deletions app/api/Selected.scala
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class Selected @Inject()(selections: SelectionService,
selections.get(user.email.get).map(d => {
selections.remove(d.id, user.email.get)
})
Ok(toJson(Map("sucess"->"true")))
Ok(toJson(Map("success"->"true")))
}
}
}
Expand All @@ -100,7 +100,7 @@ class Selected @Inject()(selections: SelectionService,
datasets.removeDataset(d.id, Utils.baseUrl(request), request.apiKey, request.user)
selections.remove(d.id, user.email.get)
})
Ok(toJson(Map("sucess"->"true")))
Ok(toJson(Map("success"->"true")))
}
}
}
Expand Down Expand Up @@ -189,7 +189,7 @@ class Selected @Inject()(selections: SelectionService,
events.addObjectEvent(request.user, d.id, d.name, EventType.ADD_TAGS_DATASET.toString)
datasets.index(d.id)
})
Ok(toJson(Map("sucess"->"true")))
Ok(toJson(Map("success"->"true")))
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion app/api/Sensors.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import play.api.Play.current
import services.PostgresPlugin

/**
* Metadata about sensors registered with the system. Datastreams can be associalted with sensors.
* Metadata about sensors registered with the system. Datastreams can be associated with sensors.
*/
object Sensors extends Controller with ApiController {

Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/select-bulk.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $(function() {
});

request.fail(function (jqXHR, textStatus, errorThrown){
console.error("The following error occured: "+ textStatus, errorThrown);
console.error("The following error occurred: "+ textStatus, errorThrown);
window.location = "../login"; // FIXME hardcoded
});

Expand Down
4 changes: 2 additions & 2 deletions app/assets/javascripts/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $(function() {
});

request.fail(function (jqXHR, textStatus, errorThrown){
console.error("The following error occured: "+ textStatus, errorThrown);
console.error("The following error occurred: "+ textStatus, errorThrown);
window.location = "../login"; // FIXME hardcoded
});

Expand All @@ -40,7 +40,7 @@ $(function() {
});

request.fail(function (jqXHR, textStatus, errorThrown){
console.error("The following error occured: "+ textStatus, errorThrown);
console.error("The following error occurred: "+ textStatus, errorThrown);
window.location = "../login"; // FIXME hardcoded
});

Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/customize.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ <h1>Customize</h1>
});
});
}).fail(function(jqXHR) {
console.error("The following error occured: " + jqXHR.responseText);
console.error("The following error occurred: " + jqXHR.responseText);
notify("The application preferences was not updated", "error");
});

Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/tos.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ <h1>Terms of Service</h1>
}).done(function() {
notify("The terms of service have been updated", "success");
}).fail(function(jqXHR) {
console.error("The following error occured: " + jqXHR.responseText);
console.error("The following error occurred: " + jqXHR.responseText);
notify("The terms of service are not updated", "error");
});

Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/users.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ <h4 class="panel-title">
users = { active: [], inactive: [], admin: [], unadmin: [] };
notify("Users successfully updated.", "success", false, 5000);
}).fail(function (jqXHR, textStatus, errorThrown){
console.error("The following error occured: " + textStatus, errorThrown);
console.error("The following error occurred: " + textStatus, errorThrown);
notify("Could not update users : " + errorThrown, "error");
});
} else {
Expand Down
14 changes: 7 additions & 7 deletions app/views/bookmarklet.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
var outstandingExtractions = new Array();
var tags = {};
var failedCountDown;
var sucessfullyDone;
var successfullyDone;
var countDone;
var status = '';
var imgdocs = {};
Expand Down Expand Up @@ -352,7 +352,7 @@
outstandingExtractions = new Array();
tags = {};
failedCountDown = 0;
sucessfullyDone = 0;
successfullyDone = 0;
countDone = 0;
status = '';
imgdocs = {};
Expand Down Expand Up @@ -430,16 +430,16 @@
// console.log("Checking submission status");
countDone=0;
failedCountDown=0;
sucessfullyDone=0;
successfullyDone=0;

for ( var j = 0; j < filesInfo.length; j++) {
if (filesInfo[j].status == 'Processing') {
console.log('---[check Results]---status: Processing');
} else if (filesInfo[j].status == 'Done') {
countDone++;
console.log('---countDone Incremented-- ');
sucessfullyDone++;
// jQuery('#DTSSuccessfulExtractions').text(sucessfullyDone);
successfullyDone++;
// jQuery('#DTSSuccessfulExtractions').text(successfullyDone);
} else if (filesInfo[j].status == 'Required Extractor is either busy or is not currently running. Try after some time.') {
console.log('---[check Results]---status: Required Extractor is either busy or is not currently running. Try after some time.');
}
Expand All @@ -457,9 +457,9 @@
}
}
// TODO update ui counts
jQuery('#DTSSuccessfulExtractions').text(sucessfullyDone);
jQuery('#DTSSuccessfulExtractions').text(successfullyDone);
jQuery('#DTSFailedExtractions').text(failedCountDown);
console.log('Successfull: ' + sucessfullyDone);
console.log('Successfull: ' + successfullyDone);
console.log('Failed: ' + failedCountDown);
if (countDone > 0 && countDone == filesInfo.length) {
status = 'Done';
Expand Down
4 changes: 2 additions & 2 deletions app/views/collectionPreviews.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ <h3>Previewers available for this collection</h3>
});

request.fail(function (jqXHR, textStatus, errorThrown){
console.error("The following error occured: " + textStatus, errorThrown);
console.error("The following error occurred: " + textStatus, errorThrown);
});
});

request.fail(function (jqXHR, textStatus, errorThrown){
console.error("The following error occured: " + textStatus, errorThrown);
console.error("The following error occurred: " + textStatus, errorThrown);
});


Expand Down
2 changes: 1 addition & 1 deletion app/views/commentform.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
});

request.fail(function(jqXHR, textStatus, errorThrown) {
console.error("The following error occured: " + textStatus, errorThrown);
console.error("The following error occurred: " + textStatus, errorThrown);
var errMsg = "You must be logged in to post a comment.";
if (!checkErrorAndRedirect(jqXHR, errMsg)) {
notify("Error posting comment : " + errorThrown, "error");
Expand Down
6 changes: 3 additions & 3 deletions app/views/dataset.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ <h4>Statistics</h4>
});

request.fail(function (jqXHR, textStatus, errorThrown){
console.error("The following error occured: " + textStatus, errorThrown);
console.error("The following error occurred: " + textStatus, errorThrown);
notify("Failed to archive dataset.", "error");
});
}
Expand All @@ -466,7 +466,7 @@ <h4>Statistics</h4>
});

request.fail(function (jqXHR, textStatus, errorThrown){
console.error("The following error occured: " + textStatus, errorThrown);
console.error("The following error occurred: " + textStatus, errorThrown);
notify("Failed to unarchive dataset.", "error");
});
}
Expand Down Expand Up @@ -694,7 +694,7 @@ <h4>Statistics</h4>

request.fail(function (jqXHR, textStatus, errorThrown){
$('#name').val("");
console.error("The following error occured: " + textStatus, errorThrown);
console.error("The following error occurred: " + textStatus, errorThrown);
var errMsg = "You must be logged in to create a new folder.";
if (!checkErrorAndRedirect(jqXHR, errMsg)) {
notify("Error in creating folder: " + errorThrown, "error");
Expand Down
2 changes: 1 addition & 1 deletion app/views/datasetInfo.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

request.fail(function (jqXHR, textStatus, errorThrown){
console.error(
"The following error occured: "+
"The following error occurred: "+
textStatus, errorThrown

);
Expand Down
2 changes: 1 addition & 1 deletion app/views/datasets/create.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ <h1>@Messages("create.header", Messages("dataset.title"))</h1>
});

request.fail(function (jqXHR, textStatus, errorThrown){
console.error("The following error occured: " + textStatus, errorThrown);
console.error("The following error occurred: " + textStatus, errorThrown);
var errMsg = "You must be logged in to create a new dataset.";
if (!checkErrorAndRedirect(jqXHR, errMsg)) {
notify("Error in creating dataset. : " + errorThrown, "error");
Expand Down
2 changes: 1 addition & 1 deletion app/views/datasets/editInfo.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
});

request.fail(function (jqXHR, textStatus, errorThrown){
console.error("The following error occured: "+textStatus, errorThrown);
console.error("The following error occurred: "+textStatus, errorThrown);
var errMsg = "You must be logged in to update the information about a dataset.";
if (!checkErrorAndRedirect(jqXHR, errMsg)) {
notify("The dataset information was not updated due to : " + errorThrown, "error");
Expand Down
6 changes: 3 additions & 3 deletions app/views/datasets/filesAndFolders.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
getUpdatedFilesAndFolders();
});
request.fail(function (jqXHR, textStatus, errorThrown){
console.error("The following error occured: " + textStatus, errorThrown);
console.error("The following error occurred: " + textStatus, errorThrown);
notify("Could not delete marked file "+selected[entry]+": " + errorThrown, "error");
// Add it back to selected list
addFileToMarked(selected[entry]);
Expand Down Expand Up @@ -263,7 +263,7 @@ <h4 class="modal-title">Tag All Marked Files</h4>
getUpdatedFilesAndFolders();
});
request.fail(function (jqXHR, textStatus, errorThrown) {
console.error("The following error occured: " + textStatus, errorThrown);
console.error("The following error occurred: " + textStatus, errorThrown);
notify("Could not tag marked file " + selected[entry] + ": " + errorThrown, "error");
});
}
Expand All @@ -282,7 +282,7 @@ <h4 class="modal-title">Tag All Marked Files</h4>
notify("Tag(s) successfully added.", "success", false, 2000);
});
request.fail(function (jqXHR, textStatus, errorThrown){
console.error("The following error occured: " + textStatus, errorThrown);
console.error("The following error occurred: " + textStatus, errorThrown);
notify("Could not tag selections: " + errorThrown, "error");
});

Expand Down
4 changes: 2 additions & 2 deletions app/views/datasets/tags.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ <h4>Tags</h4>
});

request.fail(function (jqXHR, textStatus, errorThrown) {
console.error("The following error occured: " + textStatus, errorThrown);
console.error("The following error occurred: " + textStatus, errorThrown);
var errMsg = "You must be logged in to remove a tag from a dataset.";
if (!checkErrorAndRedirect(jqXHR, errMsg)) {
notify("The tag was not removed from the dataset due to : " + errorThrown, "error");
Expand Down Expand Up @@ -150,7 +150,7 @@ <h4>Tags</h4>
});

request.fail(function (jqXHR, textStatus, errorThrown){
console.error("The following error occured: "+textStatus, errorThrown);
console.error("The following error occurred: "+textStatus, errorThrown);
var errMsg = "You must be logged in to add a tag to a dataset.";
if (!checkErrorAndRedirect(jqXHR, errMsg)) {
notify("The tag was not added to the dataset due to : " + errorThrown, "error");
Expand Down
2 changes: 1 addition & 1 deletion app/views/datasetsContainingFile.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
$(event.target.parentNode.parentNode).remove();
});
request.fail(function (jqXHR, textStatus, errorThrown){
console.error("The following error occured: "+textStatus, errorThrown);
console.error("The following error occurred: "+textStatus, errorThrown);
var errMsg = "You must be logged in to remove a file from a dataset.";
if (!checkErrorAndRedirect(jqXHR, errMsg)) {
notify("The file was not removed from the dataset due to : " + errorThrown, "error");
Expand Down
2 changes: 1 addition & 1 deletion app/views/emailAdmin.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ <h1>Email admins</h1>
$("#subject").val('')
$("#body").val('')
}).fail(function (jqXHR, textStatus, errorThrown) {
console.error("The following error occured: " + textStatus, errorThrown);
console.error("The following error occurred: " + textStatus, errorThrown);
notify("The application preferences was not updated due to : " + errorThrown, "error", false);
});
return false;
Expand Down
2 changes: 1 addition & 1 deletion app/views/errorPage.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h3>@re.toString()</h3>
});

request.fail(function (jqXHR, textStatus, errorThrown){
console.error("The following error occured: " + textStatus, errorThrown);
console.error("The following error occurred: " + textStatus, errorThrown);
});
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion app/views/extractions/submitDatasetExtraction.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ <h1>Submit dataset for extraction</h1>
});

request.fail(function (jqXHR, textStatus, errorThrown){
console.error("The following error occured: " + textStatus, errorThrown);
console.error("The following error occurred: " + textStatus, errorThrown);
});
}
</script>
Expand Down
2 changes: 1 addition & 1 deletion app/views/extractions/submitFileExtraction.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ <h1>Submit file for extraction</h1>
});

request.fail(function (jqXHR, textStatus, errorThrown){
console.error("The following error occured: " + textStatus, errorThrown);
console.error("The following error occurred: " + textStatus, errorThrown);
});
}
</script>
Expand Down
2 changes: 1 addition & 1 deletion app/views/extractions/submitSelectedExtraction.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ <h1>Submit marked files for extraction</h1>
});

request.fail(function (jqXHR, textStatus, errorThrown){
console.error("The following error occured: " + textStatus, errorThrown);
console.error("The following error occurred: " + textStatus, errorThrown);
});
}

Expand Down
10 changes: 5 additions & 5 deletions app/views/file.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ <h4>License</h4>
});

request.fail(function (jqXHR, textStatus, errorThrown){
console.error("The following error occured: " + textStatus, errorThrown);
console.error("The following error occurred: " + textStatus, errorThrown);
notify("Failed to archive file.", "error");
});

Expand All @@ -964,7 +964,7 @@ <h4>License</h4>
});

request.fail(function (jqXHR, textStatus, errorThrown){
console.error("The following error occured: " + textStatus, errorThrown);
console.error("The following error occurred: " + textStatus, errorThrown);
notify("Failed to unarchive file.", "error");
});

Expand Down Expand Up @@ -1152,7 +1152,7 @@ <h4>Tags</h4>
});

request.fail(function (jqXHR, textStatus, errorThrown){
console.error("The following error occured: " + textStatus, errorThrown);
console.error("The following error occurred: " + textStatus, errorThrown);
var errMsg = "You must be logged in to remove a tag from a file.";
if (!checkErrorAndRedirect(jqXHR, errMsg)) {
notify("The tag was not removed from the file due to : " + errorThrown, "error");
Expand Down Expand Up @@ -1185,7 +1185,7 @@ <h4>Tags</h4>
});

request.fail(function (jqXHR, textStatus, errorThrown){
console.error("The following error occured: " + textStatus, errorThrown);
console.error("The following error occurred: " + textStatus, errorThrown);
var errMsg = "You must be logged in to remove a tag from a file.";
if (!checkErrorAndRedirect(jqXHR, errMsg)) {
notify("The tag was not removed from the file due to : " + errorThrown, "error");
Expand Down Expand Up @@ -1249,7 +1249,7 @@ <h4>Tags</h4>
});

request.fail(function (jqXHR, textStatus, errorThrown){
console.error("The following error occured: " + textStatus, errorThrown);
console.error("The following error occurred: " + textStatus, errorThrown);
var errMsg = "You must be logged in to add a tag to a file.";
if (!checkErrorAndRedirect(jqXHR, errMsg)) {
notify("The tag was not added to the file due to : " + errorThrown, "error");
Expand Down
2 changes: 1 addition & 1 deletion app/views/files/share.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ <h1 id="file-name-title" class="inline break-word"><span class="glyphicon glyph
});

request.fail(function (jqXHR, textStatus, errorThrown){
console.error("The following error occured: " + textStatus, errorThrown);
console.error("The following error occurred: " + textStatus, errorThrown);
var errMsg = "You must be logged in to remove a tag from a file.";
if (!checkErrorAndRedirect(jqXHR, errMsg)) {
notify("The tag was not removed from the file due to : " + errorThrown, "error");
Expand Down
Loading