Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[bvl_feedback] Update summary in real time #8966

Merged
merged 2 commits into from
Dec 1, 2023
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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ changes in the following format: PR #1234***
#### Features
- Add OpenID Connect authorization support to LORIS (PR #8255)

#### Bug Fixes
- bvl_feedback updates in real-time (PR #8966)

## LORIS 25.0 (Release Date: ????-??-??)
### Core
#### Features
Expand Down
5 changes: 4 additions & 1 deletion modules/bvl_feedback/ajax/open_bvl_feedback_thread.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
exit;
}

header("HTTP/1.1 204 No Content");
header("Content-Type: application/json");
print json_encode(
['status' => 'success']
);
exit;

16 changes: 6 additions & 10 deletions modules/bvl_feedback/jsx/react.behavioural_feedback_panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -900,11 +900,9 @@ class FeedbackPanel extends Component {
console.error(response.status + ': ' + response.statusText);
return;
}

response.json().then(() => {
this.setState({threads: threads});
this.loadSummaryServerData();
});
this.setState({threads: threads});
this.loadSummaryServerData();
this.loadThreadServerState();
}).catch((error) => {
console.error(error);
});
Expand Down Expand Up @@ -936,11 +934,9 @@ class FeedbackPanel extends Component {
console.error(response.status + ': ' + response.statusText);
return;
}

response.json().then(() => {
this.setState({threads: threads});
this.loadSummaryServerData();
});
this.setState({threads: threads});
this.loadSummaryServerData();
this.loadThreadServerState();
}).catch((error) => {
console.error(error);
});
Expand Down
Loading