Skip to content

Commit

Permalink
More logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
tealefristoe committed Oct 15, 2024
1 parent 057a3df commit 317bc05
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/feature_component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ export const FeatureComponent = observer(class FeatureComponent extends Componen
return iDataset.datasetName;
}),
tLists = Object.keys(SQ.lists).concat(tWordListDatasetNames)
console.log(`*** tWordListSpecs`, tWordListSpecs);
console.log(` ** tWordListDatasetNames`, tWordListDatasetNames);
return (
<SelectBox
dataSource={tLists}
Expand Down
4 changes: 4 additions & 0 deletions src/stores/feature_store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,16 +258,19 @@ export class FeatureStore {
}

async updateWordListSpecs() {
console.log(`!!! wordListSpecs`, JSON.stringify(this.wordListSpecs));
while (this.wordListSpecs.length > 0) {
this.wordListSpecs.pop();
}
console.log(` !! purged`, this.wordListSpecs);
const tContextListResult: any = await codapInterface.sendRequest({
"action": "get",
"resource": "dataContextList"
}).catch((reason) => {
console.log('unable to get datacontext list because ' + reason);
})
if (tContextListResult?.success) {
console.log(` !! datasets`, tContextListResult.values);
tContextListResult.values.forEach(async (aValue: any) => {
const tCollectionsResult: any = await codapInterface.sendRequest({
action: 'get',
Expand All @@ -284,6 +287,7 @@ export class FeatureStore {
console.log('unable to get attribute list because ' + reason);
});
if (tAttributesResult.values.length >= 1) {
console.log(` ! adding`, aValue.title);
this.wordListSpecs.push({
datasetName: aValue.title,
firstAttributeName: tAttributesResult.values[0].name
Expand Down

0 comments on commit 317bc05

Please sign in to comment.