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

Refactor getter 'getAnnotationComponent' #345

Merged
merged 2 commits into from
Feb 6, 2023

Conversation

jarmoza
Copy link
Contributor

@jarmoza jarmoza commented Feb 3, 2023

This closes #267.

There is now a getter to retrieve what was once specializedComponent in the annotationDetails list in the store.

Now the componentName (currently annot-continuous-values or annot-categorical) is listed alongside each category in the categories object.

This implementation is accompanied by 3 unit tests for the current categories that are operative on the annotation page: 'Age' (continuous values), 'Sex' and 'Diagnosis' (categorical). There is currently no component for the 'Subject ID' category as this requires no annotation.

@jarmoza jarmoza added annotation page maint:refactor Simplifying or restructuring existing code or documentation. labels Feb 3, 2023
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.

Looks good @jarmoza ! You have a checkbox for depending components have been checked and are calling this mutation correctly on the issue, is there any component that needs to change its ways to play nice with this getter?

Otherwise good to go 🎉 !

Copy link
Contributor

@rmanaem rmanaem left a comment

Choose a reason for hiding this comment

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

Good to go!

@jarmoza
Copy link
Contributor Author

jarmoza commented Feb 6, 2023

Thanks @surchs. Currently looking into why the annot-tab components are not being loaded (the only component dependent upon this getter) on the annotation page - before I merge this PR.

@jarmoza
Copy link
Contributor Author

jarmoza commented Feb 6, 2023

As per #347 , full testing of getters like getAnnotationComponent can only occur after it is possible to refactor the annotation page itself.

@jarmoza jarmoza merged commit a5e35f0 into dev_components_talk_to_store_directly Feb 6, 2023
@jarmoza jarmoza deleted the jarmoza-267 branch February 6, 2023 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
annotation page maint:refactor Simplifying or restructuring existing code or documentation.
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants