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

Implemented mutation to change column to category mapping #283

Merged
merged 7 commits into from
Dec 16, 2022

Conversation

rmanaem
Copy link
Contributor

@rmanaem rmanaem commented Dec 16, 2022

closes #252

rmanaem and others added 5 commits December 15, 2022 17:07
The mutation changes the mapping of an already mapped column to a different category

Co-authored-by: Sebastian Urchs <surchs@users.noreply.github.com>
Mutation:
- removes the mapping of column to category if they're already mapped
- changes the mapping of column to category if they're not already mapped
Component reflects the changes following the implementation of alterColumnCategoryMapping mutation
Component and its test reflect the changes following the implementation of alterColumnCategoryMapping mutation
Component and its test reflect the changes following the implementation of alterColumnCategoryMapping mutation
@rmanaem rmanaem self-assigned this Dec 16, 2022
@rmanaem rmanaem linked an issue Dec 16, 2022 that may be closed by this pull request
6 tasks
Removed `{key: "category"}` field
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.

Very cool PR @rmanaem 🎉, thank you! Thanks also for fixing that little extra column thing in the column-linking-table, I think I had missed that.

Everything looks good, I left some comments to point out things I think you left over from debugging. And I think the store mutation either needs a docstring or a slightly clearer argument name for the category - or maybe both.

With these changes: good to go!

edit: also: very cool that our cypress runner just picks up the new unit tests! Eventually we could look into having those run as part of their own action!

components/column-linking-table.vue Outdated Show resolved Hide resolved
cypress/component/column-linking-table.cy.js Show resolved Hide resolved
cypress/component/column-linking-table.cy.js Outdated Show resolved Hide resolved
cypress/component/annot-columns.cy.js Show resolved Hide resolved
store/index-refactor.js Outdated Show resolved Hide resolved
store/index-refactor.js Outdated Show resolved Hide resolved
- removed dead code and comments in components
- uncommented columnToCategoryMapping object in store state
- changed activeCategory to targetCategory in alterColumnCategoryMapping mutation
- added docstring for alterColumnCategoryMapping
@rmanaem rmanaem merged commit e0ae684 into dev_components_talk_to_store_directly Dec 16, 2022
@rmanaem rmanaem deleted the maint-252 branch December 16, 2022 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

create mutation to change column to category mapping
2 participants