Closed kenranunderscore closed 1 year ago
The fully-imported status is pre-filtered by the latest_versions
materialized view, sometimes you just don't need to re-do it. :)
Let's leave it like that for now.
Yes listAllPackagesInNamespaces
should log.
From a cursory glance it looks good. Have you tested the UI locally?
Ok, then I'll add some logging later on or tomorrow when I'm back at the computer. Constructing an object
on the fly like in the same file above (with slightly different content) is alright?
Yeah, I've tested the UI locally. I quite liked the tmux
setup. I just can't put my finger on what I don't get about the SearchAction
. Maybe I have an idea what it might be, let me see if I can find it.
Ok, then I'll add some logging later on or tomorrow when I'm back at the computer. Constructing an object on the fly like in the same file above (with slightly different content) is alright?
Yes it's absolutely fine.
Yeah, I've tested the UI locally. I quite liked the tmux setup. I just can't put my finger on what I don't get about the SearchAction. Maybe I have an idea what it might be, let me see if I can find it.
Sure :)
I pushed the logging bit. Still not sure about showAllPackages(InNamespace)
as in the review above, so I didn't change anything there.
@kenranunderscore yes, let's leave it as is. Perhaps the future will give us other avenues for refactoring. :)
Sure, I closed the review :)
@mergifyIO rebase
rebase
Proposed changes
As described in #219. I also added a link to the namespace in the package title; don't know if you want/like that, but I didn't know about
Servant.Links
before and wanted to try it out.I have some remaining questions though:
count*
functions inQuery.hs
filter for thefully-imported
status, some don't. I wasn't sure which to pick, so left it out for now.showNamespaceHandler
is very similar to theindexHandler
above, but I felt like "repeating" some easy steps or function is a deliberate choice when looking at some other code. Plus, extracting a function here would most likely mean having anEff
action as argument, which would require importing lots of stuff and IME not really make anything more flexible. How do you think about this?listAllPackagesInNamespaces
does not log, likelistAllPackages
. But maybe both should?Flora.Search.SearchAction
the right way.Contributor checklist