Skip to content

Commit

Permalink
added some console.logs for debugging purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelchadwick committed Nov 22, 2024
1 parent 55dc4d0 commit f12ecb7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/frontend/app/components/reports/subject.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export default class ReportsSubjectComponent extends Component {
@tracked myReportEditorOn = false;

get reportDescriptionPromise() {
console.log('ReportsSubjectComponent promise');
return this.reporting.buildReportDescription(
this.args.report.subject,
this.args.report.prepositionalObject,
Expand Down
8 changes: 6 additions & 2 deletions packages/frontend/app/services/graphql.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,15 @@ export default class GraphqlService extends Service {
}

async find(endpoint, filters, attributes) {
console.log('GraphqlService find');
const filterString = filters.length ? '(' + filters.join(', ') + ')' : '';
return this.#query(`query { ${endpoint}${filterString} { ${attributes} } }`);
const result = this.#query(`query { ${endpoint}${filterString} { ${attributes} } }`);
console.log('GraphqlService find completed', result);
return result;
}

findTask = task(async (endpoint, filters, attributes, signal) => {
console.log('GraphqlService findTask');
const filterString = filters.length ? '(' + filters.join(', ') + ')' : '';
const url = `${this.host}/api/graphql`;
const headers = this.authHeaders;
Expand Down Expand Up @@ -74,7 +78,7 @@ export default class GraphqlService extends Service {
error: 'bad stuff',
};
} finally {
console.log('graphql completed');
console.log('Graphql findTask completed', response);
}
});
}
1 change: 1 addition & 0 deletions packages/frontend/app/services/reporting.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export default class ReportingService extends Service {
prepositionalObjectTableRowId,
school,
) {
console.log('ReportingService buildReportDescription', subject);
try {
const props = await this.getDescriptiveProperties(
subject,
Expand Down

0 comments on commit f12ecb7

Please sign in to comment.