Commit graph

52 commits

Author SHA1 Message Date
Rok Garbas 9f3de349e8
nicer loading spinner (#91)
fixes #29
2020-06-11 18:50:53 +02:00
Rok Garbas f3139f56bf
Fixes wonky selection of item in search result (#90)
fixes #62
2020-06-11 18:29:51 +02:00
Rok Garbas 2983c00c74
problem with pagination when a number of items in result matches the display size (#89)
fixes #84
2020-06-11 17:18:52 +02:00
Rok Garbas cbec4ad027
Nix language primitives are luckily the same as in JSON (#88)
fixes #68
2020-06-11 16:33:25 +02:00
Rok Garbas 007eee127e
Make sure that we dont trap users on search.nixos.org (#87)
and that there is a nice way back to main website
also the navigation is now the same hight as on nixos.org

fixes #59
2020-06-11 09:14:21 +02:00
Rok Garbas 7f2ed39fef
Fix how we display default/example/description of an option (#86)
* description is now converted to html at import time
* default/example should now realize what is an non-value and what is
  "None" (as string) value

fixes #69
fixes #67
2020-06-11 08:44:54 +02:00
Rok Garbas 12bea73597
user attr_name and option_name for showDetailsFor (#83)
fixes #61

showDetailsFor -> show
2020-06-10 14:15:54 +02:00
Rok Garbas 6905ea40dd
Preserve search options between packages and options search page (#82) 2020-06-10 14:03:44 +02:00
Rok Garbas 9413e66d90
Provide correct link to hydra job or if exists build (#81)
also add --force option to import-channel script which will always recreate index

fixes #72
2020-06-10 13:48:53 +02:00
Rok Garbas 7a9d4cd9d4
Reload search results on channel change (#80)
fixes #65
fixes #79
2020-06-10 13:14:36 +02:00
Rok Garbas bddb6c43a6
fixed (#78) 2020-06-10 02:05:04 +02:00
Rok Garbas c79de4b2df
Point to correct github location (#77)
fixes #70
2020-06-10 02:01:27 +02:00
Rok Garbas b7df41a891
reduce the platform list and add platform link to hydra (#76)
fixes #73
fixes #72
2020-06-10 01:53:17 +02:00
Rok Garbas 554236f4a6
Import hydra builds (#75) 2020-06-10 00:55:37 +02:00
Rok Garbas d6803efa38
use schema version also in packages index (#58) 2020-06-05 01:53:18 +02:00
Rok Garbas ec5839f9fd
adding a footer and a thank you to bonsai (#57) 2020-06-05 01:13:52 +02:00
adisbladis 0a6369ea86
improve nixos options search (#55)
Co-authored-by: Rok Garbas <rok@garbas.si>
2020-06-04 01:33:54 +02:00
Rok Garbas 8896ea9e1c
only one evaluation per alias allowed (#56) 2020-06-04 00:08:43 +02:00
Rok Garbas ae670990dd
use one index per channel (#54) 2020-06-03 21:02:12 +02:00
Rok Garbas fda96bda40
run import-channel every hour for last 3 channels (#48) 2020-05-23 00:13:55 +02:00
Rok Garbas c45a1581b1
import channel script should be idempotent (#47) 2020-05-22 14:58:38 +02:00
Rok Garbas 2600984760
implemented index alias to make import atomic (#46) 2020-05-22 14:50:44 +02:00
Rok Garbas b264d7af55
some logging added and hidden behind --verbose flag (#45) 2020-05-22 13:03:31 +02:00
Rok Garbas 4629bc39cc
Format and link import script (#44)
* shorten name for import script
* format import script with black and lint with flake8
2020-05-22 12:43:57 +02:00
adisbladis 2868805c2d
Add top-level attrset to package documents (#37) 2020-05-22 00:41:42 +02:00
Rok Garbas f4b7ebca1e
Bool query (#36)
* Use unsigned boto s3 requests

Without this change you need s3 credentials, even though the bucket is public

* Use custom attrname analyzer

* Adapt query to new schema

Use pname/pversion to not clash with elasticsearch parsing of version

* Elasticsearch: Start work on new bool query

* encode query string for bool query

Co-authored-by: adisbladis <adisbladis@gmail.com>
2020-05-20 13:01:29 +02:00
adisbladis 042cb40a8e
Use a custom attrname analyzer (#35)
* Use unsigned boto s3 requests, 

Without this change you need s3 credentials, even though the bucket is public

* Use custom attrname analyzer

* Adapt query to new schema

Use pname/pversion to not clash with elasticsearch parsing of version
2020-05-19 12:54:48 +02:00
Jörg Thalheim 3816a7033a
import name as keyword (#30)
otherwise elasticsearch will performs stemming which removes important
information:

Example:

Name: "nixpkgs-review"
Elasticsearch with 'text' mapping: ["nixpkgs", "review"]

Now searching for *nixpkgs-review* will return no results.
2020-05-14 17:26:56 +02:00
Rok Garbas ec4c23f295
implement NotAsked, Error and empty search result view (#28)
fixes #25
fixes #26
fixes #27
2020-05-12 00:00:23 +02:00
Rok Garbas 645813cbd1
index as keywords (#24)
fixes #22
2020-05-11 23:33:25 +02:00
Rok Garbas ce2121e30e
channel drowdown (#21) 2020-05-11 22:42:57 +02:00
Rok Garbas c47f1c0ccb
Pagination of search results (#20) 2020-05-11 21:56:10 +02:00
Rok Garbas d3c3e2e31b
preserving item displaying details on page refresh (#19)
fixes #18
2020-05-11 21:33:20 +02:00
Rok Garbas 4efb8ddfec
package and option detailed view (#17)
fixes #12
fixes #13
2020-05-11 16:06:10 +02:00
Rok Garbas 2a75422e90
Hide details when clicked on result row again (#16)
fixes #11
2020-05-11 14:35:19 +02:00
Rok Garbas 3918246b24
switching to wildcard query (#10)
fixes #6
2020-05-11 12:52:07 +02:00
Rok Garbas 9064063529
a single page app and want history pushstate to work so you get clean URLs (#9) 2020-05-09 00:44:52 +02:00
Rok Garbas 99eae108c7
search on page load and on second search query, fixes #5 (#8) 2020-05-08 23:59:14 +02:00
Rok Garbas f25b287926
make request to the right search page, fixes #4 (#7) 2020-05-08 16:56:14 +02:00
Rok Garbas 387d70eaa3
somehow in a working starte with bugs and missing features 2020-05-08 15:24:58 +02:00
Rok Garbas f0318458d8
init readme (#3) 2020-04-21 23:55:39 +02:00
Rok Garbas f37531199f
Remove hourly build (#2) 2020-04-11 04:05:54 +02:00
Rok Garbas 824e37026f
deploy to netlify (#1) 2020-04-10 11:04:03 +02:00
Rok Garbas 40bd247ee9
add style to the search result 2020-04-10 10:13:50 +02:00
Rok Garbas f19216fe5a
make a request to elasticsearch, nothing fancy 2020-04-07 07:05:50 +02:00
Rok Garbas 7ba9487c30
add model for package and option result 2020-03-31 05:22:27 +02:00
Rok Garbas ea09e01c89
init work on search 2020-03-31 02:59:06 +02:00
Rok Garbas 3643fbe322
add yarn.lock and direnv integration 2020-03-30 11:00:04 +02:00
Rok Garbas 08ab45d6a4
add some integration packages 2020-03-30 09:27:22 +02:00
Rok Garbas 0536f6ed71
Almost got nix-build working
for now we can just deploy via: nix-shell --command "yarn prod"
2020-03-29 00:02:40 +01:00