| Age | Commit message (Collapse) | Author |
|
get-bxd-publish-dataid-name-value-dict queried PublishData by
PublishData.Id alone, with no check at all on InbredSetId or on
PublishFreeze.public/confidentiality. It is reachable directly from
GET /dataset/bxd-publish/dataid/values/{id}.json, bypassing the
InbredSetId=1 scoping that get-dataid-from-publishxrefid applies on
the other BXD routes, so any PublishData.Id could be read regardless
of group or confidentiality.
Join through PublishXRef to PublishFreeze and require
public>0 AND confidentiality<1 in that function and in
get-bxd-publish-values-list (same query, unused elsewhere). Also add
the same PublishFreeze check to get-dataid-from-publishxrefid and
get-bxd-publish-list, which were already scoped to InbredSetId=1, for
defense in depth.
Checked with a plain Guile reader pass only (parens balance, 8
top-level forms); this project's guix.scm/manifest.scm need a channel
package (gemma-gn2) not available here, so modules were not resolved
and the SQL was not run.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
|
quasiquoted sxml
|
|
web/webserver-aging.scm serves only the brand pages (home/aging/...),
css, static images and doc rendering -- the REST API (web/webserver.scm)
stays untouched for the full deployment. bin/gn-guile-webserver is the
matching entry-point script (a plain guile script with an @GUILE@
shebang that package builds substitute, wrapped with their load paths).
Both are used by the gn-guile system container
(gn-machines/genenetwork/containers/gn-guile-container.scm), which
strips everything but the webserver from the package at build time:
the container serves ONLY aging.genenetwork.org and every REST/API
route is disabled.
Also compute the copyright year at run time: (current-year) in
(web sxml) returns (date-year (current-date)) and the aging/msk
footers render "Copyright © 2005-<current-year>" instead of the
stale hard-coded 2025.
|
|
|
|
|
|
* README.md: Update the documentation on how to run the webserver.
* bin/gn-guile: New runnable script to start webserver.
* web/webserver.scm: Make into Guile/Scheme module and remove
entry-point `main' function.
|
|
Eliminate the use of global settings and pass in configuration values
as arguments to the functions that use them.
|
|
We want to move away from using global values for our
configuration. In this respect, we provide a way to provide
configurations at application startup via CLI arguments.
|
|
Provide better names for the configuration variables to more clearly
indicate what the variable is concerned with.
|
|
To ensure we have the latest changes, sync gn-docs before every edit.
|
|
|
|
|
|
|
|
The 'CGIT_REPO_PATH' envvar and corresponding global
`+cgit-repo-path+` configuration variable were both pointing to the
bare repo that's upstream somewhere. Using the term "bare" rather than
"cgit" is more descriptive of what the variable is concerned with,
rather than the term "cgit" which is dependent on a specific
forge/forge-type.
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=> https://cgit.git.savannah.gnu.org/cgit/guix/mumi.git/commit/?id=897967a84d3f51da2b1cc8c3ee942fd14f4c669b
After getting:
In procedure accept: Too many open files with GET /dataset/bxd-publish/values/23486.json
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This reverts commit 57118453a7ab776ec2259f4d59bd4a0c8213d9d0.
|
|
This reverts commit a2639cac7be578f160c14a4eeb77a23b859bb64a.
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
This reverts commit 9836105b0c662f8f6e0cf5eb30721d1f1f06976c.
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
This reverts commit 654257a9f7ae12dcf2770fd92df971831b66cdb7.
|