Skip to content

Table Aggregation only uses the oldest aggregation, doesn't respect new selected aggregation #4864

Description

@combs-a

Describe the bug
When you create multiple aggregations, the only aggregator used is the oldest one created. Setting a different aggregator as the default, setting it in Schema Config, and changing the Custom Field Format in a Table Format that uses the aggregation does not change it.

To Reproduce
Steps to reproduce the behavior:

  1. Go to App Resources
  2. Create a new 'Determination' table aggregation (do not remove the old one)
  3. Set it as default
  4. Query on Collection Object using a Table Format that has the field Determinations -> Aggregated
  5. See that it uses the old table aggregation
  6. Go back to App Resources -> Table Formatters -> Collection Object
  7. Check "Customize field formats"
  8. Change the Determination's field format to the new table aggregation's name
  9. Repeat steps number 4 and 5
  10. (OPTIONAL) Go to Schema Config and set Determination's Table Aggregation to the new table aggregation you made
  11. (OPTIONAL) Repeat 4 and 5
  12. Delete the old table aggregation
  13. Repeat 4, see that it is now using the new aggregation

(Optional on the schema config changes, since unsure if these are supposed to affect queries on other tables. It seemed to not affect anything.)

Expected behavior
You should be able to switch the table aggregation.

Screenshots
For these, I had table aggregation in the Schema Config -> Determinations set to None.

Steps 1-5:

1_aggregation1.mp4

Steps 6-9, then 12-13:

1_aggregation2.mp4
  • OS: Windows 10
  • Browser: Firefox
  • Specify 7 Version: edge and v7.9.3
  • Database Name: sdnhm_herps_2_8_24
  • Collection name: Herp-PC
  • User Name: testuser

Specify 7 System Information - 2024-05-01T15 03 34.772Z.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    1 - BugIncorrect behavior of the product2 - App ResourcesIssues that are related to app resources2 - Schema ConfigIssues that are related to the Schema Config tooltodo:verifyNeeds Verification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions