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

MOTs: Add frontend picklist for COType #5170

Merged
merged 2 commits into from
Aug 5, 2024
Merged

MOTs: Add frontend picklist for COType #5170

merged 2 commits into from
Aug 5, 2024

Conversation

sharadsw
Copy link
Contributor

@sharadsw sharadsw commented Aug 1, 2024

Fixes #5169

NOTES:
Yay more MOTs
Added a frontend picklist similar to the preptype picklist. All columns in the workbench mapped to CoType -> name should use this.

Checklist

  • Self-review the PR after opening it to make sure the changes look good
    and self-explanatory (or properly documented)
  • Add automated tests
  • Add relevant issue to release milestone

Testing instructions

  • Create a workbench dataset with base table CollectionObjectType
  • Map a column to CollectionObjectType -> name
  • Click save
  • Verify the column you mapped is a picklist containing all CollectionObjectTypes that exist in your db
  • Re-run the same test with CollectionObject as the base table and mapping a column to CollectionObject -> CollectionObjectType -> name

@sharadsw sharadsw added this to the 7.9.7 milestone Aug 1, 2024
@sharadsw sharadsw marked this pull request as ready for review August 1, 2024 17:28
@sharadsw sharadsw requested a review from a team August 1, 2024 17:28
@sharadsw sharadsw changed the title Add frontend picklist for COType MOTs: Add frontend picklist for COType Aug 1, 2024
Copy link
Collaborator

@emenslin emenslin left a comment

Choose a reason for hiding this comment

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

Testing instructions

  • Create a workbench dataset with base table CollectionObjectType
  • Map a column to CollectionObjectType -> name
  • Click save
  • Verify the column you mapped is a picklist containing all CollectionObjectTypes that exist in your db
  • Re-run the same test with CollectionObject as the base table and mapping a column to CollectionObject -> CollectionObjectType -> name

Cannot actually validate the dataset if it contains collectionobjecttype

chrome_frE2kFyiiK.mp4

Also the table does not have an icon in the dataset
Screenshot 2024-08-01 124028

@sharadsw
Copy link
Contributor Author

sharadsw commented Aug 5, 2024

@emenslin Thanks for testing! Opened a new issue #5175 for the validation error as it seems to involve fixing some backend logic. The icons should be fine when #2864 is fixed. Opened a new PR for it: #5176

@sharadsw sharadsw requested review from emenslin and a team August 5, 2024 14:55
Copy link
Collaborator

@emenslin emenslin left a comment

Choose a reason for hiding this comment

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

Testing instructions

  • Create a workbench dataset with base table CollectionObjectType
  • Map a column to CollectionObjectType -> name
  • Click save
  • Verify the column you mapped is a picklist containing all CollectionObjectTypes that exist in your db
  • Re-run the same test with CollectionObject as the base table and mapping a column to CollectionObject -> CollectionObjectType -> name

Looks good!

@emenslin emenslin requested a review from a team August 5, 2024 15:07
Copy link
Contributor

@alesan99 alesan99 left a comment

Choose a reason for hiding this comment

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

Testing instructions

  • Create a workbench dataset with base table CollectionObjectType
  • Map a column to CollectionObjectType -> name
  • Click save
  • Verify the column you mapped is a picklist containing all CollectionObjectTypes that exist in your db
  • Re-run the same test with CollectionObject as the base table and mapping a column to CollectionObject -> CollectionObjectType -> name

The picklist is working well on my db 👍👍

@sharadsw sharadsw merged commit 32d3301 into production Aug 5, 2024
9 checks passed
@sharadsw sharadsw deleted the issue-5169 branch August 5, 2024 19:53
@specifysoftware
Copy link

This pull request has been mentioned on Specify Community Forum. There might be relevant details there:

https://discourse.specifysoftware.org/t/specify-7-9-7-release-announcement/1979/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

MOTs: Create a frontend picklist for CollectionObjectType
5 participants