ArctosDB / arctos

Arctos is a museum collections management system
https://arctos.database.museum
60 stars 13 forks source link

Add Show All button to search page #6201

Closed Jegelewicz closed 7 months ago

Jegelewicz commented 1 year ago

I wanted to create a really simple profile (#6199) and it took a lot of clicking just to get rid of the stuff I didn't want. I figured out the categories remove all, but I would have preferred a "remove all" so that I could have started from scratch creating my profile. Possible?

image

dustymc commented 1 year ago

I remain completely unconvinced that having eg kingdom and culture of origin on the same screen makes any sense for any user. There are a lot of things which are just never going to intersect in any user's area of interest, overwhelming them with a bunch of stuff that they're not going to bother understanding is not doing anyone any favors. (And there are a several recent of "I turned all this stuff on and now all this stuff that I've turned on is making a mess" Issues supporting this hypothesis.)

If you must, you can shift-click.

You can save everything as a profile.

I don't think you can save nothing as a profile, but one of each is possible and maybe pretty close.

campmlc commented 1 year ago

So we can't uncheck all? I agree with @Jegelewicz that this is necessary when you don't know what you've checked and need to start over.

dustymc commented 1 year ago

can't uncheck all?

I offered a two-click solution and a potential one-click shortcut to that above, neither of which involve more clutter.

This is rapidly becoming a swarm of self-conflicting issues, and that near inevitably becomes an impenetrable roadblock. I suggest one cohesive planning issue.

campmlc commented 1 year ago

Maybe I'm misunderstanding. I'll let Teresa respond. But I thought you rejected her suggestion.

On Fri, Apr 28, 2023, 9:19 AM dustymc @.***> wrote:

  • [EXTERNAL]*

can't uncheck all?

I offered a two-click solution and a potential one-click shortcut to that above, neither of which involve more clutter.

This is rapidly becoming a swarm of self-conflicting issues, and that near inevitably becomes an impenetrable roadblock. I suggest one cohesive planning issue.

— Reply to this email directly, view it on GitHub https://github.com/ArctosDB/arctos/issues/6201#issuecomment-1527724614, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADQ7JBAX2JAGRWFWK7UZ6UTXDPNW3ANCNFSM6AAAAAAXPJDB3I . You are receiving this because you commented.Message ID: @.***>

Jegelewicz commented 1 year ago

Now I need direction because if we put everything in one issue you mark things as off topic and things get lost. I am trying very hard to create issues that address a single thing.

shift-click.

Please provide me some direction on how this is supposed to work. When I do this on the splash page, it just highlights everything.

image

If it works, then I am fine with that - and honestly, maybe nobody else ever wants to "clear" the form. It seems like a reasonable request for any form, but I now have a profile with just two things selected, so I can use it to "clear" the form.

As part of our new development process, perhaps allowing a bit of discussion among users so you can see if more than one person cares or if another user has a solution would be useful?

dustymc commented 1 year ago

thought you rejected her suggestion.

I try really hard to never do that unless there's some technically-compelling reason. I'm hearing conflicting things and trying to balance them - "there's too much clutter," "it doesn't fit on my screen," and "let's add stuff" - and in this case the extra stuff would go to a state that I think is not useful for any user. (But, that state can be a shortcut to lots of things that are useful - this still isn't a rejection, just an attempt to understand.)

direction

Me too. I guess I need both, the big picture and the components. The components sometimes carry enough (necessary) detail to make the big picture completely overwhelming, and the components by themselves often (usually, perhaps) add up to be incompatible with the big picture and need some adjustment, which of course feeds off it itself and can lead to other pieces needing similar adjustments. I don't think I've ever claimed to have perfected that process, I'm very open to better ideas on how to guide development.

direction

Check (or uncheck) a box

Screenshot 2023-05-01 at 8 58 53 AM

Scroll a bit, hold shift while checking (or unchecking) another box, everything in between the two will be checked (or unchcecked).

Screenshot 2023-05-01 at 8 59 08 AM

allowing a bit of discussion

I've never intended to discourage that, tell me what you want me to do and I'll try it.

Jegelewicz commented 1 year ago

After discussion with several people including @ebraker I think that everyone would really like a button on the search page that will just "show all".

ebraker commented 1 year ago

I think that everyone would really like a button on the search page that will just "show all"

Emphatically agree. I felt I was changing my customizations daily because I can't anticipate every type of search I need so I resorted to a 'show all' profile. I don't mind that it has chronostratigraphic attributes that I will never use - it is far more simple than having to tweak and untweak every other search.

Most importantly, a show all option is so much more welcoming and accessible for non-operators using Arctos. People understand that they can ignore fields they don't need. People will first encounter the simplified default form and also understand that they are opting in to seeing all the fields when they choose 'show all,' so I think that visual clutter is a nonissue. This is much more approachable than an outside user trying to explore and navigate the intimidating customize table at their first Arctos rodeo.

We'd need to figure out how this works with results given the costs. Would it be possible to somehow set results to 'default + any field that contains search terms' so that people would get a meaningful query return and avoid brushing up against record limits?

dustymc commented 1 year ago

how this works with results given the costs

That's one reason I'm still suggesting that someone make an (or a few, or whatever - I've got lots of room to play with at the moment!) "everything" profile (which probably won't quite be everything for lots of reasons).

The other is that there's a mechanism to do WHATEVER it is that needs done NOW, and I'd rather not add more complexity (front and back end) unless we really have to (and we haven't explored this path at all, so I don't think we're there yet).

I'm hoping to have a release this evening, if someone wants to send me a profile name to set as a preset in the next hour or so.

  • any field that contains search terms

Not at the moment.

  1. That would be some sort of new development, and
  2. We'd have to remove a bunch of things to maintain a 1:1 ratio. (Which I think probably isn't realistic, Arctos is not a big spreadsheet, there are lots of things that make sense on one side or the other but not both.)
ebraker commented 7 months ago

@dustymc I'd like to highlight this issue again. I find myself wishing for this multiple times a week if not every day. I cannot search other institution's records when I am logged in, and thus I am unable to get at the search fields I need (I can only customize when logged in, but once logged in, the VPD kicks in and I am unable to search non-UCM collections).

I have a profile titled "show all" that has every field toggled that I am able to access. Can we start with that to create some sort of "search all fields" preset?

dustymc commented 7 months ago

profile

Perfect - this it?

https://arctos.database.museum/search.cfm?sp=show%20all

First problem, name - that's not really "all" (no ID attributes, at least), suggestions??

Second problems, that's going to throttle everything to 3 records (5 for "us" - maybe pending some sort of feedback on https://github.com/ArctosDB/arctos/issues/6922) - I don't think most users will find that very useful (even if someone really wants meteorite and parasite attributes at the same time....), and I'm not sure what the impacts of making something that expensive a suggested default might be (crashy-time?!).

start with that

I haven't considered the possibility of making changes once something's in the list - I suppose it wouldn't be TOO disruptive, but I'd prefer to solidify as much as possible before moving anything to the production/public shortcut list.

ebraker commented 7 months ago

throttle everything to 3 records

hmmm, yes I see that now that I am trying a search. Does reducing the number of query-able Record Attributes, Event Attributes, Locality Attributes to two (from four) get us anywhere? I can attempt to trim further to a bio-geo diversity "search all" and leave room for a cultural "search all" preset.

Maybe "advanced search" so it is not technically "all"?

dustymc commented 7 months ago

query-able

Nope, query-stuff has no (measured) cost, only results with a cost > 1 really matter. (Err, I mean, sorting through thousands of fields is a "cost" but not one that limits results in Arctos....)

bio-geo ... cultural

I would advocate building for some tangible audience.

ebraker commented 7 months ago

Ok, I made a profile "advanced search (bio-geo)". It only knocks off a few fields. If we went even more targeted to extant biodiversity collections, we'd only loose Age and Chronostratigraphy so I think it makes sense to keep them co-mingled for now at least.

Jegelewicz commented 7 months ago

There's a difference between show all search fields and show all results. I only want the first one.

dustymc commented 7 months ago

Age and Chronostratigraphy

Sure, those seem relevant.

I question the usefulness of eg phylum (all taxon rank things) those WILL NOT mean what a lot of users are expecting, the 'Taxonomy' table-thingee contains all the functionality without the whole 'guessing how some collection sees some taxon' problem.

Same thing to a lesser extent for geography.

there's still some admin stuff (enteredby) - intentional?

https://arctos.database.museum/search.cfm?sp=advanced%20search%20(bio-geo) - still crazy expensive though.

Screenshot 2024-01-24 at 13 44 43

difference between show all search fields and show all results

A profile is the only realistic tool for this job, and those are inseparable components of a profile.

ebraker commented 7 months ago

there's still some admin stuff (enteredby) - intentional?

Ok, I further trimmed "advanced search (bio-geo)" since we don't need curatorial fields (containers, entered by, etc) since one won't be able to view this info anyway for other collections/logged out:

Does that help @dustymc ?

(also, I agree with @Jegelewicz)

There's a difference between show all search fields and show all results. I only want the first one.

ebraker commented 7 months ago

@dustymc I'm hoping we can have something in place before I demo Arctos to my institution in a couple of weeks. I'd like to easily navigate to non-vertebrate records so folks can see examples from their own discipline, but my search options are limited while not logged in.

dustymc commented 7 months ago

I don't know how to proceed. I can't make a default profile that will melt Arctos, and won't make one that'll result in angry users. This still does both. I think there's some confusion about https://github.com/ArctosDB/arctos/issues/6201#issuecomment-1908970666 but I don't know what - the way I interpret, that's just wrong (see my next comment) but could be I'm lost. See my screenshot in the same comment - all of those >1 cost results columns need turned off before I make anything permanent and default.

I'm still of the opinion that making "all the boxes" permanent and default isn't doing anyone any favors, but that's like, just my opinion, man.

but my search options are limited while not logged in.

And that makes me think I've been lost for a while! NOTHING about default profiles has ANY relationship to operator status. Do this:

Screenshot 2024-01-29 at 08 13 11

then this

Screenshot 2024-01-29 at 08 13 20

then search and (if you're lucky and/or careful!) you'll end up with...

Screenshot 2024-01-29 at 08 13 48

Try the same thing as an Operator and you'll end up...

Screenshot 2024-01-29 at 08 15 07

with a couple more records, that's it.

From https://arctos.database.museum/search.cfm?sp=advanced%20search%20(bio-geo) anyone with an account, operator or not, can...

Screenshot 2024-01-29 at 08 15 51

then...

Screenshot 2024-01-29 at 08 16 05

and now

https://arctos.database.museum/search.cfm?cat_num=12&sp=copy%20of%20other%20thing

will do EXACTLY what your proposed default does, for anyone.

Does that clarify anything? If not, let's talk.

(And we should probably talk about characters in default profiles, lots of things will mangle those encoded spaces.)

@mkoo can you clarify anything?

ebraker commented 7 months ago

Ok, try the Advanced Search (bio-geo) profile again - I just customized results. I understand that one can customize while not logged in, but that is easily 30-50 clicks to get what is essentially an advanced search.

Also, can we add "map" to the default search? And rename "default_eh" (is that ethnography?). It is not super clear.

dustymc commented 7 months ago

The old search is gone, I think you probably mean https://arctos.database.museum/search.cfm?sp=Advanced%20Search%20(bio-geo) ?? (And I'll need a HTML-friendly name before moving this to the default list.)

The expense is fine, it won't melt Arctos.

Year collected is MAYBE a little flaky as a default, whatever.

Catnumint is a bit more flaky, it won't exist for lots of collections. Still kinda meh/whatever from my perspective.

Not sure where we go from here, @Jegelewicz @mkoo HELP!!!


Renaming or refactoring existing defaults definitely needs at least an issue - I suspect you're asking to break about a million external things, and some relatively complex internal that we've set up for @AJLinn as well. My first instinct is that defaults should be entirely immutable. Maybe that's overly conservative for the contents, I think it's probably unavoidable for the names.

ebraker commented 7 months ago

OK great!!! I removed the flaky values: https://arctos.database.museum/search.cfm?sp=advanced_bio-geo

How about 'advanced_bio-geo' for a name?

I wan't suggesting to break anything, just that something like 'default_ethno' might be more clear than 'default_eh' to outside users, but I have no skin in the game (@ajlinn can ignore).

dustymc commented 7 months ago

Settle for advanced_bio_geo? (Don't think the - is actually problematic but I like consistency if possible.)

Nobody's screaming, I'll push this through the dev channel for a bit more exposure and get it in next release (unless the screaming starts!).

ebraker commented 7 months ago

Yup, I'm fine with advanced_bio_geo

Nobody's screaming, I'll push this through the dev channel for a bit more exposure and get it in next release

I'm screaming with joy for this update! Thank you.

ebraker commented 7 months ago

@dustymc

I can view and click on the advanced_bio_geo preset but only the default fields display (note that the URL is correct - https://arctos.database.museum/search.cfm?sp=advanced_bio_geo):

image

dustymc commented 7 months ago

default fields display

Uh - neato!

I'm using an ilike to make the selection less-twitchy, and apparently _ and - are synonymized with that:

arctosprod@arctos>> select profile_name,cf_username from cf_cat_rec_srch_profile where profile_name ilike 'advanced_bio_geo';
   profile_name   | cf_username 
------------------+-------------
 advanced_bio-geo | ebraker
 advanced_bio_geo | arctos

So the immediate 'solution' is to delete your profile. Finding a real solution probably needs an Issue.

ebraker commented 7 months ago

Ok I deleted my profile.

ebraker commented 7 months ago

It works now, thanks!