Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Consistent Ordering of Products #234

@stdavis

Description

@stdavis

From Rick:

Is there a way to control the order the Products are listed in Step 3? It looks like the order is controlled by object ID as reflected in this graphic where the 2 categories have a different order for bare-earth & first-return products. It would be great if the Bare Earth product was always listed before First Return. Something to consider is not all lidar categories have a first return product. I could reorder these in the internal database but then records for similar product would no longer align with the convenience of sorting on object IDs.
Image
Image

Our current idea is to use a config in the app to search for values in the Product field:

// controls how product results are sorted within categories
const productSortConfigs = {
    // if a product has one of these values in it's Product field, it will be assigned a sort index corresponding with the config array index
    // these could also be regex patterns if needed (e.g. /rgb)
    aerialPhotography: ['rgb', 'cir', 'single', 'b&w'],
    lidar: ['bare', 'first']
}

Rick said that this example was good enough to try it out and then we can refine later.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions