-
Notifications
You must be signed in to change notification settings - Fork 36
Adding paleo context as subview in collecting event table causes issues #725
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
Comments
Paleo context only works as a subview in CO if it is embedded |
I have not been able to to add a paleoContext subview on the CE form. It appears but I cannot add items.
db: Invertpaleo |
It looks like SubViews for independent fields are rendered as read-only.
It's easy to remove that. @benanhalt do you know why that was added initially? Is it related to #114? |
Yes. That is the intended behavior. If the paleocontext is set to be embedded according to the schema, then self.field.isDependent() should be true. If it's not then that is the bug. |
Can you explain why? Also, |
When creating a new accession record in Specify 6, the Repository Agreement subview under the Accession table is working correctly. When creating a record in Specify 7, there is no way to add a Repository Agreement to an Accession record. The + icon is disabled. This is in the same database with the same forms. The behavior begins to complicate after saving the Accession record: Now a Repository Agreement is randomly assigned. I created a single repository agreement in this database and it immediately selected it. There is no way to remove this relationship or modify it. When viewing the same record in Specify 6, it shows there is no Repository Agreement assigned. Database: https://pripaleo-edge.test.specifysystems.org/specify/view/collectionobject/70641/ Reported By: Matthew Cruz at The University of Michigan |
|
Solutions:
|
What is the issue with marking paleo context as dependent? |
And how can I verify that this has been solved? Is it on |
This has not been fixed yet. If you want paleo context to be displayed as a SubView, ask Ben to mark it as a dependent |
@benanhalt Can you mark this relationship as dependent to solve this problem? |
It isn't always dependent. It can be set to embedded or not, and also it can be set to be embedded in different tables. So the dependent status depends on those settings. I can check to see if it is properly respecting the settings. |
The logic is handled here: specify7/specifyweb/frontend/js_src/lib/specifyfield.ts Lines 282 to 291 in d9776d6
It looks like it is implemented so you need to check if the database has paleo context set to be embedded in collecting event in this database. |
This could be just a visual bug. @grantfitzsimmons Are you still able to replicate it Current behavior: |
Same rule applies to Collecting Events. If "IsEmbeddedCollectingEvent" boolean is true for the current collection (can be changed on the collection form), then Collecting Event can be displayed as a SubView/form table. Otherwise, it can only be displayed as a query combo box or a subview button |
I've attached screenshots of what the same paleo context subform looks like as a subview in CE table vs CO table. It looks the same in both tables in Specify 6


Paleo context subform in collecting event table:
Paleo context subform in collection object table:
The text was updated successfully, but these errors were encountered: