Skip to content

Commit b63912d

Browse files
Runtime Version Scanner: Dynamically load EOL versions; improve documentation (#246)
* make update-manifest command. * add functions to get supported versions from APIs * use server-based oldest versions * Move the info popover to the title. * Add help modal * Fix Makefile bug * update manifest * fix typo in tests * Update extensions/runtime-version-scanner/app.R Co-authored-by: Neal Richardson <[email protected]> * load content asynchronously to speed up things like modal display * update about text * centralize supported version logic, update tests * Don’t render a reactable while content is loading * fix workflow typo * move setup.R * source required files in setup.R * use mirai_multisession * update renv lockfile * update renv.lock * update manifest * update app title column * add missing file to ci * respond to comments * work around reactable bug * comment on makefile * change name used for untitled content to match Connect --------- Co-authored-by: Neal Richardson <[email protected]>
1 parent de871d8 commit b63912d

File tree

12 files changed

+701
-76
lines changed

12 files changed

+701
-76
lines changed

.github/workflows/runtime-version-scanner.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
with:
4040
working-directory: extensions/${{ env.EXTENSION_NAME }}
4141

42-
- run: Rscript -e 'install.packages("testthat")'
42+
- run: Rscript -e 'install.packages(c("testthat", "httptest"))'
4343
working-directory: extensions/${{ env.EXTENSION_NAME }}
4444

4545
- run: Rscript -e 'testthat::test_dir("tests/testthat")'
@@ -61,6 +61,7 @@ jobs:
6161
extensions/${{ env.EXTENSION_NAME }}/get_usage.R
6262
extensions/${{ env.EXTENSION_NAME }}/renv.lock
6363
extensions/${{ env.EXTENSION_NAME }}/version_ordering.R
64+
extensions/${{ env.EXTENSION_NAME }}/supported_versions.R
6465
extensions/${{ env.EXTENSION_NAME }}/www/styles.css
6566
extensions/${{ env.EXTENSION_NAME }}/manifest.json
6667
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tests
Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
1-
.PHONY: test
1+
.PHONY: test update-manifest
22

33
test:
44
Rscript -e 'testthat::test_dir("tests/testthat")'
5+
6+
# This recipe updates the manifest, with a few helpful modifications:
7+
# - Copies over `extension` and `environment` blocks from the old manifest to
8+
# the new one. These are Gallery-specific blocks, and not created by
9+
# `rsconnect`.
10+
# - Preserves set of files listed in the `files` block, where
11+
# `rsconnect::writeManifest()` by default includes all the files in the
12+
# directory.
13+
update-manifest:
14+
cp manifest.json manifest.old.json
15+
FILES=$$(jq -r '.files | keys | join(",")' manifest.old.json); \
16+
Rscript -e "rsconnect::writeManifest(appFiles = strsplit('$$FILES', ',')[[1]])"; \
17+
jq -n --slurpfile old manifest.old.json --slurpfile new manifest.json \
18+
'$$new[0] * {"environment": $$old[0].environment, "extension": $$old[0].extension}' \
19+
> manifest.merged.json
20+
mv manifest.merged.json manifest.json
21+
rm manifest.old.json

0 commit comments

Comments
 (0)