Skip to content

Commit fa651f1

Browse files
robkooperTim Yardleylmarini
authored
fix typos (#269)
* fix typos * Added changelog entry and Tim Yardley to CONTRIBUTORS.md. Co-authored-by: Tim Yardley <[email protected]> Co-authored-by: Luigi Marini <[email protected]> Co-authored-by: Luigi Marini <[email protected]>
1 parent 3b85ce9 commit fa651f1

File tree

75 files changed

+150
-159
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+150
-159
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

77
## Unreleased
8+
9+
### Fixed
10+
- Typos "success" when returning status from API and "occurred" when logging to console.
11+
812
### Added
913
- Add "when" parameter in a few GET API endpoints to enable pagination [#266](https://github.com/clowder-framework/clowder/issues/266)
1014

11-
1215
## 1.18.1 - 2021-08-16
1316

1417
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:

CONTRIBUTORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Following is a list of contributors in alphabetical order:
3434
- Sandeep Puthanveetil Satheesan
3535
- Smruti Padhy
3636
- Theerasit Issaranon
37+
- Tim Yardley
3738
- Todd Nicholson
3839
- Varun Kethineedi
3940
- Ward Poelmans

app/api/Selected.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class Selected @Inject()(selections: SelectionService,
8787
selections.get(user.email.get).map(d => {
8888
selections.remove(d.id, user.email.get)
8989
})
90-
Ok(toJson(Map("sucess"->"true")))
90+
Ok(toJson(Map("success"->"true")))
9191
}
9292
}
9393
}
@@ -100,7 +100,7 @@ class Selected @Inject()(selections: SelectionService,
100100
datasets.removeDataset(d.id, Utils.baseUrl(request), request.apiKey, request.user)
101101
selections.remove(d.id, user.email.get)
102102
})
103-
Ok(toJson(Map("sucess"->"true")))
103+
Ok(toJson(Map("success"->"true")))
104104
}
105105
}
106106
}
@@ -189,7 +189,7 @@ class Selected @Inject()(selections: SelectionService,
189189
events.addObjectEvent(request.user, d.id, d.name, EventType.ADD_TAGS_DATASET.toString)
190190
datasets.index(d.id)
191191
})
192-
Ok(toJson(Map("sucess"->"true")))
192+
Ok(toJson(Map("success"->"true")))
193193
}
194194
}
195195
}

app/api/Sensors.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import play.api.Play.current
55
import services.PostgresPlugin
66

77
/**
8-
* Metadata about sensors registered with the system. Datastreams can be associalted with sensors.
8+
* Metadata about sensors registered with the system. Datastreams can be associated with sensors.
99
*/
1010
object Sensors extends Controller with ApiController {
1111

app/assets/javascripts/select-bulk.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ $(function() {
2020
});
2121

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

app/assets/javascripts/select.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $(function() {
1919
});
2020

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

@@ -40,7 +40,7 @@ $(function() {
4040
});
4141

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

app/views/admin/customize.scala.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ <h1>Customize</h1>
130130
});
131131
});
132132
}).fail(function(jqXHR) {
133-
console.error("The following error occured: " + jqXHR.responseText);
133+
console.error("The following error occurred: " + jqXHR.responseText);
134134
notify("The application preferences was not updated", "error");
135135
});
136136

app/views/admin/tos.scala.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ <h1>Terms of Service</h1>
5454
}).done(function() {
5555
notify("The terms of service have been updated", "success");
5656
}).fail(function(jqXHR) {
57-
console.error("The following error occured: " + jqXHR.responseText);
57+
console.error("The following error occurred: " + jqXHR.responseText);
5858
notify("The terms of service are not updated", "error");
5959
});
6060

app/views/admin/users.scala.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ <h4 class="panel-title">
212212
users = { active: [], inactive: [], admin: [], unadmin: [] };
213213
notify("Users successfully updated.", "success", false, 5000);
214214
}).fail(function (jqXHR, textStatus, errorThrown){
215-
console.error("The following error occured: " + textStatus, errorThrown);
215+
console.error("The following error occurred: " + textStatus, errorThrown);
216216
notify("Could not update users : " + errorThrown, "error");
217217
});
218218
} else {

app/views/bookmarklet.scala.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
var outstandingExtractions = new Array();
3232
var tags = {};
3333
var failedCountDown;
34-
var sucessfullyDone;
34+
var successfullyDone;
3535
var countDone;
3636
var status = '';
3737
var imgdocs = {};
@@ -352,7 +352,7 @@
352352
outstandingExtractions = new Array();
353353
tags = {};
354354
failedCountDown = 0;
355-
sucessfullyDone = 0;
355+
successfullyDone = 0;
356356
countDone = 0;
357357
status = '';
358358
imgdocs = {};
@@ -430,16 +430,16 @@
430430
// console.log("Checking submission status");
431431
countDone=0;
432432
failedCountDown=0;
433-
sucessfullyDone=0;
433+
successfullyDone=0;
434434

435435
for ( var j = 0; j < filesInfo.length; j++) {
436436
if (filesInfo[j].status == 'Processing') {
437437
console.log('---[check Results]---status: Processing');
438438
} else if (filesInfo[j].status == 'Done') {
439439
countDone++;
440440
console.log('---countDone Incremented-- ');
441-
sucessfullyDone++;
442-
// jQuery('#DTSSuccessfulExtractions').text(sucessfullyDone);
441+
successfullyDone++;
442+
// jQuery('#DTSSuccessfulExtractions').text(successfullyDone);
443443
} else if (filesInfo[j].status == 'Required Extractor is either busy or is not currently running. Try after some time.') {
444444
console.log('---[check Results]---status: Required Extractor is either busy or is not currently running. Try after some time.');
445445
}
@@ -457,9 +457,9 @@
457457
}
458458
}
459459
// TODO update ui counts
460-
jQuery('#DTSSuccessfulExtractions').text(sucessfullyDone);
460+
jQuery('#DTSSuccessfulExtractions').text(successfullyDone);
461461
jQuery('#DTSFailedExtractions').text(failedCountDown);
462-
console.log('Successfull: ' + sucessfullyDone);
462+
console.log('Successfull: ' + successfullyDone);
463463
console.log('Failed: ' + failedCountDown);
464464
if (countDone > 0 && countDone == filesInfo.length) {
465465
status = 'Done';

0 commit comments

Comments
 (0)