Skip to content

Commit

Permalink
Merge pull request #147 from rajnishdargan/IQ-752
Browse files Browse the repository at this point in the history
Issue #IQ-752 feat: Pass X-Request-Id for API calls in inQuiry editor
  • Loading branch information
sajeshkayyath authored Apr 15, 2024
2 parents 9243b15 + 66ae005 commit 9551fb2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion projects/questionset-editor-library/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@project-sunbird/sunbird-questionset-editor",
"version": "8.0.0",
"version": "8.0.1",
"dependencies": {
"tslib": "^2.0.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ export class DataService {
ts: '2020-12-31T16:23:27+05:30', // moment().format(), //TODO::
'X-msgid': uuidv4(),
// tslint:disable-next-line:max-line-length
Authorization: ''
Authorization: '',
'X-Request-Id': uuidv4()
};

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { EditorTelemetryService } from '../../services/telemetry/telemetry.servi
import { DataService } from '../data/data.service';
import { map } from 'rxjs/operators';
import { HttpClient } from '@angular/common/http';
import { v4 as uuidv4 } from 'uuid';
interface SelectedChildren {
label?: string;
primaryCategory?: string;
Expand Down Expand Up @@ -710,7 +711,8 @@ getDependentNodes(identifier) {

getChannelHeader() {
return {
['X-Channel-Id']: this.editorConfig.context.channel
['X-Channel-Id']: this.editorConfig.context.channel,
['X-Request-Id']: uuidv4()
}
}
}

0 comments on commit 9551fb2

Please sign in to comment.