Commit Graph

351 Commits (3de78b1113c386a85bfb3d3fcecee0bcfc6834b7)
 

Author SHA1 Message Date
Reynir Björnsson 3de78b1113 Update to dream.1.0.0~alpha4
- Dream.path is deprecated. For now the deprecation is suppressed.

- Remove unused dream_svg.

- Remove datadir global. The datadir variable is in scope already, and
  global variables were removed in alpha3.

- Dream_tar.tar_response: flush before closing. It's unclear if this is
  necessary.

- Change Builder_web.add_routes to Builder_web.routes returning a list
  of routes, and in Builder_web_app construct the router.

- Builder_web.not_found is removed due to changes in Dream.router. It
  seems an error handler might be the way forward.
1 year ago
Reynir Björnsson 6e75a653bc Update to caqti 1.8.0 1 year ago
Reynir Björnsson c72ff72e0d Merge pull request 'use ignorelist to transmit the intention' (#105) from minor-wording into main
Reviewed-on: https://git.robur.io/robur/builder-web/pulls/105
1 year ago
Hannes Mehnert 6190347401 use ignorelist to transmit the intention 1 year ago
rand 0f493e9b47 Removing trailing slashes (#80)
This PR solves the issue of there being both "<url>/" and "<url>" paths, that in the builder-web context shouldn't mean different things.

The slashes are now removed using a `Dream` middleware, and the request is redirected using a permanent redirect (that doesn't change the method used): https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Location

Notable changes:
* Trailing slashes from the hardcoded link urls were removed, as unneccesary redirects are then avoided.
* All links in `Views` were rewritten to be absolute instead of relative.
* As `Dream` deprecated `path` - `Utils.Path` was created containing some helpers for manipulating paths. *Note that `String.split_on_char` has a different semantics.*
* A blacklist `routeprefix_blacklist_when_removing_trailing_slash` was added, containing `Dream` route-prefixes to ignore.
* Only `GET` and `HEAD` requests are redirected.
* `redirect_parent` helper was rewritten using new `Utils.Path` functions to avoid brittle string manipulation + fixed the edgecase of redirecting to `/`.
* Added `Uri` dependency to make URL manipulation safer.

Co-authored-by: rand00 <oth.rand@gmail.com>
Co-authored-by: Reynir Björnsson <reynir@reynir.dk>
Reviewed-on: https://git.robur.io/robur/builder-web/pulls/80
Co-authored-by: rand <rand@r7p5.earth>
Co-committed-by: rand <rand@r7p5.earth>
1 year ago
Reynir Björnsson e5a2b6fc0e Merge pull request 'Redirect /job to / and /job/:job/build to /job/:job' (#104) from redirect-job-and-build into main
Reviewed-on: https://git.robur.io/robur/builder-web/pulls/104
1 year ago
rand00 010197d900 Builder_web: Fixed type-errors + usage of correct dream queries helper 1 year ago
rand00 8f173295ab Merge branch 'main' into redirect-job-and-build 1 year ago
rand00 6a1c8b0ecd Builder_web_app: Fixed type-error + some 80-column fixes 1 year ago
Hannes Mehnert a132a181c8 add ? before query parameters 1 year ago
Hannes Mehnert 3bee8a357d add query params to redirect 1 year ago
rand 2e601ac181 Merge pull request 'builder-web: Added --cachedir CLI param for staging new vizs' (#102) from 20220329_passing_separate_cache-dir into main
Reviewed-on: https://git.robur.io/robur/builder-web/pulls/102
1 year ago
Hannes Mehnert 1adc67c297 minor nits 1 year ago
Hannes Mehnert 4c3a5986d6 Redirect /job to / and /job/:job/build to /job/:job
replaces #81
1 year ago
rand00 68849fecf3 Fixed that cachedir should default to being relative to given datadir 1 year ago
rand00 1207ddbf70 Merge branch 'main' into 20220329_passing_separate_cache-dir 1 year ago
rand 08620589f0 Merge pull request 'Added usage-descriptions on mouse-over on '?' below each visualzation (not mobile compatible)' (#101) from 20220325_viz_descriptions into main
Reviewed-on: https://git.robur.io/robur/builder-web/pulls/101
1 year ago
rand 258ffbd979 Merge branch 'main' into 20220325_viz_descriptions 1 year ago
rand 7b08045114 Merge pull request 'Updates related to new opam-graph nodes-sharing-color' (#100) from 20220317_opam-graph_updates into main
Reviewed-on: https://git.robur.io/robur/builder-web/pulls/100
1 year ago
rand c82e94805e Merge pull request 'packaging/visualizations.sh: Made compatible with Linux too' (#99) from 20220321_fixed_visualizations.sh_for_Linux into main
Reviewed-on: https://git.robur.io/robur/builder-web/pulls/99
1 year ago
rand00 ab3be6ec8e builder-web: Added --cachedir CLI arg for staging new vizs 1 year ago
rand00 1827320f8c Builder_web: Removed boilerplate for generating vizs 1 year ago
rand00 ef253b7b87 Views: Added usage-descriptions on mouse-over on '?' below each visualzation (not mobile compatible) 1 year ago
rand00 edcfa1c8ce Merged with visualizations.sh fixes 1 year ago
rand00 9a8f902d3c packaging/visualizations.sh: Failing when unsupported platform 1 year ago
rand00 46f661ddd6 packaging/visualizations.sh: Changed todo-comments 1 year ago
rand00 d90cbea35c Views: Removed visual border from viz iframes + size fix 1 year ago
rand00 837484a393 Merge branch '20220321_fixed_visualizations.sh_for_Linux' into 20220317_opam-graph_updates 1 year ago
rand00 140d661254 packaging/visualizations.sh: Made compatible with Linux too 1 year ago
rand00 462859f4fb Builder-viz: Changed sharing-stats to be based on direct deps instead of transitive 1 year ago
rand00 34a8bf9160 Builder-viz: Passing transitive deps stats for coloring of nodes in opam-graph 1 year ago
rand 7356950897 Merge pull request 'Supporting new opam-graph scoping of CSS' (#97) from 20220315_supporting_new_opam-graph_scoping_of_CSS into main
Reviewed-on: https://git.robur.io/robur/builder-web/pulls/97
1 year ago
rand00 60ee718160 Merged with main/master 1 year ago
rand b2b593796a Merge pull request 'Supporting new modulectomy scoping of CSS' (#98) from 20220315_supporting_new_modulectomy_scoping_of_CSS into main
Reviewed-on: https://git.robur.io/robur/builder-web/pulls/98
1 year ago
Reynir Björnsson dbf3d84471 Fix deprecated uuidm usage 1 year ago
Reynir Björnsson b6f6090ce5 Merge branch '20220221_fix_cmdliner_deprecations'
Reviewed-on: https://git.robur.io/robur/builder-web/pulls/87
1 year ago
rand00 f68f383ba6 Fixed all binaries using cmdliner to avoid newly deprecated functions 1 year ago
rand00 c41b9808d5 builder-web.opam: Added pin-depend on Roburs modulectomy fork again - would like to merge this before modulectomy is released 1 year ago
rand00 1bcb6d0cef Merged with stash 1 year ago
rand00 2a3130b170 builder-web.opam: Removed pin-depend on modulectomy, as this PR depends on coming released version 1 year ago
rand00 bfd0299844 Builder-viz: Supporting new modulectomy scoping of CSS 1 year ago
hannes 0e7e7e3357 Merge pull request 'dpkg-repo: repackage in TMP/pkg, use TMP as output directory' (#96) from fix-dpkg-repo into main
Reviewed-on: https://git.robur.io/robur/builder-web/pulls/96
1 year ago
Hannes Mehnert 9ab6921105 dpkg-repo: repackage in TMP/pkg, use TMP as output directory
This avoids the deb file containing itself, and having a /builder-... installed.
1 year ago
Hannes Mehnert 65f29ad8aa rename FreeBSD package to builder-web 1 year ago
hannes 4444314ead Merge pull request 'Include more information on the front page, especially how unikernels can be executed.' (#95) from some-notes-on-front into main
Reviewed-on: https://git.robur.io/robur/builder-web/pulls/95
1 year ago
Hannes Mehnert eef8e54776 Include more information on the front page, especially how unikernels can be executed. 1 year ago
Hannes Mehnert 9cb0e2683c FreeBSD package repository: use . as separator when checking whether package already exists 1 year ago
Robur 078d48730d Debian package repository: take aptly repo vs publish into account 1 year ago
Robur ca5b16a161 Debian repo script: no need to pass architectures 1 year ago
Robur 9406edbc9e Debian repository: set HOME variable 1 year ago