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

Added incremental id in history items #142

Merged
Show file tree
Hide file tree
Changes from 1 commit
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: 3 additions & 2 deletions src/fprime_gds/flask/static/js/datastore.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ class HistoryHelper {
let _self = this;
// Break our when no new items returned
if (new_items.length === 0) { return; }
new_items.filter((item) => item.time).forEach((item) => {
item.datetime = timeToDate(item.time)
new_items.filter((item) => item.time).forEach((item, index) => {
item.datetime = timeToDate(item.time);
item.incremental_id = index + this.store.length;
SMorettini marked this conversation as resolved.
Show resolved Hide resolved
});
this.consumers.forEach((consumer) => {
try {
Expand Down
2 changes: 1 addition & 1 deletion src/fprime_gds/flask/static/js/vue-support/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Vue.component("event-list", {
* @return {string} unique key
*/
keyify(item) {
return "evt-" + item.id + "-" + item.time.seconds + "-"+ item.time.microseconds;
return "evt-" + item.id + "-" + item.time.seconds + "-"+ item.time.microseconds + "-" + item.incremental_id;
},
/**
* A function to clear events out of the data store. This is to reset the events entirely.
Expand Down
Loading