Skip to content

Conversation

@CarolineDenis
Copy link
Contributor

@CarolineDenis CarolineDenis commented Nov 21, 2025

Fixes #7553

Checklist

  • Self-review the PR after opening it to make sure the changes look good and
    self-explanatory (or properly documented)
  • Add relevant issue to release milestone
  • Add pr to documentation list
  • Add automated tests
  • Add a reverse migration if a migration is present in the PR

Testing instructions

TaxonTreeEditor.DisplayAuthor

  • Use the TaxonTreeEditor.DisplayAuthor in user prefs and verify it works.

Sorting in trees

Test rank threshold:

  • Go to User Preferences

  • Verify that under each tree there is an option to configure the "Show object count"'

    image
  • Verify that the ranks returned are correct for the current collection's tree(s)

  • Select a rank from each tree

  • Verify that the counts for all nodes under that level are shown in the tree

  • Test this across all current trees and verify the behavior

sp7_scope_table_picklists

  • Go to Collection Preferences
  • Verify the sp7_scope_table_picklists pref is disabled
  • Verify on a form that pick list for entire tables are using all the items available across collection (i.e on the CO form, create a prep, open the drop down for prep type and verify that there are options from all collections)
  • Go to Collection Preferences
  • Enable the pref
  • Verify on a form that pick list for entire tables are using only the items available for the logged in collection (i.e on the CO form, create a prep, open the drop down for prep type and verify that the options are only from that collection)

attachment.is_public_default

  • Go to Collection Preferences
  • Verify the attachment.is_public_default pref is disabled
  • Go to a form that has an attachment subview/plugin
  • Add an attachment
  • Verify it is not marked as public
  • Go to Collection Preferences
  • Enable attachment.is_public_default pref
  • Save
  • Go to a form that has an attachment subview/plugin
  • Add an attachment
  • Verify it is marked as public

sp7.allow_adding_child_to_synonymized_parent.{table}

  • Go to Collection Preferences
  • Verify the allow_adding_child_to_synonymized_parent.{table} pref is disabled
  • Go to the tree corresponding to the pref you checked
  • Verify you cannot add children to a synonymized node
  • Go to Collection Preferences
  • Enable the allow_adding_child_to_synonymized_parent.{table} pref
  • Go to the tree corresponding to the pref you checked
  • Verify you can add children to a synonymized node
  • Proceed with same steps for all trees

showPreparationsTotal

  • Go to Collection Preferences
  • Verify the showPreparationsTotal pref is enabled
  • Go to the stat page
  • verify the total count for prep is displayed
  • Go to Collection Preferences
  • Verify the showPreparationsTotal pref is disabled
  • Go to the stat page
  • verify the total count for prep is not displayed

catalogNumberParentInheritance.inheritance
uniqueCatalogNumberAccrossComponentAndCO

For those 2, verify the feature is still working. Refer to step 4 and 12 in the testing instructions of #6721

catalogNumberInheritance.inheritance

  • Verify the pref is enabled
  • create a COG of type consolidated
  • add a child CO with a cat number and mark it as primary
  • add a second child CO with empty cat number
  • save
  • open the second child CO in a new tab
  • Verify the cat num field is filled with a place holder corresponding to the primary CO cat num
  • Verify the cat num field is filled with a place holder corresponding to the primary CO cat num when you expand the CO subview on the COG page
  • Verify that this behavior does not happen when you disable the pref

Security

  • Verify that the collection prefs cannot be modified by a user with no permission

@CarolineDenis CarolineDenis linked an issue Nov 21, 2025 that may be closed by this pull request
<cell colspan="3" id="20" label="RESTORE_EXPANSION_STATE" name="TreeEditor.RestoreTreeExpansionState" type="field" uitype="checkbox" />
</row>
<row>
<cell colspan="3" id="-20" label="PROMPT_TO_REPLACE_SYNONYM" name="Determination.PromptToReplaceSynonym" type="field" uitype="checkbox" />
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Go through this file and remove obsolete cells

@@ -0,0 +1,78 @@
import type { RA } from '../../utils/types';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

necessary? See permissions/definitions.ts

@CarolineDenis CarolineDenis changed the title Feat(preferences): Create a UI for global and collection preferences Feat(preferences): Create a UI for collection preferences Nov 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 📋Back Log

Development

Successfully merging this pull request may close these issues.

Create a visual editor for Collection Prefs

3 participants