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

Annotation tool now outputs JSON files reflecting the annotated table #163

Merged
merged 5 commits into from
Jun 7, 2022

Conversation

jarmoza
Copy link
Contributor

@jarmoza jarmoza commented Jun 6, 2022

Primary changes:

Other related changes:

Copy link
Contributor

@surchs surchs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay 🎉. Awesome milestone @jarmoza! We definitely need to celebrate this!
I think this is something you should consider demonstrating to the group on Thursday. Then we can also see how this sprint-release demo thing works for us.

To the PR: tried it out, confirmed it works! I think there is a bit of code duplication going on in the download.vue page but that's alright for now. Would still suggest to add a flag so we'll find it again during refactor!

Otherwise all looks great to me, let's go ahead and merge this!

components/annot-tab.vue Outdated Show resolved Hide resolved

return `${this.datasetName}_annotated_${Date.now()}.json`;
},

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wanted to say: very nice and clean stuff going on here! 🎉

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Danke!

pages/download.vue Outdated Show resolved Hide resolved
saveAs(blob, this.defaultOutputFilename);
},

refreshCategoryToColumnMap() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm pretty sure this is a duplicate from elsewhere in the app, no?
Let's at least add a // TODO flag or something like it so we don't forget to refactor this!

Copy link
Contributor Author

@jarmoza jarmoza Jun 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, this is in fact a method to create/refresh a reverse of the column to category map in the store. categoryToColumnMap is a local object only used by the download page. Made sense to update it in some way in case a user altered the columnToCategoryMap in the store.

Instead of putting a watch on columnToCategoryMap, I elected to make the refresh happen upon component mounted.

Let me know if you have an implementation suggestion around that though!

pages/download.vue Outdated Show resolved Hide resolved
jarmoza and others added 3 commits June 7, 2022 10:05
Co-authored-by: Sebastian Urchs <surchs@users.noreply.github.com>
Co-authored-by: Sebastian Urchs <surchs@users.noreply.github.com>
Co-authored-by: Sebastian Urchs <surchs@users.noreply.github.com>
@jarmoza jarmoza merged commit 1be6c55 into master Jun 7, 2022
@jarmoza jarmoza deleted the initial-output-file branch June 7, 2022 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Create JSON output of annotated input data
2 participants